diff options
Diffstat (limited to 'games-server/tetrix/tetrix-1.13.16.1.40c-r2.ebuild')
-rw-r--r-- | games-server/tetrix/tetrix-1.13.16.1.40c-r2.ebuild | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/games-server/tetrix/tetrix-1.13.16.1.40c-r2.ebuild b/games-server/tetrix/tetrix-1.13.16.1.40c-r2.ebuild index df2eee8e255c..8658b817d408 100644 --- a/games-server/tetrix/tetrix-1.13.16.1.40c-r2.ebuild +++ b/games-server/tetrix/tetrix-1.13.16.1.40c-r2.ebuild @@ -1,7 +1,8 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-server/tetrix/tetrix-1.13.16.1.40c-r2.ebuild,v 1.11 2007/04/28 16:04:40 tove Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-server/tetrix/tetrix-1.13.16.1.40c-r2.ebuild,v 1.12 2009/06/15 04:24:28 mr_bones_ Exp $ +EAPI=2 inherit eutils toolchain-funcs games MY_SV=${PV#*.*.*.} @@ -19,18 +20,16 @@ IUSE="" DEPEND="net-libs/adns" -S="${WORKDIR}/${MY_P}" +S=${WORKDIR}/${MY_P} -src_unpack() { - unpack ${A} - cd ${S} - epatch ${FILESDIR}/${PV}-droproot.patch - epatch ${FILESDIR}/${PV}-paths.patch +src_prepare() { + epatch "${FILESDIR}"/${P}-build.patch sed -i \ -e "s:GENTOO_CONFDIR:${GAMES_SYSCONFDIR}/${PN}:" \ -e "s:GENTOO_STATEDIR:${GAMES_STATEDIR}/${PN}:" \ -e "s:GENTOO_LOGDIR:${GAMES_LOGDIR}:" \ - src/config.h bin/game.conf + src/config.h bin/game.conf \ + || die "sed failed" } src_compile() { @@ -42,16 +41,16 @@ src_install() { dodoc AUTHORS ChangeLog README README.qirc.spectators dogamesbin src/tetrix - insinto ${GAMES_SYSCONFDIR}/${PN} + insinto "${GAMES_SYSCONFDIR}"/${PN} doins bin/* newinitd "${FILESDIR}"/tetrix.rc tetrix - keepdir ${GAMES_STATEDIR}/${PN} - dodir ${GAMES_LOGDIR} - touch ${D}/${GAMES_LOGDIR}/${PN}.log + keepdir "${GAMES_STATEDIR}"/${PN} + dodir "${GAMES_LOGDIR}" + touch "${D}/${GAMES_LOGDIR}"/${PN}.log prepgamesdirs - fowners ${GAMES_USER_DED}:${GAMES_GROUP} ${GAMES_STATEDIR}/${PN} - fowners ${GAMES_USER_DED}:${GAMES_GROUP} ${GAMES_LOGDIR}/${PN}.log + fowners ${GAMES_USER_DED}:${GAMES_GROUP} "${GAMES_STATEDIR}"/${PN} + fowners ${GAMES_USER_DED}:${GAMES_GROUP} "${GAMES_LOGDIR}"/${PN}.log } |