diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-10-26 00:10:07 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-10-26 00:10:07 +0100 |
commit | 95461df035e3867364495f065e5e805bf629b2d7 (patch) | |
tree | 867dce371a84a696e91be255d89f282975aa0480 /games-strategy/tornado/tornado-1.4-r3.ebuild | |
parent | 46eedbedafdb0040c37884982d4c775ce277fb7b (diff) |
gentoo resync : 25.10.2021
Diffstat (limited to 'games-strategy/tornado/tornado-1.4-r3.ebuild')
-rw-r--r-- | games-strategy/tornado/tornado-1.4-r3.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/games-strategy/tornado/tornado-1.4-r3.ebuild b/games-strategy/tornado/tornado-1.4-r3.ebuild new file mode 100644 index 000000000000..290d8ba78256 --- /dev/null +++ b/games-strategy/tornado/tornado-1.4-r3.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit plocale toolchain-funcs + +DESCRIPTION="Clone of a C64 game - destroy the opponent's house" +HOMEPAGE="https://github.com/kouya/tornado" +SRC_URI="https://github.com/kouya/tornado/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + acct-group/gamestat + sys-libs/ncurses:= + virtual/libintl" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + sys-devel/gettext" + +PATCHES=( + "${FILESDIR}"/${P}-make.patch +) + +src_prepare() { + default + + sed -i "/SCOREFILE_NAME/s|/|${EPREFIX}/|" scores.h || die +} + +src_compile() { + tc-export CC PKG_CONFIG + + emake PREFIX="${EPREFIX}/usr" LOCALEPATH="${EPREFIX}/usr/share/locale" +} + +src_install() { + dobin tornado + doman doc/man/tornado.6 + + einstalldocs + + tornado_man() { + doman -i18n=${1} doc/man/${1}/${PN}.6 + } + local PLOCALES="de fr it nl no ru" + plocale_for_each_locale tornado_man + + tornado_loc() { + insinto /usr/share/locale/${1}/LC_MESSAGES + newins po/${1}.mo ${PN}.mo + } + PLOCALES+=" es pt" + plocale_for_each_locale tornado_loc + + insinto /var/games + doins ${PN}.scores + + fowners :gamestat /usr/bin/${PN} /var/games/${PN}.scores + fperms g+s /usr/bin/${PN} + fperms 660 /var/games/${PN}.scores +} |