diff options
author | Austin English <wizardedit@gentoo.org> | 2016-08-05 12:33:57 -0500 |
---|---|---|
committer | Austin English <wizardedit@gentoo.org> | 2016-08-05 12:38:46 -0500 |
commit | 323e5b6542348cab9d39c5a6b1471c420de6aa72 (patch) | |
tree | 50a5b03d89d08cc6ecec9bcf3ad3d877538ae217 /games-server/mtavc | |
parent | games-server/monopd: remove deprecated games eclass (diff) | |
download | gentoo-323e5b6542348cab9d39c5a6b1471c420de6aa72.tar.gz gentoo-323e5b6542348cab9d39c5a6b1471c420de6aa72.tar.bz2 gentoo-323e5b6542348cab9d39c5a6b1471c420de6aa72.zip |
games-server/mtavc: remove deprecated games eclass
Also update to EAPI 6
Gentoo-Bug: https://bugs.gentoo.org/574082
Package-Manager: portage-2.3.0
Diffstat (limited to 'games-server/mtavc')
-rw-r--r-- | games-server/mtavc/mtavc-0.5-r1.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/games-server/mtavc/mtavc-0.5-r1.ebuild b/games-server/mtavc/mtavc-0.5-r1.ebuild new file mode 100644 index 000000000000..20433224e0b2 --- /dev/null +++ b/games-server/mtavc/mtavc-0.5-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit eutils + +DESCRIPTION="dedicated server for GTA3 multiplayer" +HOMEPAGE="http://mtavc.com/" +SRC_URI="http://files.gonnaplay.com/201/MTAServer0_5-linux.tar.gz" + +LICENSE="MTA-0.5" +SLOT="0" +KEYWORDS="-* ~x86" +IUSE="" + +RDEPEND="virtual/libstdc++" +DEPEND="" + +S=${WORKDIR} + +QA_PREBUILT="/opt/${PN}/MTAServer" +QA_EXECSTACK="/opt/${PN}/MTAServer" + +src_prepare() { + default + + sed -i 's:NoName:Gentoo:' mtaserver.conf || die +} + +src_install() { + local dir=/opt/${PN} + local files="banned.lst motd.txt mtaserver.conf" + local f + + dobin "${FILESDIR}"/mtavc + sed -i -e "s:GENTOO_DIR:${dir}:" "${D}/usr/bin"/mtavc + + exeinto "${dir}" + newexe MTAServer${PV} MTAServer + insinto /etc/${PN} + doins ${files} + dodoc README CHANGELOG + for f in ${files} ; do + dosym /etc/${PN}/${f} "${dir}"/${f} + done +} |