diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2003-09-30 05:41:36 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2003-09-30 05:41:36 +0000 |
commit | 9ac087a27a65c5e05070895f5ae88d5fca2afe51 (patch) | |
tree | 176b960ddaa45668ae3b09119ef38eb13bb8fc5d /games-board | |
parent | fixing USE flags to handle odd cases (bug 28580) (diff) | |
download | gentoo-2-9ac087a27a65c5e05070895f5ae88d5fca2afe51.tar.gz gentoo-2-9ac087a27a65c5e05070895f5ae88d5fca2afe51.tar.bz2 gentoo-2-9ac087a27a65c5e05070895f5ae88d5fca2afe51.zip |
fixing USE flags to handle odd cases (bug 28580)
Diffstat (limited to 'games-board')
-rw-r--r-- | games-board/gnubg/ChangeLog | 10 | ||||
-rw-r--r-- | games-board/gnubg/Manifest | 5 | ||||
-rw-r--r-- | games-board/gnubg/files/digest-gnubg-0.13.0-r1 | 3 | ||||
-rw-r--r-- | games-board/gnubg/gnubg-0.13.0-r1.ebuild | 83 | ||||
-rw-r--r-- | games-board/gnubg/metadata.xml | 9 |
5 files changed, 107 insertions, 3 deletions
diff --git a/games-board/gnubg/ChangeLog b/games-board/gnubg/ChangeLog index a07dac9059d5..f0f9fa60ee76 100644 --- a/games-board/gnubg/ChangeLog +++ b/games-board/gnubg/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for games-board/gnubg # Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-board/gnubg/ChangeLog,v 1.2 2003/09/10 20:21:25 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-board/gnubg/ChangeLog,v 1.3 2003/09/30 05:41:34 mr_bones_ Exp $ + +*gnubg-0.13.0-r1 (29 Sep 2003) + + 29 Sep 2003; Michael Sterrett <mr_bones_@gentoo.org> gnubg-0.13.0-r1.ebuild: + Add more USE flags to IUSE; modify the way the USE flags are handled to allow + more combinations of USE flags. There may still be issues with certain + combinations of USE flags but I think the current code will prove more + flexible. (driven by bug 28580) *gnubg-0.13.0 (02 Mar 2003) diff --git a/games-board/gnubg/Manifest b/games-board/gnubg/Manifest index e0f4f4916916..87534d09f79b 100644 --- a/games-board/gnubg/Manifest +++ b/games-board/gnubg/Manifest @@ -1,5 +1,6 @@ -MD5 19b8b1f4c086fbdcb5ae6ec05775343e ChangeLog 373 -MD5 ca299ec602e46fa3f6c444e441e31f9f gnubg-0.13.0-r1.ebuild 2209 +MD5 6fb0d4cbdcb866b33c29da5a0d733f07 ChangeLog 748 +MD5 3f11aaf297b2fe67404a96cda13e9bfe metadata.xml 251 +MD5 80e5e8e72da4d95fe29657783faa359a gnubg-0.13.0-r1.ebuild 2215 MD5 e7f96fb3c96185e3df222fc2277ba015 gnubg-0.13.0.ebuild 1819 MD5 14a8f9e2546292fc22c04fbea97287f7 files/digest-gnubg-0.13.0 188 MD5 14a8f9e2546292fc22c04fbea97287f7 files/digest-gnubg-0.13.0-r1 188 diff --git a/games-board/gnubg/files/digest-gnubg-0.13.0-r1 b/games-board/gnubg/files/digest-gnubg-0.13.0-r1 new file mode 100644 index 000000000000..e21082abc05d --- /dev/null +++ b/games-board/gnubg/files/digest-gnubg-0.13.0-r1 @@ -0,0 +1,3 @@ +MD5 91db5727b6589dbfd410e6ce1683fa95 gnubg-0.13.0.tar.gz 2232531 +MD5 82d1eab50ef604c41dced139afb469ba gnubg.weights-0.13.gz 470118 +MD5 e247fbc2d2ac370ccad29489e8be9181 gnubg.bd.gz 2427893 diff --git a/games-board/gnubg/gnubg-0.13.0-r1.ebuild b/games-board/gnubg/gnubg-0.13.0-r1.ebuild new file mode 100644 index 000000000000..71492b29eae7 --- /dev/null +++ b/games-board/gnubg/gnubg-0.13.0-r1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-board/gnubg/gnubg-0.13.0-r1.ebuild,v 1.1 2003/09/30 05:41:34 mr_bones_ Exp $ + +inherit games + +WPV=0.13 +DESCRIPTION="GNU BackGammon" +HOMEPAGE="http://www.gnu.org/software/gnubg/gnubg.html" +SRC_URI="ftp://alpha.gnu.org/gnu/gnubg/${P}.tar.gz + ftp://alpha.gnu.org/gnu/gnubg/${PN}.weights-${WPV}.gz + ftp://alpha.gnu.org/gnu/gnubg/${PN}.bd.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="gtk gtk2 readline guile X gdbm truetype nls png esd arts nas" + +DEPEND="guile? ( dev-util/guile ) + truetype? ( =media-libs/freetype-1* ) + || ( + gtk? ( =x11-libs/gtk+-1.2* =dev-libs/glib-1* ) + gtk2? ( =x11-libs/gtk+-2* =dev-libs/glib-2* ) + ) + readline? ( sys-libs/readline ) + X? ( virtual/x11 ) + gdbm? ( sys-libs/gdbm ) + png? ( media-libs/libpng )" + +src_unpack() { + unpack ${A} + cd ${S} + mv ../${PN}.weights-${WPV} ${S}/${PN}.weights + mv ../${PN}.bd ${S} +} + +src_compile() { + local myconf="" + if [ -n "`use gtk`" -o -n "`use gtk2`" ] ; then + # doesn't make any sense to add this without gtk or gtk2 + if [ -n "`best_version x11-libs/gtk+extra`" ] ; then + myconf="--with-gtkextra" + else + myconf="--without-gtkextra" + fi + # --with-gtk doesn't mean what you think it means for configuring gnubg. + if [ `use gtk2` ] ; then + myconf="${myconf} --with-gtk --with-gtk2" + else + myconf="${myconf} --with-gtk --without-gtk2" + fi + else + myconf="${myconf} --disable-gtktest" + fi + if [ -n "`use esd`" -o -n "`use arts`" -o -n "`use nas`" ] ; then + myconf="${myconf} --with-sound" + else + myconf="${myconf} --without-sound --disable-esdtest --disable-artsc-test" + fi + + # configure script doesn't handle this option correctly. + # `use_with guile` \ + egamesconf \ + `use_enable esd` \ + `use_enable arts artsc` \ + `use_enable nas` \ + `use_with readline` \ + `use_with X x` \ + `use_with gdbm` \ + `use_with truetype freetype` \ + `use_enable nls` \ + ${myconf} \ + || die + emake || die "emake failed" +} + +src_install() { + make DESTDIR=${D} install || die "make install failed" + insinto ${GAMES_DATADIR}/${PN} + doins ${PN}.weights + dodoc AUTHORS README NEWS + prepgamesdirs +} diff --git a/games-board/gnubg/metadata.xml b/games-board/gnubg/metadata.xml new file mode 100644 index 000000000000..b4647c10eaf6 --- /dev/null +++ b/games-board/gnubg/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<maintainer> +<email>mr_bones_@gentoo.org</email> +<name>Michael Sterrett</name> +</maintainer> +</pkgmetadata> |