diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-util/umodpack/umodpack-0.5_beta16-r2.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-util/umodpack/umodpack-0.5_beta16-r2.ebuild')
-rw-r--r-- | games-util/umodpack/umodpack-0.5_beta16-r2.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/games-util/umodpack/umodpack-0.5_beta16-r2.ebuild b/games-util/umodpack/umodpack-0.5_beta16-r2.ebuild new file mode 100644 index 000000000000..e95a8468e086 --- /dev/null +++ b/games-util/umodpack/umodpack-0.5_beta16-r2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit perl-module toolchain-funcs + +MY_P=${P/_beta/b} +DESCRIPTION="portable and useful [un]packer for Unreal Tournament's Umod files" +HOMEPAGE="http://www.oldunreal.com/wiki/index.php?title=UmodPack" +SRC_URI="mirror://gentoo/${MY_P}-allinone.tar.gz" + +LICENSE="Artistic" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="tk" + +DEPEND="virtual/perl-IO-Compress + dev-perl/Archive-Zip + dev-perl/Tie-IxHash + tk? ( dev-perl/Tk )" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${MY_P} +SRC_TEST="do parallel" + +src_prepare() { + # remove the stupid perl modules since we already installed em + rm -rf {Archive-Zip,Compress-Zlib,Tie-IxHash,Tk}* || die +} + +src_compile() { + perl-module_src_compile + + cd umr-0.3 || die + emake DEBUG=0 CFLAGS="${CFLAGS}" CC="$(tc-getCC)" +} + +src_install() { + mydoc="Changes" + perl-module_src_install + dobin umod umr-0.3/umr + if use tk ; then + dobin xumod + fi +} |