Portage is a package management system used by Gentoo Linux
# ChangeLog for games-board/gnubg
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-board/gnubg/ChangeLog,v 1.38 2008/02/29 18:58:00 carlo Exp $
29 Feb 2008; Carsten Lohrke
Remove icon extension from desktop entry to match Icon Theme Specification.
12 Nov 2007; Mike Frysinger
files/gnubg-0.14.3-as-needed.patch, gnubg-0.14.3-r1.ebuild:
Patch Makefile.in rather than Makefile.am so we dont need to run autotools
#198936 by Michael.
15 Oct 2007; Markus Rothe
Stable on ppc64
12 Jun 2007; Diego Pettenò
Add ~x86-fbsd as per bug #171523, thanks to Nathan Smith.
19 Feb 2007; nixnut
Stable on ppc wrt bug 167564
10 Jan 2007; Piotr Jaroszyński
Fix Manifest.
10 Jan 2007;
Dependency update: dev-util/guile -> dev-scheme/guile.
10 Jan 2007;
Dependency update: dev-util/guile -> dev-scheme/guile.
22 Dec 2006; Gustavo Zacarias
gnubg-0.14.3-r1.ebuild:
Stable on sparc
01 Dec 2006; Chris Gianelloni
Removing old virtual/x11 dependency.
03 Nov 2006; Tristan Heaven
Add nls dependencies
22 Oct 2006;
Meant to put ~all in previous commit. So x86 and ppc64 -> testing
*gnubg-0.14.3-r1 (22 Oct 2006)
22 Oct 2006;
+files/gnubg-0.14.3-blas.patch, +gnubg-0.14.3-r1.ebuild:
Patches for amd64 & fix blas usage. Bug #127554 by playmiac
08 Jul 2006; Markus Rothe
Stable on ppc64
26 May 2006; Markus Rothe
Added ~ppc64 and RESTRICT="test"; bug #132002
24 May 2006; Chris Gianelloni
Fixed dependency on glib and closing bug #134181.
02 May 2006; Michael Sterrett
+files/gnubg-0.14.3-as-needed.patch, gnubg-0.14.3.ebuild:
fix up IUSE and deps; desktop entry; patch for --as-needed - submitted by
Denis Dupeyron via bug #130522
02 Apr 2006;
gnubg-0.14.3.ebuild:
Fix for gcc-4 compilation, bug #120836 by Joshua Baergen
29 Jan 2006; Joshua Baergen
gnubg-0.14.3.ebuild:
Add modular X dependencies.
20 Sep 2005; Michael Sterrett
-gnubg-0.13.0-r1.ebuild, -gnubg-0.14.2.ebuild:
clean old versions
25 Feb 2005; Michael Sterrett
fix up deps; turn off gtk1 support since it's broken (bug #83283)
*gnubg-0.14.3 (24 Feb 2005)
24 Feb 2005; Michael Sterrett
version bump
27 Dec 2004; Mike Frysinger
Stick ftgl into the opengl?() portion of DEPEND #75768.
27 Dec 2004; Mike Frysinger
Add support for USE=opengl to track glgtkext support #47039 by Nicolai
Lissner / Thomas R. (TRauMa).
17 Dec 2004; David Holm
Added to ~ppc.
09 Dec 2004; Michael Sterrett
filter-flags -ffast-math #bug #67929
15 Sep 2004; Jeremy Huddleston
Added to -amd64 (game segfaults on startup).
12 Jul 2004; Jeremy Huddleston
Added to ~sparc. Closes bug #38396.
03 Jul 2004; Michael Sterrett
gnuconfig_update for mips; no backticks
03 Jun 2004; Aron Griffis
Fix use invocation
*gnubg-0.14.2 (05 Apr 2004)
05 Apr 2004; Michael Sterrett
version bump
20 Mar 2004; Michael Sterrett
stop using deprecated ?: use syntax
30 Sep 2003; Michael Sterrett
Failed to link with USE=nas so fix configure.in in this case. Also, default
to gtk2; added more DEPENDs based on USE flags.
*gnubg-0.13.0-r1 (29 Sep 2003)
29 Sep 2003; Michael Sterrett
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)
02 Mar 2003; Mike Frysinger
Initial import. Ebuild submitted by Rigo Ketelings
AUX gnubg-0.14.3-64bits.patch 2171 RMD160 b07cea2d81ce8508b38cbefa7ca13a152862fd2e SHA1 12a1e3fcb5d48401b6df4e9fc42ec1ffb70c0b4a SHA256 631572f633f7f86f071bb7497149dbeaf25666ae901f95d566d671286e5c0732
AUX gnubg-0.14.3-as-needed.patch 460 RMD160 b96427a49abe896405f292cfe568702c7cebe3ec SHA1 a0729862fc472201552b15cb98025f71f62337ab SHA256 2530b9a7434631629ca762fbc20cdfe5c35ecfce5ff4809637415ab965b00ba7
AUX gnubg-0.14.3-blas.patch 284 RMD160 4a517b4f7984099c2deda3d9e7a45bc1b9324dc4 SHA1 d9fa2178f19fb80e470654e8be1570c709ac6a50 SHA256 1c86e885acecd617d67cd6b44ae99de1cdc23e91dcc955a5c475fa91261ed570
AUX gnubg-0.14.3-gcc4.patch 3589 RMD160 28d8b654f837936db37f66e9df8e85e8369a82a3 SHA1 eed82ec0b1a4cb5f51468dbcb5c4f2ac80036e3d SHA256 0f3f7e08207f3d0ccbf4931127dde6c9ca95ec1cb4d12914d3dbc7932407c096
DIST gnubg-0.14.3.tar.gz 4241526 RMD160 da7b2a3b52194ca11d505a70fba805e99f15c3ed SHA1 8a03c91d190e26fb4024cacd766464741b1dfc90 SHA256 76d18f1a7952a4ba2372e439b3c4ecf2fcd244d334c609bb22d3f501067d1d72
DIST gnubg.weights-0.14.gz 460747 RMD160 5d588b1145f0d0489b5d70fa6cfccd9ce6738f04 SHA1 e828006193629063460b032f9a7da9761fdbc085 SHA256 6c134ded36d0875cb673a4f9fd84e2d30424935951baeffcd94852ccdb2daf70
DIST gnubg_os0.bd.gz 906720 RMD160 83fefa3c39544ca9a51f1ba7ae5e8bd5215e631c SHA1 d038a338ee2998d8a61d90b89478eeac3ad464c8 SHA256 e84a36f133ee7ea9fa3686af6c111088b8b43906db1b6c6b3db0035c84cda809
DIST gnubg_ts0.bd.gz 5899380 RMD160 9e0bea798a53374061014226aca9f5d2063133e8 SHA1 b7c4c18dfc2f3be6cd884444bdf523c8aef6ce41 SHA256 0934e4f2d84f5cd50c2ff4592c93c49d43f7cb89da342600736849c7362626d5
EBUILD gnubg-0.14.3-r1.ebuild 3046 RMD160 5f8200d6eed7e166a8b34be32f46f5a7a769875d SHA1 ef6c19bb16b464eee87541de80f343634779b07d SHA256 80e5f32757a8d3c34226fabfefc485e976e3c85431b0519a671428baefcd5676
MISC ChangeLog 5029 RMD160 21ef58c1df5c4a78b07fd13fa740008d2a29a97f SHA1 22fd7bd1754f20ee778c5387c31e50a676544b30 SHA256 ecd348bf24ce1337ca40980684e866d8e5342757b3d7e2e4e12e38dab4b9fc4b
MISC metadata.xml 251 RMD160 f77a8fea97ab2a02ef2d9bf1cc7b390c5c19e6cb SHA1 8134d1f2611a2e4387a89e84580a2cb5c25f5649 SHA256 34f41062e84f1e12c08550faffc97632a2432df3579520cec76dbe8b08fb9cfe
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-board/gnubg/gnubg-0.14.3-r1.ebuild,v 1.11 2008/02/29 18:58:00 carlo Exp $
inherit flag-o-matic eutils games
WPV="0.14"
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/gnubg_os0.bd.gz
ftp://alpha.gnu.org/gnu/gnubg/gnubg_ts0.bd.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ppc ppc64 sparc x86 ~x86-fbsd"
IUSE="arts esd gdbm gtk guile nas nls opengl python readline X"
# test fail - bug #132002
RESTRICT="test"
# FIXME does this need to DEPEND on netpbm?
RDEPEND=">=media-libs/freetype-2
media-libs/libpng
dev-libs/libxml2
arts? ( kde-base/arts )
esd? ( media-sound/esound )
gdbm? ( sys-libs/gdbm )
=dev-libs/glib-2*
gtk? (
=x11-libs/gtk+-2*
media-libs/libart_lgpl
opengl? ( x11-libs/gtkglext >=media-libs/ftgl-2.1.2-r1 )
)
guile? ( dev-scheme/guile )
nas? ( media-libs/nas )
nls? ( virtual/libintl )
python? ( dev-lang/python )
readline? ( sys-libs/readline )
X? ( x11-libs/libXmu )"
DEPEND="${RDEPEND}
dev-util/pkgconfig
nls? ( sys-devel/gettext )"
src_unpack() {
unpack ${A}
cd "${S}"
mv ../${PN}.weights-${WPV} "${S}/${PN}.weights"
mv ../*bd .
sed -i 's:$(localedir):/usr/share/locale:' \
$(find . -name 'Makefile.in*') \
|| die "sed failed"
epatch \
"${FILESDIR}"/${P}-gcc4.patch \
"${FILESDIR}"/${P}-64bits.patch \
"${FILESDIR}"/${P}-blas.patch \
"${FILESDIR}"/${P}-as-needed.patch
}
src_compile() {
local myconf=
if use gtk ; then
# doesn't make any sense to add this without gtk or gtk2
if has_version x11-libs/gtk+extra ; then
myconf="--with-gtkextra"
else
myconf="--without-gtkextra"
fi
myconf="${myconf} --with-gtk --with-gtk2"
if use opengl ; then
myconf="${myconf} --with-board3d"
append-flags $(pkg-config ftgl --cflags)
append-ldflags $(pkg-config ftgl --libs)
else
myconf="${myconf} --without-board3d"
fi
else
myconf="${myconf} --without-gtk --disable-gtktest --without-board3d"
fi
if use arts || use esd ; then
myconf="${myconf} --with-sound"
else
myconf="${myconf} --without-sound --disable-esdtest --disable-artsc-test"
fi
if ! use guile ; then
myconf="${myconf} --without-guile"
fi
filter-flags -ffast-math #bug #67929
LIBART_CONFIG="/usr/bin/libart2-config" egamesconf \
$(use_enable arts artsc) \
$(use_enable esd) \
$(use_with gdbm) \
$(use_enable nas) \
$(use_enable nls) \
$(use_with python) \
$(use_with readline) \
$(use_with X x) \
${myconf} \
|| die
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
insinto "${GAMES_DATADIR}/${PN}"
doins ${PN}.weights *bd || die "doins failed"
dodoc AUTHORS README NEWS
newicon xpm/gnubg-big.xpm gnubg.xpm
make_desktop_entry "gnubg -w" "GNU Backgammon" gnubg
prepgamesdirs
}