summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2010-01-07 08:17:45 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2010-01-07 08:17:45 +0000
commite0b71be2d7071b991e2c9772fdd15eb568a4f697 (patch)
treeb873fced52730ed314929f4b33835c802339cb74 /games-board/gnubg
parentold (diff)
downloadhistorical-e0b71be2d7071b991e2c9772fdd15eb568a4f697.tar.gz
historical-e0b71be2d7071b991e2c9772fdd15eb568a4f697.tar.bz2
historical-e0b71be2d7071b991e2c9772fdd15eb568a4f697.zip
version bump; clean old
Package-Manager: portage-2.1.6.13/cvs/Linux i686
Diffstat (limited to 'games-board/gnubg')
-rw-r--r--games-board/gnubg/ChangeLog11
-rw-r--r--games-board/gnubg/Manifest14
-rw-r--r--games-board/gnubg/files/gnubg-0.14.3-64bits.patch97
-rw-r--r--games-board/gnubg/files/gnubg-0.14.3-as-needed.patch22
-rw-r--r--games-board/gnubg/files/gnubg-0.14.3-blas.patch11
-rw-r--r--games-board/gnubg/files/gnubg-0.14.3-gcc4.patch118
-rw-r--r--games-board/gnubg/files/gnubg-20100107-build.patch53
-rw-r--r--games-board/gnubg/gnubg-0.14.3-r1.ebuild110
-rw-r--r--games-board/gnubg/gnubg-20100107.ebuild73
9 files changed, 140 insertions, 369 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/Manifest b/games-board/gnubg/Manifest
index 5c8b0a0b01d8..43623011bbc7 100644
--- a/games-board/gnubg/Manifest
+++ b/games-board/gnubg/Manifest
@@ -1,14 +1,8 @@
-AUX gnubg-0.14.3-64bits.patch 2171 RMD160 b07cea2d81ce8508b38cbefa7ca13a152862fd2e SHA1 12a1e3fcb5d48401b6df4e9fc42ec1ffb70c0b4a SHA256 631572f633f7f86f071bb7497149dbeaf25666ae901f95d566d671286e5c0732
-AUX gnubg-0.14.3-as-needed.patch 1009 RMD160 e4e31bf624941959db1e40f2e1a81a58a5ff96d6 SHA1 4ca25f4eb9e3919021803af2a06183e5a71091e5 SHA256 dfb6131d2204804ff8f1da857f2e390c56085b3a575e9bcfcfba3fe6e85686dc
-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
AUX gnubg-20090817-build.patch 2380 RMD160 c8798017d8780dac0bc5b01007a3e3db14b5f989 SHA1 ae9be93cf21dffba38d8f1d8b45ed9bbbc9ba8fe SHA256 26f94c0d264fa52c371173de78129d74a76581a9101cf95e32e2658478c00ea8
-DIST gnubg-0.14.3.tar.gz 4241526 RMD160 da7b2a3b52194ca11d505a70fba805e99f15c3ed SHA1 8a03c91d190e26fb4024cacd766464741b1dfc90 SHA256 76d18f1a7952a4ba2372e439b3c4ecf2fcd244d334c609bb22d3f501067d1d72
+AUX gnubg-20100107-build.patch 2380 RMD160 c8798017d8780dac0bc5b01007a3e3db14b5f989 SHA1 ae9be93cf21dffba38d8f1d8b45ed9bbbc9ba8fe SHA256 26f94c0d264fa52c371173de78129d74a76581a9101cf95e32e2658478c00ea8
DIST gnubg-source-SNAPSHOT-20090817.tar.gz 14171338 RMD160 94189899f78ee597246a6253fd129ff45f948b4f SHA1 2a248ccdd7362151d85010cb1ba1d0c20542adc6 SHA256 e84d011a0768dd188783541a4cd6dc103ff890f46cde27390d8a42f6ad7572c6
-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 2937 RMD160 7599241d232ea52d18e1451022466e5741e66fc8 SHA1 2f18a4c499af880fb9ff3ae0643c4e23a3b9ab33 SHA256 f71e422dad9a7f3e5c71faa70906acca573f0af24fe1be6df530c7b12d3e0682
+DIST gnubg-source-SNAPSHOT-20100107.tar.gz 14181586 RMD160 f90fa81912676bd6fdfc3d313e46936960ad4c7a SHA1 9d1260ff27e93e1197f4c8cb42619d854b7a4811 SHA256 ee5b14bd72bb1fe40acbfa07707e0fff4e4822e778c24e1a28a438b05ea3c652
EBUILD gnubg-20090817.ebuild 1804 RMD160 213c822e9ae30c887ddc9fa5aecc236c803ac48a SHA1 d9f56e45168b0c013d1eece47a7b1f5992adb021 SHA256 aad2a9fcddd0bdf44cb073a9a3644d386d4f73b838d1de20d9247beaa68569ed
-MISC ChangeLog 6682 RMD160 2a2bfb2f2067710dd3a58973470e1de2ba699266 SHA1 c0e6cc71fcd18dbf90fbfc4f566d8d0461ee49e6 SHA256 b6ccc81d0e6f9b9e7ceb127d9037b14c730c5cb2c88afab7ec998e544adccf53
+EBUILD gnubg-20100107.ebuild 1810 RMD160 8ae1c9382d93f46e444f200049c75683e336c2f2 SHA1 9678e6405cc4072814e9b375beb0b3898d39ecd1 SHA256 ac3e5d7ec01c5e9dff02c197dac734f364e78f4bd44d4347fff2fe7a3e209037
+MISC ChangeLog 7025 RMD160 7c3b88d07a57d212858e0f8e544fd79c1581f44b SHA1 27bdd0a8cb9a4876243db17f387887b94f6500bb SHA256 9736b47f62dfcdf42de6577de2417b5659f317ffe89bd92858ea06db018150f7
MISC metadata.xml 251 RMD160 f77a8fea97ab2a02ef2d9bf1cc7b390c5c19e6cb SHA1 8134d1f2611a2e4387a89e84580a2cb5c25f5649 SHA256 34f41062e84f1e12c08550faffc97632a2432df3579520cec76dbe8b08fb9cfe
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
+}