summaryrefslogtreecommitdiff
path: root/games-board/gmchess
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-board/gmchess
reinit the tree, so we can have metadata
Diffstat (limited to 'games-board/gmchess')
-rw-r--r--games-board/gmchess/Manifest8
-rw-r--r--games-board/gmchess/files/gmchess-0.29.6-gentoo-r1.patch25
-rw-r--r--games-board/gmchess/files/gmchess-0.29.6-gentoo.patch46
-rw-r--r--games-board/gmchess/gmchess-0.29.6-r1.ebuild59
-rw-r--r--games-board/gmchess/gmchess-0.29.6-r2.ebuild57
-rw-r--r--games-board/gmchess/metadata.xml11
6 files changed, 206 insertions, 0 deletions
diff --git a/games-board/gmchess/Manifest b/games-board/gmchess/Manifest
new file mode 100644
index 000000000000..42de66cd0daa
--- /dev/null
+++ b/games-board/gmchess/Manifest
@@ -0,0 +1,8 @@
+AUX gmchess-0.29.6-gentoo-r1.patch 871 SHA256 222e7412b95f2cfc9af02f37803dce696be53fabd06a8f650b2f828b4f51cc42 SHA512 b7466bcc8b734a7449f99ec0b9fcc16d0820628866945710b681dc5c97b5ba37f359e938aeec76fbe411061c88a706b552a9df48d7e7115a84ddfc05143d7e4c WHIRLPOOL 55ac9f1c34ed36aaea6e182e350ce574187c91cbbd337ea2080cb25bf1b3b30e3a5652eb94e56fb32e5ad55d3d45c782ed7317a536dd0b45b101247813282a98
+AUX gmchess-0.29.6-gentoo.patch 1769 SHA256 7af36778162693cad7f916a7eb9bc011548afee46de7a50b16029eabda8bb49a SHA512 30af30cbf861d0ebc00608a62462685d7805c767e523c8c49c655e42f9677023330f6ae68b9d65366ba10cb98d9eb05138ee4592ec2323aae5567a2dd3765900 WHIRLPOOL 0abe44be125f0269cd4e8d668e9f6603719a2d06ab6b4dfb5d2a9575391faccc885da19626f317ecc8c99be43cd6be67ac0caf5da41727a5f6b6cc0dd1a1689a
+DIST gmchess-0.29.6.tar.bz2 1437904 SHA256 2d2b150747e92045e42f7a300f7d0de34eb9c0f89e7c8cbbe18c220201dd230b SHA512 b6af5205dc087c9fdea4cee81f9002c5dd56282be10b09c99f6f4105730676abff8d036843b7c0232937f43d87d222555a0b9c86e192a5ac8c039509841467a6 WHIRLPOOL cbcaac2b7aacdbf97b40be211aeda26710708c871f3eb53bb5db3b695ace353aa92c28f08735dc95915f4c57908b5e8482be31cb7d8b12c51a97f4c41069777d
+EBUILD gmchess-0.29.6-r1.ebuild 1160 SHA256 599fd2a0b92aaad1ece2d53aaa6bd5e532113ed540af03c6e34a5bf06b23370f SHA512 ea572398aff59891489e8af54a2419828348f2764b332309aedf88b12a6fe9d5058bc384dc2dfa8e6221d788ad6b23a04c83276fe05fb46c3b2a57721ee11366 WHIRLPOOL 441ba6676255d74e54ce6873d0acbc074b203eb0219d780a8f6bcc606a039132f15af2c168cde767c80f114859c73ee4d18fae65eabc4086b26e2c1d69ad81ec
+EBUILD gmchess-0.29.6-r2.ebuild 1008 SHA256 679ea4676abf4d575b32bd3ec98b43130b2e303352b178c81a9a044d993a63f3 SHA512 ef870c40743a5c530a097c2af4c992639cc2124a245915cf3fcaad60a3e8a96c885001b1cf030f9b33d8f7cf3e38ea4169855f8b854ed436aadd1056e31179bd WHIRLPOOL 0ff5c44e36b6b475a272b8639f11eff467b6d4136a6dabe7ff97cb08cfc6bcc329019ae5459669c0d60d15652cb1f5976d7dee668a90c378be79f5e882521934
+MISC ChangeLog 3249 SHA256 851b4ac6b11f90b641909bf2443171efeaff0ace8a355d9ae8d4194e3c760abf SHA512 53cf87b8da80557d1accae90f0c7f10aae033378b6276ec011046d3d931dbac6905f5f64e291c43f8c32dd2a632bdbaff7d13e7aa442ada23e620334682d82db WHIRLPOOL 706bd6ab76a0a631e76d275603b60f4da1839a1e669c5566043fb930f65060ad900bfe121dd63c0c0ff020b25115331a1802a270e57841ddc9a04f2de8070e4c
+MISC ChangeLog-2015 1420 SHA256 27fb352959888319c66f1dc49a4a51d6e88ae21f5986f81f8760b0d4d99bba86 SHA512 6f27b11f2e3ab5b961ebc35a88a9917aba13d8431b8a3bd563fa6f172f147d50909979c74850cc9caf6bbc0e5eb10a2270be48fd6aaa7b1d1e88def9fa5b8e02 WHIRLPOOL e1a2738f2bb58e6fc8bcf4c7918c04174294a36434d22693ed697ad8534db05c323531cf5c604e59d1a8d114fbdc31a6e7c78d292ca750480e50aeae6ff9114f
+MISC metadata.xml 330 SHA256 45da678754ce265c66e4d44cac042f58354e623b7ebd5204ae3e84e1c7c49c56 SHA512 172b4a1ec7cb67f32ab991337ecc058be002d35f8867819b54d28d65ba1ade6217318460f7560c96a03357d262d76bc7e6eaf810be78e32b3a0290037ddbaaa2 WHIRLPOOL 77792845bafb68c28eb08b363d217470429d32a108b95fcf11137e29b20985f0bf80fcc7217bbec57f8b748108cf13674e64a4603e40a4528f5d9a17edbd187b
diff --git a/games-board/gmchess/files/gmchess-0.29.6-gentoo-r1.patch b/games-board/gmchess/files/gmchess-0.29.6-gentoo-r1.patch
new file mode 100644
index 000000000000..6ef990460774
--- /dev/null
+++ b/games-board/gmchess/files/gmchess-0.29.6-gentoo-r1.patch
@@ -0,0 +1,25 @@
+diff -ru gmchess-0.29.6.orig/configure.in gmchess-0.29.6/configure.in
+--- gmchess-0.29.6.orig/configure.in 2011-11-28 07:22:56.000000000 -0500
++++ gmchess-0.29.6/configure.in 2013-05-13 21:30:38.103817044 -0400
+@@ -4,7 +4,7 @@
+ AC_PREREQ([2.63])
+ AC_INIT(gmchess, 0.29.6, lerosua@gmail.com)
+ AC_CONFIG_SRCDIR([src/Pgnfile.cc])
+-AM_CONFIG_HEADER([config.h])
++AC_CONFIG_HEADERS([config.h])
+ AM_INIT_AUTOMAKE(gmchess,0.29.6)
+
+
+diff -ru gmchess-0.29.6.orig/data/gmchess.desktop.in gmchess-0.29.6/data/gmchess.desktop.in
+--- gmchess-0.29.6.orig/data/gmchess.desktop.in 2009-09-07 08:08:47.000000000 -0400
++++ gmchess-0.29.6/data/gmchess.desktop.in 2013-05-13 21:30:19.444462390 -0400
+@@ -1,4 +1,3 @@
+-
+ [Desktop Entry]
+ Name=Chinese chess
+ Name[zh_CN]=天书棋谈
+@@ -10,4 +9,3 @@
+ Type=Application
+ Categories=GNOME;GTK;Game;BoardGame;
+ StartupNotify=true
+-Encoding=UTF-8
diff --git a/games-board/gmchess/files/gmchess-0.29.6-gentoo.patch b/games-board/gmchess/files/gmchess-0.29.6-gentoo.patch
new file mode 100644
index 000000000000..0952cda306b1
--- /dev/null
+++ b/games-board/gmchess/files/gmchess-0.29.6-gentoo.patch
@@ -0,0 +1,46 @@
+diff -ru gmchess-0.29.6.orig/configure.in gmchess-0.29.6/configure.in
+--- gmchess-0.29.6.orig/configure.in 2011-11-28 07:22:56.000000000 -0500
++++ gmchess-0.29.6/configure.in 2013-05-13 21:30:38.103817044 -0400
+@@ -4,7 +4,7 @@
+ AC_PREREQ([2.63])
+ AC_INIT(gmchess, 0.29.6, lerosua@gmail.com)
+ AC_CONFIG_SRCDIR([src/Pgnfile.cc])
+-AM_CONFIG_HEADER([config.h])
++AC_CONFIG_HEADERS([config.h])
+ AM_INIT_AUTOMAKE(gmchess,0.29.6)
+
+
+diff -ru gmchess-0.29.6.orig/data/gmchess.desktop.in gmchess-0.29.6/data/gmchess.desktop.in
+--- gmchess-0.29.6.orig/data/gmchess.desktop.in 2009-09-07 08:08:47.000000000 -0400
++++ gmchess-0.29.6/data/gmchess.desktop.in 2013-05-13 21:30:19.444462390 -0400
+@@ -1,4 +1,3 @@
+-
+ [Desktop Entry]
+ Name=Chinese chess
+ Name[zh_CN]=天书棋谈
+@@ -10,4 +9,3 @@
+ Type=Application
+ Categories=GNOME;GTK;Game;BoardGame;
+ StartupNotify=true
+-Encoding=UTF-8
+diff -ru gmchess-0.29.6.orig/src/engine/eleeye.cpp gmchess-0.29.6/src/engine/eleeye.cpp
+--- gmchess-0.29.6.orig/src/engine/eleeye.cpp 2011-10-26 08:01:39.000000000 -0400
++++ gmchess-0.29.6/src/engine/eleeye.cpp 2013-05-13 21:30:19.445462355 -0400
+@@ -35,7 +35,7 @@
+ #elif __linux__
+ #include <dlfcn.h>
+ #define WINAPI
+- const char *const cszLibEvalFile = "../lib/libeval.so.0";
++ const char *const cszLibEvalFile = "GAMES_LIBDIR/libeval.so.0";
+ #elif __APPLE__
+ #include <dlfcn.h>
+ const char *const cszLibEvalFile = "/usr/local/lib/libeval.0.dylib";
+@@ -125,7 +125,7 @@
+ if (BootLine() != UCCI_COMM_UCCI) {
+ return 0;
+ }
+- LocatePath(Search.szBookFile, "../share/gmchess/book.dat");
++ LocatePath(Search.szBookFile, "GAMES_DATADIR/book.dat");
+ //LocatePath(Search.szBookFile, "book.dat");
+ LocatePath(szLibEvalFile, cszLibEvalFile);
+ hModule = LoadEvalApi(szLibEvalFile);
diff --git a/games-board/gmchess/gmchess-0.29.6-r1.ebuild b/games-board/gmchess/gmchess-0.29.6-r1.ebuild
new file mode 100644
index 000000000000..915470a4b0bb
--- /dev/null
+++ b/games-board/gmchess/gmchess-0.29.6-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools flag-o-matic libtool gnome2-utils games
+
+DESCRIPTION="Chinese chess with gtkmm and c++"
+HOMEPAGE="https://code.google.com/p/gmchess/"
+SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.bz2"
+RESTRICT="test"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="dev-cpp/gtkmm:2.4"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ sed -i \
+ -e "s:GAMES_LIBDIR:$(games_get_libdir):" \
+ -e "s:GAMES_DATADIR:${GAMES_DATADIR}:" \
+ src/engine/eleeye.cpp || die
+ eautoreconf
+}
+
+src_configure() {
+ append-cxxflags -std=c++11
+ egamesconf \
+ --disable-static \
+ --localedir='/usr/share/locale'
+}
+
+src_install() {
+ emake DESTDIR="${D}" \
+ itlocaledir='/usr/share/locale' \
+ pixmapsdir='/usr/share/pixmaps' \
+ desktopdir='/usr/share/applications' \
+ install
+ dodoc AUTHORS NEWS README
+ prune_libtool_files
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-board/gmchess/gmchess-0.29.6-r2.ebuild b/games-board/gmchess/gmchess-0.29.6-r2.ebuild
new file mode 100644
index 000000000000..a89d41d0433d
--- /dev/null
+++ b/games-board/gmchess/gmchess-0.29.6-r2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools flag-o-matic libtool gnome2-utils
+
+DESCRIPTION="Chinese chess with gtkmm and c++"
+HOMEPAGE="https://code.google.com/p/gmchess/"
+SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.bz2"
+RESTRICT="test"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-cpp/gtkmm:2.4"
+RDEPEND=${DEPEND}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo-r1.patch
+)
+
+src_prepare() {
+ default
+ mv configure.{in,ac}
+ eautoreconf
+}
+
+src_configure() {
+ append-cxxflags -std=c++11
+ econf \
+ --disable-static \
+ --localedir='/usr/share/locale'
+}
+
+src_install() {
+ emake DESTDIR="${D}" \
+ itlocaledir='/usr/share/locale' \
+ pixmapsdir='/usr/share/pixmaps' \
+ desktopdir='/usr/share/applications' \
+ install
+ dodoc AUTHORS NEWS README
+ prune_libtool_files
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}
diff --git a/games-board/gmchess/metadata.xml b/games-board/gmchess/metadata.xml
new file mode 100644
index 000000000000..8529633ccba3
--- /dev/null
+++ b/games-board/gmchess/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">gmchess</remote-id>
+ </upstream>
+</pkgmetadata>