summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-board/eboard
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'games-board/eboard')
-rw-r--r--games-board/eboard/Manifest4
-rw-r--r--games-board/eboard/eboard-1.1.1-r1.ebuild71
-rw-r--r--games-board/eboard/files/eboard-1.1.1-as-needed.patch22
-rw-r--r--games-board/eboard/files/eboard-1.1.1-gcc44.patch11
-rw-r--r--games-board/eboard/files/eboard-1.1.1-libpng15.patch16
-rw-r--r--games-board/eboard/files/eboard-1.1.1-ovflfix.patch22
-rw-r--r--games-board/eboard/metadata.xml8
7 files changed, 154 insertions, 0 deletions
diff --git a/games-board/eboard/Manifest b/games-board/eboard/Manifest
new file mode 100644
index 000000000000..ebf0b3feeb57
--- /dev/null
+++ b/games-board/eboard/Manifest
@@ -0,0 +1,4 @@
+DIST eboard-1.1.1.tar.bz2 462386 SHA256 ad971086697c0d5a1c8a64401f6675339e832acb386dc96fa4e17da1832ca26e SHA512 0e124abc786996070464c3d9ef5eafa107b990df7593d774bf302e01e0d07427f2a67bc33ab61a188d2902aa35abb8cec6356e4e088f4a6b40e189556b588704 WHIRLPOOL 30fb3134c1694169641d65828b730f86edbee1e8514ecc373d2d027a54ffb497e33fb4885e0702bdbaa5c49d9073518894df789344863d49c0d796b4bc171d50
+DIST eboard-extras-1pl2.tar.gz 361237 SHA256 6849cc104e454167db8b8e9ae0573accade5c941a140b47e58b601164e99fcc3 SHA512 82243ef37c655d0a5d4bce9655be9b7cba35f4fe4e4edf9951a61baf5e2e0816cb3d8dea95ed61ed4d9fb9242fd31efeec498e055c2f0e2500acb3c7699b4555 WHIRLPOOL 6c9e01302f59ca2bb874a813aac4497b1a9bca52f91c4ca4ff3f542d21d1632c360a470be2fac95fbfa1a1c790618a1332bc2b6532f90acfbc8a915e7157eea0
+DIST eboard-extras-2.tar.gz 598909 SHA256 0b98bd4c90b2e275f8535186c3e7cbeeef9c9bb611a7febfcd866486a9f41a9c SHA512 e936a4a847b46c057677c0304dde41f0d365cc5f4bd23db39acdb45c6cb53d48fdc188e4f471ef4938a361e7f823c8c391c2b0324c290e1f2d8b5cfe430bb19b WHIRLPOOL 8a2c2995ec7308a2816caac2532a57c9f9b8ba1c9e362f7a7feb347c7312ef426d19c4f63420b9a48afb88756e15c79a83162a593734a73acd081e0bfb2bce05
+DIST eboard_1.1.1-4.1.diff.gz 17247 SHA256 9be0e7fb3cc59edec3fd5c0c2c562eb56fea36afd3c23ac21c1f3ada6acf3617 SHA512 8856a69a2bad8639f38d7da97d7b2464f97101c4c2e38a340f5f8dabacbcc9aa12b200f2b669fc98134655f8c7f6d5b79fb3d5f3582135ef9a9b1fd0917c3e4f WHIRLPOOL 836ade7dbbad4362e08c4413e90ee62b6b6203845c0b8de602d1a343238458f723d318341c1b5034676ee70c3a9370319f752ed541daf89abb7e52640b504c3f
diff --git a/games-board/eboard/eboard-1.1.1-r1.ebuild b/games-board/eboard/eboard-1.1.1-r1.ebuild
new file mode 100644
index 000000000000..a01c3a73693c
--- /dev/null
+++ b/games-board/eboard/eboard-1.1.1-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DEB_V=${PV}-4.1
+EXTRAS1="eboard-extras-1pl2"
+EXTRAS2="eboard-extras-2"
+DESCRIPTION="chess interface for POSIX systems"
+HOMEPAGE="http://www.bergo.eng.br/eboard/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
+ mirror://sourceforge/${PN}/${EXTRAS1}.tar.gz
+ mirror://sourceforge/${PN}/${EXTRAS2}.tar.gz
+ mirror://debian/pool/main/e/eboard/${PN}_${DEB_V}.diff.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="nls"
+
+RDEPEND="x11-libs/gtk+:2
+ media-libs/libpng:0="
+DEPEND="${RDEPEND}
+ dev-lang/perl
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch \
+ "${WORKDIR}"/${PN}_${DEB_V}.diff \
+ "${FILESDIR}"/${P}-as-needed.patch \
+ "${FILESDIR}"/${P}-gcc44.patch \
+ "${FILESDIR}"/${P}-ovflfix.patch \
+ "${FILESDIR}"/${P}-libpng15.patch
+ sed -i \
+ -e "s:(\"-O6\"):split(' ', \"${CXXFLAGS}\"):" \
+ configure || die
+}
+
+src_configure() {
+ ./configure \
+ --compiler="${CXX}" \
+ --prefix="${GAMES_PREFIX}" \
+ --data-prefix="${GAMES_DATADIR}" \
+ --man-prefix="/usr/share/man" \
+ --extra-libs="dl" \
+ $(use_enable nls) || die # not an autoconf script
+}
+
+src_install() {
+ default
+ dodoc Documentation/*.txt
+
+ newicon icon-eboard.xpm ${PN}.xpm
+ make_desktop_entry ${PN} ${PN} ${PN}
+
+ cd "${WORKDIR}"/${EXTRAS1}
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins *.png *.wav
+ newins extras1.conf themeconf.extras1
+ newdoc ChangeLog Changelog.extras
+ newdoc README README.extras
+ dodoc CREDITS
+
+ cd "${WORKDIR}"/${EXTRAS2}
+ doins *.png *.wav
+ newins extras2.conf themeconf.extras2
+
+ prepgamesdirs
+}
diff --git a/games-board/eboard/files/eboard-1.1.1-as-needed.patch b/games-board/eboard/files/eboard-1.1.1-as-needed.patch
new file mode 100644
index 000000000000..b4ec397ba967
--- /dev/null
+++ b/games-board/eboard/files/eboard-1.1.1-as-needed.patch
@@ -0,0 +1,22 @@
+--- configure.old 2009-02-03 14:46:21.000000000 +0100
++++ configure 2009-02-03 14:48:13.000000000 +0100
+@@ -638,7 +638,7 @@
+
+ print CONFIGMAKE "CXX = $cxx\n";
+ print CONFIGMAKE "CXXFLAGS = @cxxflags\n";
+-print CONFIGMAKE "LDFLAGS = @ldflags\n";
++print CONFIGMAKE "LDLIBS = @ldflags\n";
+
+ print CONFIGMAKE "prefix = \${DESTDIR}$prefix\n";
+ print CONFIGMAKE "bindir = \${DESTDIR}$prefix/bin\n";
+--- elifekam.old 2009-02-03 14:48:43.000000000 +0100
++++ elifekam 2009-02-03 14:48:58.000000000 +0100
+@@ -24,7 +24,7 @@
+ all: eboard nls-dicts
+
+ eboard: $(OBJS)
+- $(CXX) $(LDFLAGS) -o eboard $(OBJS)
++ $(CXX) $(LDFLAGS) -o eboard $(OBJS) $(LDLIBS)
+
+ .cc.o: $< $(HEADERS) $(XPMS)
+ $(CXX) $(CXXFLAGS) -c $< -o $@
diff --git a/games-board/eboard/files/eboard-1.1.1-gcc44.patch b/games-board/eboard/files/eboard-1.1.1-gcc44.patch
new file mode 100644
index 000000000000..43a26393d4f4
--- /dev/null
+++ b/games-board/eboard/files/eboard-1.1.1-gcc44.patch
@@ -0,0 +1,11 @@
+--- ntext.cc
++++ ntext.cc
+@@ -244,7 +244,7 @@
+ return;
+ }
+
+- p = strchr(text, '\n');
++ p = strchr((char *)text, '\n');
+ if (p!=NULL) {
+ *p = 0;
+ i = strlen(text);
diff --git a/games-board/eboard/files/eboard-1.1.1-libpng15.patch b/games-board/eboard/files/eboard-1.1.1-libpng15.patch
new file mode 100644
index 000000000000..8ab283259f79
--- /dev/null
+++ b/games-board/eboard/files/eboard-1.1.1-libpng15.patch
@@ -0,0 +1,16 @@
+--- cimg.cc
++++ cimg.cc
+@@ -94,11 +95,11 @@
+ ct == PNG_COLOR_TYPE_GRAY_ALPHA)
+ png_set_gray_to_rgb(pngp);
+
+- alloc(pngp->width,pngp->height);
++ alloc(width,height);
+ if (!ok) { fclose(f); return; }
+ ok = 0;
+
+- for(i=0;i<pngp->height;i++) {
++ for(i=0;i<height;i++) {
+ png_read_row(pngp, (png_bytep) (&data[i*rowlen]), NULL);
+ }
+
diff --git a/games-board/eboard/files/eboard-1.1.1-ovflfix.patch b/games-board/eboard/files/eboard-1.1.1-ovflfix.patch
new file mode 100644
index 000000000000..4a586b2b70a3
--- /dev/null
+++ b/games-board/eboard/files/eboard-1.1.1-ovflfix.patch
@@ -0,0 +1,22 @@
+--- proto_xboard.cc.old 2010-11-03 16:42:15.000000000 +0100
++++ proto_xboard.cc 2010-11-03 16:43:14.000000000 +0100
+@@ -1084,7 +1084,7 @@
+ snprintf(EngineCommandLine,512,"crafty bookpath=%s logpath=%s tbpath=%s",
+ BookPath,LogPath,LogPath);
+ if (!global.env.Home.empty())
+- snprintf(EngineRunDir,512,"%s/.eboard/craftylog",global.env.Home.c_str());
++ snprintf(EngineRunDir, sizeof(EngineRunDir), "%s/.eboard/craftylog", global.env.Home.c_str());
+ else
+ strcpy(EngineRunDir,"/tmp");
+
+--- util.cc.old 2010-11-03 16:42:24.000000000 +0100
++++ util.cc 2010-11-03 16:43:42.000000000 +0100
+@@ -783,7 +783,7 @@
+ int i,n;
+ char cmd[1024];
+
+- n = snprintf(tmpfile,1024,"/tmp/eb%d-%s",(int) getpid(), origfile);
++ n = snprintf(tmpfile, sizeof(tmpfile), "/tmp/eb%d-%s", (int) getpid(), origfile);
+
+ if (n >= 1024) {
+ failure = 1;
diff --git a/games-board/eboard/metadata.xml b/games-board/eboard/metadata.xml
new file mode 100644
index 000000000000..c3bbae001dec
--- /dev/null
+++ b/games-board/eboard/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">eboard</remote-id>
+ </upstream>
+</pkgmetadata>