games-simulation/simutrans: New package.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Package-Manager: Portage-2.3.76, Repoman-2.3.16 Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07
This commit is contained in:
parent
01fb4671e2
commit
a2999f0fd6
17
games-simulation/simutrans/Manifest
Normal file
17
games-simulation/simutrans/Manifest
Normal file
|
@ -0,0 +1,17 @@
|
|||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
AUX 0.120.4.1-Makefile.patch 205 BLAKE2B 77e40c646b1d15e63adee7c440972d9f1506df6e9caa0fb64fae54d8b9fe293238b8f339194f23aeb0a13643d4cd79028508efd9d7685be7e539e1a333822216 SHA512 00cdf9787c0c20a59bbd12ac96a5d1a77d38f4a5bfcc093d1f37875faed78668ab6f7e39885195e08720f42459e9dcffccdf3563d8e00a2a408e58bb8be94aa1
|
||||
AUX simutrans.desktop 164 BLAKE2B 016533a2e78f3b9c9e4241695e03289349f7f6876e331f4560a20a072e1c84055fb8566605427b0647bc69036d93574e3e4a6eaf6a39fd79f5511c7ac7e3330c SHA512 123c489484296757bc1586851ba0a4780e8c7e0df143d05172248ad75fce672de283a0977f20df204d756c7e472ffa69fc98ecd081c59a34889042684cca4842
|
||||
DIST language_pack-Base+texts.zip 1097263 BLAKE2B 08678f36a2425b84bf5f440a546af7ca6507ee17bdcfd3096335c20ce60c23a5375eb133f597806bed28db2d9ed067669e83a4df47443be0cb48bf151ba91ef2 SHA512 015caafaeace03bd5475e66c93bb433d9b07b600c3fcf125a4bda9b2856ba41dc43b923e032920df4a060087ead7180df59092f23ab6dcf12579b580827b1248
|
||||
DIST simupak64-120-4.zip 4531808 BLAKE2B 906291c4b56d2836d0d4379cc715b67a6f1b83b08dbb8175fd82abc0940c478ef4055320d9071c3145b33b2ef3f8b708e308d73de2ca32a2388802ccfc2f13c5 SHA512 c42cbf2257950ff981a2fc7b1cced50ca84610591991cf25431829cc8fcbe110c0031879fca0a128593cb766f91c427fec2d3e657217e94369bc90f69fd172cc
|
||||
DIST simutrans-src-120-4-1.zip 4171225 BLAKE2B 5291e73613a2bfa095a98b51d6eaaf5283b9f2b211ddde8dc8aefeccd9459479aad4d233bc975844537fb2792173b9ef15cbf8120117f0f61cd54816912eae69 SHA512 b85b8916e2853a519ccf8c310d67866203e71922aa6b23cd5816fb1924cc64f190735be15a0da9e7c2e94ea844ec6938e91be40ccfa2914f3a3f73d598851357
|
||||
EBUILD simutrans-0.120.4.1.ebuild 1697 BLAKE2B 7fb721f496d138c7e420e5e7f65e84514647323bbd1f5efa1d7856dd21960f098324a7178d292d1010dbc43c09de5020a65c1f465df5e2dec0b7284e4ef9e55e SHA512 da00b0f778cf1bfb967c182e6cdb54dc2da0e20d8eb1d310bc0914ca7bcea05f5ca5a77f1b6234989985b3e68a0969a3e6a28d37487a6b748cd8631ff86128af
|
||||
MISC metadata.xml 321 BLAKE2B c6e6c7c20d3a62aea51c2b2cd7a1739bf68fa078f5a7ffa26102e150dbc414e98e6b0469acabd2eed195e3c240401d9aa3d577daa3d9f8449d9042b4bf644d68 SHA512 4f0e393048086209a54e1ab9a3fb8acd134160be5a9b75c0c26ebcb94dec6ff2165a6379c2374565dd633c83c1bedbe9bfe55c9a5bb9d286099ac9e0d2d57e2e
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXapPFgAKCRDPw5SX8bJu
|
||||
B4tmAP9R4Q7mCBH0u7xzSqO+WLyPbLzJp9isSe3TTEr4HWWoPQD/cIxX7LQ69OON
|
||||
L9+BZnlUBwTTV6rszFeUlVjwr5xcZPE=
|
||||
=7M+m
|
||||
-----END PGP SIGNATURE-----
|
11
games-simulation/simutrans/files/0.120.4.1-Makefile.patch
Normal file
11
games-simulation/simutrans/files/0.120.4.1-Makefile.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- a/Makefile 2018-09-17 16:24:15.000000000 +0200
|
||||
+++ b/Makefile 2019-10-19 00:05:32.652384943 +0200
|
||||
@@ -90,8 +90,6 @@
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
-else
|
||||
- CFLAGS += -O
|
||||
endif
|
||||
|
||||
ifdef DEBUG
|
9
games-simulation/simutrans/files/simutrans.desktop
Normal file
9
games-simulation/simutrans/files/simutrans.desktop
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Simutrans
|
||||
Encoding=UTF-8
|
||||
Comment=A free Transport Tycoon clone
|
||||
TryExec=simutrans
|
||||
Exec=simutrans
|
||||
Icon=simutrans
|
||||
Terminal=false
|
11
games-simulation/simutrans/metadata.xml
Normal file
11
games-simulation/simutrans/metadata.xml
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>gentoo@tastytea.de</email>
|
||||
<name>tastytea</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">simutrans</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
83
games-simulation/simutrans/simutrans-0.120.4.1.ebuild
Normal file
83
games-simulation/simutrans/simutrans-0.120.4.1.ebuild
Normal file
|
@ -0,0 +1,83 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit flag-o-matic xdg-utils
|
||||
|
||||
MY_PV=${PV/0./}
|
||||
MY_PV=${MY_PV//./-}
|
||||
SIMUPAK="simupak64-${MY_PV%-[0-9]*}.zip"
|
||||
|
||||
DESCRIPTION="A free Transport Tycoon clone"
|
||||
HOMEPAGE="http://www.simutrans.com/"
|
||||
SRC_URI="mirror://sourceforge/simutrans/simutrans-src-${MY_PV}.zip
|
||||
http://simutrans-germany.com/translator/data/tab/language_pack-Base+texts.zip
|
||||
mirror://sourceforge/simutrans/${SIMUPAK}"
|
||||
|
||||
LICENSE="Artistic"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
sys-libs/zlib
|
||||
app-arch/bzip2
|
||||
media-libs/sdl-mixer[midi]
|
||||
media-libs/libpng:0
|
||||
media-libs/libsdl[sound,video]"
|
||||
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
app-arch/unzip
|
||||
virtual/imagemagick-tools[png]"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PV}-Makefile.patch
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
unpack simutrans-src-${MY_PV}.zip
|
||||
unpack "${SIMUPAK}"
|
||||
|
||||
# Bundled text files are incomplete, bug #580948
|
||||
cd "${S}/simutrans/text" || die
|
||||
unpack language_pack-Base+texts.zip
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
strip-flags # bug #293927
|
||||
printf "BACKEND=mixer_sdl\nCOLOUR_DEPTH=16\nOSTYPE=linux\nVERBOSE=1" \
|
||||
> config.default || die
|
||||
|
||||
# make it look in the install location for the data
|
||||
sed -i \
|
||||
-e "s:argv\[0\]:\"/usr/share/${PN}/\":" \
|
||||
simmain.cc || die
|
||||
|
||||
rm simutrans/*.txt || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin build/default/sim ${PN}
|
||||
insinto /usr/share/${PN}
|
||||
doins -r simutrans/*
|
||||
dodoc documentation/*
|
||||
insinto /usr/share/icons/hicolor/32x32/apps
|
||||
convert simutrans.ico simutrans.png
|
||||
doins simutrans.png
|
||||
insinto /usr/share/applications
|
||||
doins "${FILESDIR}/${PN}.desktop"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
}
|
Reference in New Issue
Block a user