diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2010-01-07 08:17:45 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2010-01-07 08:17:45 +0000 |
commit | 527f4189334c6830b6391af017f789530d506296 (patch) | |
tree | 6eb4040554047f8c6242906470cc92b02a780168 /games-board/gnubg | |
parent | old (diff) | |
download | gentoo-2-527f4189334c6830b6391af017f789530d506296.tar.gz gentoo-2-527f4189334c6830b6391af017f789530d506296.tar.bz2 gentoo-2-527f4189334c6830b6391af017f789530d506296.zip |
version bump; clean old
(Portage version: 2.1.6.13/cvs/Linux i686)
Diffstat (limited to 'games-board/gnubg')
-rw-r--r-- | games-board/gnubg/ChangeLog | 11 | ||||
-rw-r--r-- | games-board/gnubg/files/gnubg-0.14.3-64bits.patch | 97 | ||||
-rw-r--r-- | games-board/gnubg/files/gnubg-0.14.3-as-needed.patch | 22 | ||||
-rw-r--r-- | games-board/gnubg/files/gnubg-0.14.3-blas.patch | 11 | ||||
-rw-r--r-- | games-board/gnubg/files/gnubg-0.14.3-gcc4.patch | 118 | ||||
-rw-r--r-- | games-board/gnubg/files/gnubg-20100107-build.patch | 53 | ||||
-rw-r--r-- | games-board/gnubg/gnubg-0.14.3-r1.ebuild | 110 | ||||
-rw-r--r-- | games-board/gnubg/gnubg-20100107.ebuild | 73 |
8 files changed, 136 insertions, 359 deletions
diff --git a/games-board/gnubg/ChangeLog b/games-board/gnubg/ChangeLog index 2f0a7a6bf1d6..8064df191341 100644 --- a/games-board/gnubg/ChangeLog +++ b/games-board/gnubg/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for games-board/gnubg # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-board/gnubg/ChangeLog,v 1.50 2010/01/06 19:52:41 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-board/gnubg/ChangeLog,v 1.51 2010/01/07 08:17:45 mr_bones_ Exp $ + +*gnubg-20100107 (07 Jan 2010) + + 07 Jan 2010; Michael Sterrett <mr_bones_@gentoo.org> + -gnubg-0.14.3-r1.ebuild, -files/gnubg-0.14.3-64bits.patch, + -files/gnubg-0.14.3-as-needed.patch, -files/gnubg-0.14.3-blas.patch, + -files/gnubg-0.14.3-gcc4.patch, +gnubg-20100107.ebuild, + +files/gnubg-20100107-build.patch: + version bump; clean old 06 Jan 2010; Brent Baude <ranger@gentoo.org> gnubg-20090817.ebuild: Marking gnubg-20090817 ppc64 for bug 288644 diff --git a/games-board/gnubg/files/gnubg-0.14.3-64bits.patch b/games-board/gnubg/files/gnubg-0.14.3-64bits.patch deleted file mode 100644 index d4b400a80ced..000000000000 --- a/games-board/gnubg/files/gnubg-0.14.3-64bits.patch +++ /dev/null @@ -1,97 +0,0 @@ ---- gnubg.c.old 2006-10-21 09:42:47.000000000 +0200 -+++ gnubg.c 2006-10-21 09:45:19.000000000 +0200 -@@ -8971,7 +8971,8 @@ - #if HAVE_ICONV - - iconv_t id; -- int lIn, lOut, l, rc, nUsed; -+ size_t lIn, lOut, l; -+ int rc, nUsed; - #if WIN32 - const char *pchIn; - #else ---- renderprefs.c.old 2006-10-21 09:51:22.000000000 +0200 -+++ renderprefs.c 2006-10-21 10:13:00.000000000 +0200 -@@ -158,11 +158,13 @@ - #endif /* USE_GTK */ - - #if USE_BOARD3D --static int SetMaterialCommon(Material* pMat, char *sz) -+static int SetMaterialCommon(Material* pMat, char **newsz) - { -+ char *sz; - float opac; - char* pch; - -+ sz = *newsz; - if (SetColourF(pMat->ambientColour, sz) != 0) - return -1; - sz += strlen(sz) + 1; -@@ -206,38 +208,43 @@ - { - sz += strlen(sz) + 1; - if (sz && *sz) -- return (int)sz; -+ { -+ *newsz = sz; -+ return 1; -+ } - } - return 0; - } - - static int SetMaterial(Material* pMat, char *sz) - { -+ int status = (sz != NULL); - if (fX) - { -- sz = (char*)SetMaterialCommon(pMat, sz); -+ status = SetMaterialCommon(pMat, &sz); - pMat->textureInfo = 0; - pMat->pTexture = 0; -- if (sz > 0) -+ if (status > 0) - { - FindTexture(&pMat->textureInfo, sz); -- sz = 0; -+ status = 0; - } - } -- return (int)sz; -+ return status; - } - - static int SetMaterialDice(Material* pMat, char *sz, int* flag) - { -- sz = (char*)SetMaterialCommon(pMat, sz); -+ int status; -+ status = SetMaterialCommon(pMat, &sz); - /* die colour same as chequer colour */ - *flag = TRUE; -- if (sz > 0) -+ if (status > 0) - { - *flag = (toupper(*sz) == 'Y'); -- sz = 0; -+ status = 0; - } -- return (int)sz; -+ return status; - } - - #endif ---- board3d/misc3d.c.old 2006-10-21 10:16:16.000000000 +0200 -+++ board3d/misc3d.c 2006-10-21 10:16:36.000000000 +0200 -@@ -787,10 +787,10 @@ - float ***Alloc3d(int x, int y, int z) - { /* Allocate 3d array */ - int i, j; -- float ***array = (float ***)malloc(sizeof(float) * x); -+ float ***array = (float ***)malloc(sizeof(float **) * x); - for (i = 0; i < x; i++) - { -- array[i] = (float **)malloc(sizeof(float) * y); -+ array[i] = (float **)malloc(sizeof(float *) * y); - for (j = 0; j < y; j++) - array[i][j] = (float *)malloc(sizeof(float) * z); - } diff --git a/games-board/gnubg/files/gnubg-0.14.3-as-needed.patch b/games-board/gnubg/files/gnubg-0.14.3-as-needed.patch deleted file mode 100644 index 4ffd240c2a96..000000000000 --- a/games-board/gnubg/files/gnubg-0.14.3-as-needed.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- gnubg-0.14.3/Makefile.in -+++ gnubg-0.14.3/Makefile.in -@@ -120,7 +120,7 @@ - @USE_GTK_FALSE@ $(FONT_SOURCES) $(PYTHON_SOURCES) $(TIME_SOURCES) - - @USE_GTK_TRUE@gnubg_LDADD = @GTK_LIBS@ $(COMMON_LIBS) $(SOUND_LIBS) $(PNG_LIBS) \ --@USE_GTK_TRUE@ @LIBART_LIBS@ $(BOARD3D_LIBS) @THREAD_LIBS@ -+@USE_GTK_TRUE@ @LIBART_LIBS@ $(BOARD3D_LIBS) @THREAD_LIBS@ -lutil - - @USE_GTK_FALSE@gnubg_LDADD = $(COMMON_LIBS) $(SOUND_LIBS) $(PNG_LIBS) @THREAD_LIBS@ - ---- gnubg-0.14.3/configure ---- gnubg-0.14.3/configure -@@ -12216,7 +12216,7 @@ - - echo "$as_me:$LINENO: checking for python libraries" >&5 - echo $ECHO_N "checking for python libraries... $ECHO_C" >&6 -- PYTHON_LIBS=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBS'), distutils.sysconfig.get_config_var('LIBPL')+'/'+distutils.sysconfig.get_config_var('LIBRARY')"` -+ PYTHON_LIBS=`python-config --libs` - echo "$as_me:$LINENO: result: $PYTHON_LIBS" >&5 - echo "${ECHO_T}$PYTHON_LIBS" >&6 - diff --git a/games-board/gnubg/files/gnubg-0.14.3-blas.patch b/games-board/gnubg/files/gnubg-0.14.3-blas.patch deleted file mode 100644 index aa9c5425648a..000000000000 --- a/games-board/gnubg/files/gnubg-0.14.3-blas.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- lib/neuralnet.c.old 2006-10-22 12:12:20.000000000 +0200 -+++ lib/neuralnet.c 2006-10-22 12:13:05.000000000 +0200 -@@ -39,7 +39,7 @@ - - #if HAVE_LIBATLAS - #warning "LIBATLAS processing..." --#include <cblas.h> -+#include <atlas/cblas.h> - #endif /* HAVE_LIBATLAS */ - - #if SIGMOID_BAUR diff --git a/games-board/gnubg/files/gnubg-0.14.3-gcc4.patch b/games-board/gnubg/files/gnubg-0.14.3-gcc4.patch deleted file mode 100644 index d8e933e94128..000000000000 --- a/games-board/gnubg/files/gnubg-0.14.3-gcc4.patch +++ /dev/null @@ -1,118 +0,0 @@ ---- lib/neuralnet.c.old 2006-01-29 11:16:30.000000000 -0700 -+++ lib/neuralnet.c 2006-01-29 11:21:10.000000000 -0700 -@@ -386,13 +386,15 @@ - } - extern void *NeuralNetCreateDirect( neuralnet *pnn, void *p ) { - -- pnn->cInput = *( ( (int *) p )++ ); -- pnn->cHidden = *( ( (int *) p )++ ); -- pnn->cOutput = *( ( (int *) p )++ ); -- pnn->nTrained = *( ( (int *) p )++ ); -+ int *ip = (int *)p; -+ pnn->cInput = *( ip++ ); -+ pnn->cHidden = *( ip++ ); -+ pnn->cOutput = *( ip++ ); -+ pnn->nTrained = *( ip++ ); - pnn->fDirect = TRUE; -- pnn->rBetaHidden = *( ( (float *) p )++ ); -- pnn->rBetaOutput = *( ( (float *) p )++ ); -+ float *fp = (float *)ip; -+ pnn->rBetaHidden = *( fp++ ); -+ pnn->rBetaOutput = *( fp++ ); - - if( pnn->cInput < 1 || pnn->cHidden < 1 || pnn->cOutput < 1 || - pnn->nTrained < 0 || pnn->rBetaHidden <= 0.0 || -@@ -402,19 +404,19 @@ - return NULL; - } - -- pnn->arHiddenWeight = p; -- ( (float *) p ) += pnn->cInput * pnn->cHidden; -- pnn->arOutputWeight = p; -- ( (float *) p ) += pnn->cHidden * pnn->cOutput; -- pnn->arHiddenThreshold = p; -- ( (float *) p ) += pnn->cHidden; -- pnn->arOutputThreshold = p; -- ( (float *) p ) += pnn->cOutput; -+ pnn->arHiddenWeight = (void *)fp; -+ fp += pnn->cInput * pnn->cHidden; -+ pnn->arOutputWeight = (void *)fp; -+ fp += pnn->cHidden * pnn->cOutput; -+ pnn->arHiddenThreshold = (void *)fp; -+ fp += pnn->cHidden; -+ pnn->arOutputThreshold = (void *)fp; -+ fp += pnn->cOutput; - - pnn->savedBase = malloc( pnn->cHidden * sizeof( float ) ); - pnn->savedIBase = malloc( pnn->cInput * sizeof( float ) ); - -- return p; -+ return (void *)fp; - } - - extern int ---- eval.c.old 2006-01-29 11:24:57.000000000 -0700 -+++ eval.c 2006-01-29 11:27:35.000000000 -0700 -@@ -798,7 +798,9 @@ - if( !fstat( h, &st ) && - ( p = mmap( NULL, st.st_size, PROT_READ | PROT_WRITE, - MAP_PRIVATE, h, 0 ) ) ) { -- ( (float *) p ) += 2; /* skip magic number and version */ -+ float *fp = (float *)p; -+ fp += 2; /* skip magic number and version */ -+ p = (void *)fp; - fReadWeights = - ( p = NeuralNetCreateDirect( &nnContact, p ) ) && - ( p = NeuralNetCreateDirect( &nnRace, p ) ) && ---- rollout.c.old 2006-01-29 11:32:54.000000000 -0700 -+++ rollout.c 2006-01-29 11:32:58.000000000 -0700 -@@ -219,7 +219,7 @@ - nPermutationSeed = n; - } - --static int nSkip; -+static int nSkip_local; - - static int RolloutDice( int iTurn, int iGame, int cGames, - int fInitial, -@@ -234,10 +234,10 @@ - int j; - - if( !iGame ) -- nSkip = 0; -+ nSkip_local = 0; - -- for( ; ; nSkip++ ) { -- j = aaanPermutation[ 0 ][ 0 ][ ( iGame + nSkip ) % 36 ]; -+ for( ; ; nSkip_local++ ) { -+ j = aaanPermutation[ 0 ][ 0 ][ ( iGame + nSkip_local ) % 36 ]; - - anDice[ 0 ] = j / 6 + 1; - anDice[ 1 ] = j % 6 + 1; -@@ -265,7 +265,7 @@ - k; /* 36**i */ - - for( i = 0, j = 0, k = 1; i < 6 && i <= iTurn; i++, k *= 36 ) -- j = aaanPermutation[ i ][ iTurn ][ ( (iGame + nSkip) / k + j ) % 36 ]; -+ j = aaanPermutation[ i ][ iTurn ][ ( (iGame + nSkip_local) / k + j ) % 36 ]; - - anDice[ 0 ] = j / 6 + 1; - anDice[ 1 ] = j % 6 + 1; -@@ -1173,7 +1173,7 @@ - if( prc->fRotate ) - QuasiRandomSeed( prc->nSeed ); - -- nSkip = prc->nSkip; -+ nSkip_local = prc->nSkip; - - /* ... and the RNG */ - if( prc->rngRollout != RNG_MANUAL ) -@@ -1672,7 +1672,7 @@ - return -1; - - pes->rc.nGamesDone = cGames; -- pes->rc.nSkip = nSkip; -+ pes->rc.nSkip = nSkip_local; - - return 0; - diff --git a/games-board/gnubg/files/gnubg-20100107-build.patch b/games-board/gnubg/files/gnubg-20100107-build.patch new file mode 100644 index 000000000000..089d23597cde --- /dev/null +++ b/games-board/gnubg/files/gnubg-20100107-build.patch @@ -0,0 +1,53 @@ +diff -ru gnubg.orig/Makefile.am gnubg/Makefile.am +--- gnubg.orig/Makefile.am 2009-08-08 22:30:04.000000000 -0400 ++++ gnubg/Makefile.am 2009-08-20 02:13:01.696689411 -0400 +@@ -2,9 +2,9 @@ + + ACLOCAL_AMFLAGS = -I m4 + +-AM_CPPFLAGS = -DDOCDIR='"$(datadir)/doc/gnubg/"' -DDATADIR='"$(datadir)"' -DPKGDATADIR='"$(datadir)/gnubg"' ++AM_CPPFLAGS = -DDOCDIR='"@docdir@/"' -DDATADIR='"$(datadir)"' -DPKGDATADIR='"$(datadir)/gnubg"' + +-SUBDIRS = lib doc met po m4 xpm sounds board3d textures scripts flags fonts non-src pixmaps . ++SUBDIRS = lib doc met po m4 xpm sounds board3d textures scripts flags non-src pixmaps . + + bin_PROGRAMS = gnubg makebearoff makehyper bearoffdump makeweights + +diff -ru gnubg.orig/doc/Makefile.am gnubg/doc/Makefile.am +--- gnubg.orig/doc/Makefile.am 2009-08-08 22:30:05.000000000 -0400 ++++ gnubg/doc/Makefile.am 2009-08-20 02:10:53.969939597 -0400 +@@ -1,6 +1,6 @@ +-AM_CPPFLAGS = -DDOCDIR='"$(datadir)/doc/gnubg/"' -DDATADIR='"$(datadir)"' -DPKGDATADIR='"$(datadir)/gnubg"' +-gnubg_helpdir = $(datadir)/doc/gnubg/ +-gnubg_imagedir = $(datadir)/doc/gnubg/images ++AM_CPPFLAGS = -DDOCDIR='"@docdir@/"' -DDATADIR='"$(datadir)"' -DPKGDATADIR='"$(datadir)/gnubg"' ++gnubg_helpdir = @docdir@/ ++gnubg_imagedir = @docdir@/images + gnubg_help_DATA = gnubg.html allabout.html + gnubg_image_DATA = images/1540d81e.png images/16d7944c.png images/1805dc7d.png \ + images/20bc52ca.png images/20d56757.png images/234924dc.png images/26e34ea5.png \ +diff -ru gnubg.orig/pixmaps/Makefile.am gnubg/pixmaps/Makefile.am +--- gnubg.orig/pixmaps/Makefile.am 2008-12-08 22:30:08.000000000 -0500 ++++ gnubg/pixmaps/Makefile.am 2009-08-20 02:12:00.050689327 -0400 +@@ -1,5 +1,5 @@ +-gnubgiconsdir = $(datadir) +-gnubgpixmapsdir = $(pkgdatadir)/pixmaps ++gnubgiconsdir = /usr/share ++gnubgpixmapsdir = /usr/share/pixmaps + + ICONS_16_SCALABLE = icons/hicolor/16x16/apps/scalable/gnubg.svg + ICONS_16 = icons/hicolor/16x16/apps/gnubg.png +diff -ru gnubg.orig/po/Makefile.in.in gnubg/po/Makefile.in.in +--- gnubg.orig/po/Makefile.in.in 2008-09-29 22:30:08.000000000 -0400 ++++ gnubg/po/Makefile.in.in 2009-08-20 02:09:51.838814286 -0400 +@@ -28,8 +28,8 @@ + datarootdir = @datarootdir@ + datadir = @datadir@ + libdir = @libdir@ +-localedir = $(libdir)/locale +-gnulocaledir = $(datadir)/locale ++localedir = @localedir@ ++gnulocaledir = @localedir@ + gettextsrcdir = $(datadir)/glib-2.0/gettext/po + subdir = po + diff --git a/games-board/gnubg/gnubg-0.14.3-r1.ebuild b/games-board/gnubg/gnubg-0.14.3-r1.ebuild deleted file mode 100644 index 52d242942f37..000000000000 --- a/games-board/gnubg/gnubg-0.14.3-r1.ebuild +++ /dev/null @@ -1,110 +0,0 @@ -# Copyright 1999-2009 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.16 2009/12/26 16:57:28 armin76 Exp $ - -EAPI=2 -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 x86 ~x86-fbsd" -IUSE="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 - 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 - !>=dev-scheme/guile-1.8 ) - 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_prepare() { - 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) - else - myconf="${myconf} --without-board3d" - fi - else - myconf="${myconf} --without-gtk --disable-gtktest --without-board3d" - fi - if use esd; then - myconf="${myconf} --disable-artsc-test --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 \ - --disable-artsc \ - $(use_enable esd) \ - $(use_with gdbm) \ - $(use_enable nas) \ - $(use_enable nls) \ - $(use_with python) \ - $(use_with readline) \ - $(use_with X x) \ - ${myconf} -} - -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 -} diff --git a/games-board/gnubg/gnubg-20100107.ebuild b/games-board/gnubg/gnubg-20100107.ebuild new file mode 100644 index 000000000000..a632c0c2fdc8 --- /dev/null +++ b/games-board/gnubg/gnubg-20100107.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-board/gnubg/gnubg-20100107.ebuild,v 1.1 2010/01/07 08:17:45 mr_bones_ Exp $ + +EAPI=2 +inherit autotools eutils games + +DESCRIPTION="GNU BackGammon" +HOMEPAGE="http://www.gnubg.org/" +SRC_URI="http://www.gnubg.org/media/sources/${PN}-source-SNAPSHOT-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd" +IUSE="gtk opengl python threads" + +GTK_DEPS=" + x11-libs/gtk+:2 + x11-libs/cairo + x11-libs/pango" +RDEPEND="dev-libs/glib:2 + media-libs/libpng + dev-libs/libxml2 + media-libs/freetype:2 + media-libs/libcanberra + gtk? ( ${GTK_DEPS} ) + opengl? ( + ${GTK_DEPS} + x11-libs/gtkglext + >=media-libs/ftgl-2.1.2-r1 + ) + sys-libs/readline + python? ( dev-lang/python ) + media-fonts/ttf-bitstream-vera + virtual/libintl + dev-db/sqlite:3" +DEPEND="${RDEPEND} + dev-util/pkgconfig + sys-devel/gettext" + +S=${WORKDIR}/${PN} + +src_prepare() { + # use ${T} instead of /tmp for constructing credits (bug #298275) + sed -i \ + -e 's:/tmp:${T}:' \ + credits.sh \ + || die 'sed failed' + epatch "${FILESDIR}"/${P}-build.patch + eautoreconf +} + +src_configure() { + egamesconf \ + --disable-dependency-tracking \ + --localedir=/usr/share/locale \ + --docdir=/usr/share/doc/${PF}/html \ + $(use_enable threads) \ + $(use_with python) \ + $(use gtk || use opengl && echo --with-gtk) \ + $(use_with opengl board3d) +} + +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 + dosym /usr/share/fonts/ttf-bitstream-vera "${GAMES_DATADIR}"/${PN}/fonts + newicon textures/logo.png gnubg.png + make_desktop_entry "gnubg -w" "GNU Backgammon" + prepgamesdirs +} |