forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change installation path location from `/usr/share/games/openttd/data/` to `/usr/share/openttd/baseset/`. Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Azamat H. Hackimov <[email protected]> Signed-off-by: James Le Cuirot <[email protected]>
- Loading branch information
1 parent
789df6d
commit 2f83ebd
Showing
3 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST opengfx-0.6.0-source.tar.xz 9693320 BLAKE2B cb1d25fb038b3b481c0abe206426b5843c2f7b81b7cf81a525ebf8b217359c5ea50c0e1ee1ed37d5093a0186231a1e1b9134624a8b69362f6733c6c13d5e1500 SHA512 275b9040e6938bdd5bee2d39361e0b78f447a8e497cc8ff018c7874dc16a357870f8b560999ebb2f2f0b275644c7c9ce85c964875f5a798e2ec45e62a8bc768f | ||
DIST opengfx-0.6.1-source.tar.xz 9690748 BLAKE2B faa3ca805166a1716f8a235048506620bbb98a4265c72571b3a33e88f3375caff75b5576b64ef451e99dea734145f3be748a9109c7003d1ad9043a90cdd34dad SHA512 4ba3528dbdddea1baa2875f917f959034659c8205fbda2b2a67c5fe80161235d15c25dab323e6da8cba2711b7b4f0c9a96d4187fd2de61ae9a2ff9fd077b063b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,7 @@ | |
<email>[email protected]</email> | ||
<name>Gentoo Games Project</name> | ||
</maintainer> | ||
<upstream> | ||
<remote-id type="github">OpenTTD/OpenGFX</remote-id> | ||
</upstream> | ||
</pkgmetadata> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Copyright 1999-2021 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
PYTHON_COMPAT=( python3_{7..9} ) | ||
|
||
inherit python-any-r1 | ||
|
||
DESCRIPTION="OpenGFX data files for OpenTTD" | ||
HOMEPAGE="https://wiki.openttd.org/en/Basesets/OpenGFX https://github.com/OpenTTD/OpenGFX" | ||
SRC_URI="https://cdn.openttd.org/${PN}-releases/${PV}/${P}-source.tar.xz" | ||
S="${WORKDIR}/${P}-source" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~arm ~arm64 ~x86" | ||
|
||
DEPEND=" | ||
games-util/grfcodec | ||
games-util/nml | ||
${PYTHON_DEPS} | ||
" | ||
|
||
DOCS=( "README.md" "changelog.txt" ) | ||
|
||
src_prepare() { | ||
default | ||
|
||
python-any-r1_pkg_setup | ||
} | ||
|
||
src_compile() { | ||
local myemakeargs=( | ||
GIMP="" | ||
PYTHON="${EPYTHON}" | ||
) | ||
|
||
emake "${myemakeargs[@]}" all | ||
} | ||
|
||
src_test() { | ||
local myemakeargs=( | ||
GIMP="" | ||
PYTHON="${EPYTHON}" | ||
) | ||
|
||
emake "${myemakeargs[@]}" check | ||
} | ||
|
||
src_install() { | ||
local myemakeargs=( | ||
DO_NOT_INSTALL_README="true" | ||
DO_NOT_INSTALL_LICENSE="true" | ||
DO_NOT_INSTALL_CHANGELOG="true" | ||
GIMP="" | ||
INSTALL_DIR="${ED}/usr/share/openttd/baseset/" | ||
PYTHON="${EPYTHON}" | ||
) | ||
|
||
emake "${myemakeargs[@]}" install | ||
|
||
einstalldocs | ||
} |