summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schweizer <genstef@gentoo.org>2006-06-08 00:38:53 +0000
committerStefan Schweizer <genstef@gentoo.org>2006-06-08 00:38:53 +0000
commit6d16d10213c82fe408f790361f7e72aefa73ef45 (patch)
tree0724441da59fa298727f04a20f623278dccf1eda /games-board
parentborked testing ebuild. OLD (diff)
downloadsunrise-reviewed-6d16d10213c82fe408f790361f7e72aefa73ef45.tar.gz
sunrise-reviewed-6d16d10213c82fe408f790361f7e72aefa73ef45.tar.bz2
sunrise-reviewed-6d16d10213c82fe408f790361f7e72aefa73ef45.zip
Add the games-sports/xmoto ebuild from bug 107968 and the games-board/knights ebuild from my overlay
svn path=/; revision=3
Diffstat (limited to 'games-board')
-rw-r--r--games-board/knights/files/knights-no-arts.patch34
-rw-r--r--games-board/knights/knights-0.6.4_pre20060107.ebuild54
2 files changed, 88 insertions, 0 deletions
diff --git a/games-board/knights/files/knights-no-arts.patch b/games-board/knights/files/knights-no-arts.patch
new file mode 100644
index 000000000..d97048d44
--- /dev/null
+++ b/games-board/knights/files/knights-no-arts.patch
@@ -0,0 +1,34 @@
+diff -ur k.orig/admin/acinclude.m4.in k/admin/acinclude.m4.in
+--- k.orig/admin/acinclude.m4.in 2005-11-26 22:46:32.000000000 +0100
++++ k/admin/acinclude.m4.in 2005-11-26 22:47:46.000000000 +0100
+@@ -513,13 +513,6 @@
+ ])
+ ])
+
+-AC_DEFUN(KDE_MISSING_ARTS_ERROR,
+-[
+- AC_MSG_ERROR([The important program $1 was not found!
+-Please check whether you installed aRts correctly.
+-])
+-])
+-
+ AC_DEFUN(KDE_SUBST_PROGRAMS,
+ [
+
+@@ -536,8 +529,6 @@
+ kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_default_bindirs"
+ KDE_FIND_PATH(dcopidl, DCOPIDL, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(dcopidl)])
+ KDE_FIND_PATH(dcopidl2cpp, DCOPIDL2CPP, [$kde_default_bindirs], [KDE_MISSING_PROG_ERROR(dcopidl2cpp)])
+- KDE_FIND_PATH(mcopidl, MCOPIDL, [$kde_default_bindirs], [KDE_MISSING_ARTS_ERROR(mcopidl)])
+- KDE_FIND_PATH(artsc-config, ARTSCCONFIG, [$kde_default_bindirs], [KDE_MISSING_ARTS_ERROR(artsc-config)])
+ KDE_FIND_PATH(kde-config, KDECONFIG, [$kde_default_bindirs])
+ KDE_FIND_PATH(meinproc, MEINPROC, [$kde_default_bindirs])
+
+@@ -557,7 +548,6 @@
+ AC_SUBST(DCOPIDL2CPP)
+ AC_SUBST(DCOP_DEPENDENCIES)
+ AC_SUBST(MCOPIDL)
+- AC_SUBST(ARTSCCONFIG)
+ AC_SUBST(KDECONFIG)
+ AC_SUBST(MEINPROC)
+ AC_SUBST(KDE_XSL_STYLESHEET)
diff --git a/games-board/knights/knights-0.6.4_pre20060107.ebuild b/games-board/knights/knights-0.6.4_pre20060107.ebuild
new file mode 100644
index 000000000..2386bf7db
--- /dev/null
+++ b/games-board/knights/knights-0.6.4_pre20060107.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils kde cvs
+
+ECVS_SERVER="knights.cvs.sourceforge.net:/cvsroot/${PN}"
+ECVS_MODULE="${PN}"
+ECVS_CO_OPTS="-D ${PV#*_pre}"
+ECVS_UP_OPTS="-dP ${ECVS_CO_OPTS}"
+
+S=${WORKDIR}/${ECVS_MODULE}
+
+MY_PV=${PV/_/-}
+THEME=${PN}-themepack-0.5.9
+DESCRIPTION="KDE Chess Interface"
+HOMEPAGE="http://knights.sourceforge.net/"
+SRC_URI="mirror://sourceforge/knights/${THEME}.tar.gz"
+S="${WORKDIR}/${PN}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~amd64"
+IUSE=""
+
+DEPEND="|| ( kde-base/kdebase-kioslaves
+ kde-base/kdebase )"
+RDEPEND="${DEPEND}"
+
+need-kde 3
+
+src_unpack() {
+ cvs_src_unpack
+ cd ${WORKDIR}
+ unpack ${A}
+ cd ${S}
+ sed -i "s:\(the same spot\):\1\n/*:" knights/logic.cpp || die "sed failed"
+ sed -i "s:\(// restore the backup\):*/\n\t\t}\n\t}\n\t\1:" \
+ knights/logic.cpp || die "sed failed"
+ sed -i "s:head -\([0-9]\+\):head -n \1:" admin/cvs.sh || die "sed failed"
+ sed -i "s: theme.cpp::" knights/Makefile.am || die "sed failed"
+
+ epatch ${FILESDIR}/knights-no-arts.patch
+
+ make -f Makefile.dist || die "make -f Makefile.dist failed"
+}
+
+src_install() {
+ kde_src_install
+
+ cd ../${PN}-themepack || die "Themes seem to be missing."
+ insinto /usr/share/apps/knights/themes
+ doins *.tar.gz || die "doins failed"
+}