diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-01-14 05:23:12 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-01-14 05:23:12 +0000 |
commit | ec1c13107d0ee7899250b7451645acc6c7371968 (patch) | |
tree | f689d5a6ff7508b23e65d1bc7d260c5751e450a0 /games-puzzle/quadra | |
parent | warn about low colour X servers (diff) | |
download | historical-ec1c13107d0ee7899250b7451645acc6c7371968.tar.gz historical-ec1c13107d0ee7899250b7451645acc6c7371968.tar.bz2 historical-ec1c13107d0ee7899250b7451645acc6c7371968.zip |
cleanup + games.eclass support
Diffstat (limited to 'games-puzzle/quadra')
-rw-r--r-- | games-puzzle/quadra/ChangeLog | 5 | ||||
-rw-r--r-- | games-puzzle/quadra/quadra-1.1.8.ebuild | 37 |
2 files changed, 27 insertions, 15 deletions
diff --git a/games-puzzle/quadra/ChangeLog b/games-puzzle/quadra/ChangeLog index 5170bc8a1622..2a7fd85b0737 100644 --- a/games-puzzle/quadra/ChangeLog +++ b/games-puzzle/quadra/ChangeLog @@ -1,9 +1,12 @@ # ChangeLog for games-puzzle/quadra # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-puzzle/quadra/ChangeLog,v 1.2 2003/09/10 15:48:06 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/quadra/ChangeLog,v 1.3 2004/01/14 05:23:12 vapier Exp $ *quadra-1.1.8 (7 May 2002) + 14 Jan 2004; Mike Frysinger <vapier@gentoo.org> : + Clean up and support games.eclass. + 27 Nov 2002; Mike Frysinger <vapier@gentoo.org> : Added a patch to make configure detect libpng properly diff --git a/games-puzzle/quadra/quadra-1.1.8.ebuild b/games-puzzle/quadra/quadra-1.1.8.ebuild index 570cd10ad491..80fd9bfd4b68 100644 --- a/games-puzzle/quadra/quadra-1.1.8.ebuild +++ b/games-puzzle/quadra/quadra-1.1.8.ebuild @@ -1,16 +1,16 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-puzzle/quadra/quadra-1.1.8.ebuild,v 1.1 2003/09/10 06:36:00 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/quadra/quadra-1.1.8.ebuild,v 1.2 2004/01/14 05:22:49 vapier Exp $ -inherit gcc +inherit games eutils gcc DESCRIPTION="A tetris clone with multiplayer support" -SRC_URI="mirror://sourceforge/quadra/${P}.tar.gz" HOMEPAGE="http://quadra.sourceforge.net/" +SRC_URI="mirror://sourceforge/quadra/${P}.tar.gz" -KEYWORDS="x86" LICENSE="LGPL-2.1" SLOT="0" +KEYWORDS="x86" IUSE="svga" DEPEND=">=x11-base/xfree-4.1.0 @@ -18,22 +18,31 @@ DEPEND=">=x11-base/xfree-4.1.0 sys-libs/zlib svga? ( media-libs/svgalib )" -src_compile() { - [ `gcc-major-version` == 3 ] && patch -p1<${FILESDIR}/${P}-gcc3.patch - patch -p0<${FILESDIR}/libpng-1.2.5.patch - - local myconf - use svga \ - && myconf="--with-svgalib" \ - || myconf="--without-svgalib" +src_unpack() { + unpack ${A} + cd ${S} + [ `gcc-major-version` == 3 ] && epatch ${FILESDIR}/${P}-gcc3.patch + epatch ${FILESDIR}/libpng-1.2.5.patch + epatch ${FILESDIR}/${PV}-gcc.patch + sed -i 's:-pedantic::' config/vars.mk + sed -i \ + -e "/^libgamesdir:=/s:/games:/${PN}:" \ + -e "/^datagamesdir:=/s:/games:/${PN}:" \ + config/config.mk.in +} - econf ${myconf} +src_compile() { + egamesconf `use_with svgalib` || die emake || die "emake failed" } src_install() { - einstall + egamesinstall || die + dodir /usr/share/pixmaps + mv ${D}/${GAMES_DATADIR}/pixmaps/quadra.xpm ${D}/usr/share/pixmaps + rm -rf ${D}/usr/share/games/pixmaps dodoc ChangeLog NEWS README dohtml help/* + prepgamesdirs } |