diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-board | |
download | gentoo-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')
304 files changed, 7900 insertions, 0 deletions
diff --git a/games-board/ace/Manifest b/games-board/ace/Manifest new file mode 100644 index 000000000000..c222c30a0c92 --- /dev/null +++ b/games-board/ace/Manifest @@ -0,0 +1 @@ +DIST ace-1.4.tar.gz 530490 SHA256 1fee3b0533921a42873c0623f33d873a067b1eec58f2c70c01449146e79a4cce SHA512 cd382db95dc17d75a76809c7f1e096e14f5863c1166aa5db7f93204ce949a9ed21979212946b9d3a09667f4a93b30f4cc44a220940f9b5dd8996f28ecb4a6dcc WHIRLPOOL a6a4209f8a75943673f5c46eb093fcd4f8d7f4109f4286831fad9adac63a153065872e6cfbc397375b9e1bb4e51431a317339e2b29b7488f63746c77fd40ac2a diff --git a/games-board/ace/ace-1.4.ebuild b/games-board/ace/ace-1.4.ebuild new file mode 100644 index 000000000000..460940c42020 --- /dev/null +++ b/games-board/ace/ace-1.4.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils games + +DESCRIPTION="DJ Delorie's Ace of Penguins solitaire games" +HOMEPAGE="http://www.delorie.com/store/ace/" +SRC_URI="http://www.delorie.com/store/ace/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ~sparc x86" +IUSE="" + +RDEPEND="x11-libs/libX11 + media-libs/libpng:0" +DEPEND="${RDEPEND} + x11-proto/xproto" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-no-xpm.patch \ + "${FILESDIR}"/${P}-libpng15.patch \ + "${FILESDIR}"/${P}-gold.patch \ + "${FILESDIR}"/${P}-CC.patch \ + "${FILESDIR}"/${P}-clang.patch + eautoreconf +} + +src_configure() { + egamesconf \ + --disable-static \ + --program-prefix=ace- +} + +src_install() { + default + dohtml docs/* + newicon docs/as.gif ${PN}.gif + cd "${D}${GAMES_BINDIR}" || die + local p + for p in * + do + make_desktop_entry $p "Ace ${p/ace-/}" /usr/share/pixmaps/${PN}.gif + done + prepgamesdirs +} diff --git a/games-board/ace/files/ace-1.4-CC.patch b/games-board/ace/files/ace-1.4-CC.patch new file mode 100644 index 000000000000..ec9045d25765 --- /dev/null +++ b/games-board/ace/files/ace-1.4-CC.patch @@ -0,0 +1,17 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Fri Jan 4 17:19:04 UTC 2013 +Subject: build system + + +--- ace-1.4/lib/Makefile.am ++++ ace-1.4/lib/Makefile.am +@@ -25,7 +25,7 @@ + ./make-imglib -n cards -i $(srcdir)/png -d images.d $(srcdir)/images.in images.c + + make-imglib : make-imglib.c +- $(BUILD_CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(srcdir)/make-imglib.c -o make-imglib -lpng -lz ++ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(srcdir)/make-imglib.c -o make-imglib -lpng -lz + + text2c : text2c.c +- $(BUILD_CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(srcdir)/text2c.c -o text2c -lpng -lz ++ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(srcdir)/text2c.c -o text2c -lpng -lz diff --git a/games-board/ace/files/ace-1.4-clang.patch b/games-board/ace/files/ace-1.4-clang.patch new file mode 100644 index 000000000000..b021efe517de --- /dev/null +++ b/games-board/ace/files/ace-1.4-clang.patch @@ -0,0 +1,15 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Fri Jan 4 17:41:20 UTC 2013 +Subject: fix build with clang + +--- ace-1.4/lib/make-imglib.c ++++ ace-1.4/lib/make-imglib.c +@@ -202,7 +202,7 @@ + char *rv; + if (string) { + next = string; +- return; ++ return 0; + } + while (*next && !isgraph(*next)) next++; + if (!*next) return 0; diff --git a/games-board/ace/files/ace-1.4-gold.patch b/games-board/ace/files/ace-1.4-gold.patch new file mode 100644 index 000000000000..62665d61b880 --- /dev/null +++ b/games-board/ace/files/ace-1.4-gold.patch @@ -0,0 +1,144 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Tue Sep 25 13:18:57 UTC 2012 +Subject: build system + +fix gold linker compilation +https://bugs.gentoo.org/show_bug.cgi?id=435826 + +--- configure.in ++++ configure.in +@@ -44,6 +44,9 @@ + AC_PROG_INSTALL + AC_PROG_LN_S + AC_PROG_MAKE_SET ++AC_PATH_PROG([PKGCONFIG], [pkg-config]) ++AS_IF([test "x$PKGCONFIG" = "x"], ++ [AC_MSG_ERROR([pkg-config not found!])]) + + AC_CHECK_PROGS(BUILD_CC,gcc cc ${CC},gcc) + AC_CHECK_PROG(AR,${AR:-ar},${AR:-ar},ar) +@@ -55,6 +58,10 @@ + dnl doesn't work if gd isn't where the compiler can find it + dnl AC_CHECK_LIB(gd, gdImageCreateFromGif) + ++PKG_CHECK_MODULES([X], [x11]) ++PKG_CHECK_MODULES([Z], [zlib]) ++PKG_CHECK_MODULES([PNG], [libpng]) ++ + dnl Checks for header files. + + AC_PATH_XTRA +@@ -69,57 +76,6 @@ + AC_FUNC_UTIME_NULL + AC_CHECK_FUNCS(gettimeofday mkdir strdup strstr) + +-opt_gd= +-AC_ARG_WITH(z,[ --with-z=DIR location of the ZLIB library],opt_z=$withval) +-AC_ARG_WITH(png,[ --with-png=DIR location of the PNG library],opt_png=$withval) +- +-case "$with_z" in +- yes|no) AC_MSG_ERROR([ +-*** Directory must be specified for --with-z]) +- ;; +- "") +- Z_CFLAGS= +- Z_LIBS=-lz +- ;; +- *) +- if test -f $with_z/include/z.h +- then +- Z_CFLAGS=-I$with_z/include +- else +- Z_CFLAGS=-I$with_z +- fi +- if test -f $with_z/lib/libz.a +- then +- Z_LIBS=$with_z/lib/libz.a +- else +- Z_LIBS=$with_z/libz.a +- fi +- ;; +-esac +- +-case "$with_png" in +- yes|no) AC_MSG_ERROR([ +-*** Directory must be specified for --with-png]) +- ;; +- "") +- PNG_CFLAGS= +- PNG_LIBS= +- ;; +- *) +- if test -f $with_png/lib/png.h +- then +- PNG_CFLAGS=-I$with_png/lib +- else +- PNG_CFLAGS=-I$with_png/include/X11 +- fi +- if test -f $with_png/lib/libPng.a +- then +- PNG_LIBS="-L$with_png/lib" +- else +- PNG_LIBS="-L$with_png" +- fi +- ;; +-esac + + AC_SUBST(Z_CFLAGS) + AC_SUBST(Z_LIBS) +@@ -127,6 +83,9 @@ + AC_SUBST(PNG_CFLAGS) + AC_SUBST(PNG_LIBS) + ++AC_SUBST(X_LIBS) ++AC_SUBST(X_CFLAGS) ++ + AC_SUBST(PDA) + + AC_OUTPUT(Makefile lib/Makefile games/Makefile tests/Makefile) +--- lib/Makefile.am ++++ lib/Makefile.am +@@ -5,18 +5,19 @@ + + CLEANFILES = images.c images.d + +-INCLUDES = $(X_CFLAGS) @PDA@ +-AM_LDFLAGS = $(X_LIBS) ++INCLUDES = $(X_CFLAGS) $(PNG_CFLAGS) $(Z_CFLAGS) @PDA@ + + BUILD_CC = @BUILD_CC@ + AR = @AR@ + STRIP = @STRIP@ + +-libcards_la_LDFLAGS = -version-info 1:0:0 $(AM_LDFLAGS) ++libcards_la_LDFLAGS = -version-info 1:0:0 + + libcards_la_SOURCES = table.c help.c stack.c imagelib.c xwin.c \ + images.c table_rn.c funcs.c + ++libcards_la_LIBADD = $(X_LIBS) $(PNG_LIBS) $(Z_LIBS) ++ + # table_ai.c table_ck.c table_dc.c table_dg.c \ + #table_dp.c table_in.c table_ky.c table_rd.c table_rs.c + +--- games/Makefile.am ++++ games/Makefile.am +@@ -30,8 +30,7 @@ + + STRIP = @STRIP@ + +-INCLUDES = -I$(srcdir)/../lib $(X_CFLAGS) @PDA@ +-AM_LDFLAGS = $(X_LIBS) ++INCLUDES = -I$(srcdir)/../lib @PDA@ + + canfield_SOURCES = canfield.c canfield-img.c + freecell_SOURCES = freecell.c freecell-help.c freecell-img.c +@@ -52,7 +51,7 @@ + solitaire-help.c solitaire-img.c spider-help.c spider-img.c \ + taipedit-help.c taipedit-img.c taipei-help.c taipei-img.c + +-LDADD = ../lib/libcards.la -lpng -lz -lX11 -lm ++LDADD = ../lib/libcards.la -lm + + EXTRA_DIST = $(wildcard *.png) $(wildcard *.tp) + diff --git a/games-board/ace/files/ace-1.4-libpng15.patch b/games-board/ace/files/ace-1.4-libpng15.patch new file mode 100644 index 000000000000..f0ec4e9f6359 --- /dev/null +++ b/games-board/ace/files/ace-1.4-libpng15.patch @@ -0,0 +1,29 @@ +--- lib/make-imglib.c ++++ lib/make-imglib.c +@@ -86,7 +86,7 @@ + png_ptr = png_create_read_struct (PNG_LIBPNG_VER_STRING, 0, 0, 0); + info_ptr = png_create_info_struct (png_ptr); + +- if (setjmp (png_ptr->jmpbuf)) { ++ if (setjmp (png_jmpbuf(png_ptr))) { + fclose (f); + continue; + } +--- lib/xwin.c ++++ lib/xwin.c +@@ -824,13 +824,13 @@ + png_ptr = png_create_read_struct (PNG_LIBPNG_VER_STRING, 0, 0, 0); + info_ptr = png_create_info_struct (png_ptr); + +- if (setjmp (png_ptr->jmpbuf)) { ++ if (setjmp (png_jmpbuf(png_ptr))) { + fprintf(stderr, "Invalid PNG image!\n"); + return; + } + + file_bytes = src->file_data; +- png_set_read_fn (png_ptr, (voidp)&file_bytes, (png_rw_ptr)png_reader); ++ png_set_read_fn (png_ptr, (png_voidp)&file_bytes, (png_rw_ptr)png_reader); + + png_read_info (png_ptr, info_ptr); + diff --git a/games-board/ace/files/ace-1.4-no-xpm.patch b/games-board/ace/files/ace-1.4-no-xpm.patch new file mode 100644 index 000000000000..25b06754be42 --- /dev/null +++ b/games-board/ace/files/ace-1.4-no-xpm.patch @@ -0,0 +1,24 @@ +--- lib/table.c.orig 2008-01-15 15:05:27.000000000 -0500 ++++ lib/table.c 2010-09-29 17:34:40.925310980 -0400 +@@ -23,7 +23,6 @@ + #include <X11/Xutil.h> + #include <X11/keysym.h> + #include <X11/Xatom.h> +-#include <X11/xpm.h> + + #define CD printf("%d: %d %d %d %d\n", __LINE__, ex, ey, ew, eh) + #undef CD +@@ -165,13 +164,6 @@ + xwin_create (width, height); + } + +-typedef struct PicRec { +- Pixmap pixmap; +- Pixmap mask; +- char **xpm_data; +- int image_table_index; +-} PicRec; +- + int get_picture_default_width = CARD_WIDTH; + int get_picture_default_height = CARD_HEIGHT; + diff --git a/games-board/ace/metadata.xml b/games-board/ace/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/ace/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/ascal/Manifest b/games-board/ascal/Manifest new file mode 100644 index 000000000000..08997bcd3d77 --- /dev/null +++ b/games-board/ascal/Manifest @@ -0,0 +1 @@ +DIST ascal-0.1.1.tar.bz2 960688 SHA256 43a5e19d5b2e33ffcaa11b2b2d4dcd62f975f87617505fd3356190c694476ac9 SHA512 4428040396da85dd8598ece34909b1db80fe2f72c36b8e0d23c3f9db5837ee30ec2a10ee74def97a80bafbbf1927cbdb6c598aa5f0a42949d3c490672f8c5165 WHIRLPOOL 53ded3517eb1a07ea6e8a9a7bcd701cab4122806355ad0169df13286ae9aaa0729c4efa54ac0e009d3ca383ed5920c3a7e64517d3f17444a29103024194aa1e1 diff --git a/games-board/ascal/ascal-0.1.1.ebuild b/games-board/ascal/ascal-0.1.1.ebuild new file mode 100644 index 000000000000..2f0bdbc6094d --- /dev/null +++ b/games-board/ascal/ascal-0.1.1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils games + +DESCRIPTION="A game similar to Draughts but with some really cool enhancements" +HOMEPAGE="http://ascal.sourceforge.net/" +SRC_URI="mirror://sourceforge/ascal/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="dev-cpp/libgnomecanvasmm + dev-cpp/libglademm + virtual/libintl" +DEPEND="${RDEPEND} + sys-devel/gettext" + +src_prepare() { + epatch "${FILESDIR}"/${P}-install.patch \ + "${FILESDIR}"/${P}-gcc43.patch + eautoreconf +} + +src_install() { + default + prepgamesdirs +} diff --git a/games-board/ascal/files/ascal-0.1.1-gcc43.patch b/games-board/ascal/files/ascal-0.1.1-gcc43.patch new file mode 100644 index 000000000000..4b3829ec46a5 --- /dev/null +++ b/games-board/ascal/files/ascal-0.1.1-gcc43.patch @@ -0,0 +1,30 @@ +--- src/gui.cpp.old 2009-01-18 21:11:58.000000000 +0100 ++++ src/gui.cpp 2009-01-18 21:12:33.000000000 +0100 +@@ -21,6 +21,7 @@ + #include "shareddata.hpp" + #include "config.h" + #include <string> ++#include <libintl.h> + + gui::gui(shareddata *newData): GuiBoard() { + //clean, cleaner - pointer ;) +--- src/gui_board.cpp.old 2009-01-18 21:13:30.000000000 +0100 ++++ src/gui_board.cpp 2009-01-18 21:13:50.000000000 +0100 +@@ -20,6 +20,7 @@ + #include <math.h> + #include "helper.h" + #include <stack> ++#include <libintl.h> + + + gui_board::gui_board() { +--- src/board.cpp.old 2009-01-18 21:14:27.000000000 +0100 ++++ src/board.cpp 2009-01-18 21:14:58.000000000 +0100 +@@ -15,6 +15,7 @@ + // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + #include "board.hpp" ++#include <cstdlib> + //#define DEBUG + #include "ourmove.hpp" + #include "helper.h" diff --git a/games-board/ascal/files/ascal-0.1.1-install.patch b/games-board/ascal/files/ascal-0.1.1-install.patch new file mode 100644 index 000000000000..b4902998f65f --- /dev/null +++ b/games-board/ascal/files/ascal-0.1.1-install.patch @@ -0,0 +1,70 @@ +--- configure.ac ++++ configure.ac +@@ -63,9 +63,6 @@ + AC_DEFINE(DEBUG, 1, [Enable debug msg.]) + CPPFLAGS=[`echo "$CXXFLAGS" | $SED -e 's/-O[0-9]*//g'`] + CPPFLAGS="$CPPFLAGS -g -O0" +-else +- CPPFLAGS=[`echo "$CXXFLAGS" | $SED -e 's/-O[0-9]*//g'`] +- CPPFLAGS="$CPPFLAGS -O3" + fi + + AC_ARG_ENABLE(Werror, +@@ -74,7 +71,7 @@ + ) + + if test "$enable_Werror" = yes; then +- CPPFLAGS="$CPPFLAGS -Werror -Wall" ++ CPPFLAGS="$CPPFLAGS -Wall" + fi + + AC_ARG_ENABLE(static, +--- m4/Makefile.am ++++ m4/Makefile.am +@@ -15,6 +15,5 @@ + m4macros = + + # The following is boilerplate +-m4data_DATA = $(m4macros) + EXTRA_DIST = + +--- Makefile.am ++++ Makefile.am +@@ -17,13 +17,12 @@ + + ACLOCAL_AMFLAGS = -I m4 + +-pixmapdir = $(datadir)/pixmaps ++pixmapdir = /usr/share/pixmaps + pixmap_DATA = ascal.png + +-desktopdir = $(datadir)/applications ++desktopdir = /usr/share/applications + desktop_in_files = ascal.desktop.in +-desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) + + @INTLTOOL_DESKTOP_RULE@ + +-#include aminclude.am +\ No newline at end of file ++#include aminclude.am +--- po/Makefile.in.in ++++ po/Makefile.in.in +@@ -34,7 +34,7 @@ + datarootdir = @datarootdir@ + libdir = @libdir@ + DATADIRNAME = @DATADIRNAME@ +-itlocaledir = $(prefix)/$(DATADIRNAME)/locale ++itlocaledir = /usr/share/locale + subdir = po + install_sh = @install_sh@ + # Automake >= 1.8 provides @mkdir_p@. +--- src/Makefile.am ++++ src/Makefile.am +@@ -50,5 +50,5 @@ + + + +-INCLUDES = $(ASCAL_CFLAGS) $(GTKMM) -DLOCALEDIR=\""$(datadir)/locale"\" -DASCAL_DATA_PREFIX=\""$(ASCAL_DATA_PREFIX)"\" ++INCLUDES = $(ASCAL_CFLAGS) $(GTKMM) -DLOCALEDIR=\""/usr/share/locale"\" -DASCAL_DATA_PREFIX=\""$(ASCAL_DATA_PREFIX)"\" + LIBS = $(ASCAL_LIBS) $(GTKMM) diff --git a/games-board/ascal/metadata.xml b/games-board/ascal/metadata.xml new file mode 100644 index 000000000000..c91d82b15a7d --- /dev/null +++ b/games-board/ascal/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription lang="en"> +Lasca (or Laska) is a game similar to Draughts but with some really cool +enhancements. You'll find a great description in the help system of Ascal. In +the meantime the article on Wikipedia and on +http://research.interface.co.uk/lasca/about.htm will help you understanding the +rules. Ascal tries to give a great Gnome Version of Lasca for one and two +players. You can undo moves, save and load games and all that on a nifty +graphical board. +</longdescription> + <upstream> + <remote-id type="sourceforge">ascal</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/atakks/Manifest b/games-board/atakks/Manifest new file mode 100644 index 000000000000..ec4eae85feb9 --- /dev/null +++ b/games-board/atakks/Manifest @@ -0,0 +1 @@ +DIST atakks-1.0.tar.gz 62464 SHA256 40603b7029f0092bcd810b6930b595f29ee9b3a645d5a5037c52b7bbad499d81 SHA512 a4b31635ef74198c86002fc930922266f462926bffa5b1fd7fb8ba1186dbc1efd8ae8c84ac0a429737916d1350b5432967221a67505bfe73d47a6dadd7600e39 WHIRLPOOL d525ed8363738041d43f5776a27ea55489ab4a15bfc3beea1a2ee4240622cd10b234942681ae7cf03b4cd97a95eb685b11cf0baf15449b5eedb514d277648220 diff --git a/games-board/atakks/atakks-1.0.ebuild b/games-board/atakks/atakks-1.0.ebuild new file mode 100644 index 000000000000..dfa22905526f --- /dev/null +++ b/games-board/atakks/atakks-1.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +MY_P=${P/-/_} +DESCRIPTION="A clone of Ataxx" +HOMEPAGE="http://team.gcu-squad.org/~fab" +# no version upstream +#SRC_URI="http://team.gcu-squad.org/~fab/down/${PN}.tgz" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="media-libs/libsdl:0" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${MY_P} + +src_prepare() { + # Modify game data paths + sed -i \ + -e "s:SDL_LoadBMP(\":SDL_LoadBMP(\"${GAMES_DATADIR}/${PN}/:" \ + main.c || die + + epatch "${FILESDIR}"/${PV}-warnings.patch \ + "${FILESDIR}"/${P}-as-needed.patch +} + +src_compile() { + emake E_CFLAGS="${CFLAGS}" +} + +src_install() { + dogamesbin ${PN} + insinto "${GAMES_DATADIR}"/${PN} + doins *bmp + newicon icon.bmp ${PN}.bmp + make_desktop_entry ${PN} Atakks /usr/share/pixmaps/${PN}.bmp + prepgamesdirs +} diff --git a/games-board/atakks/files/1.0-warnings.patch b/games-board/atakks/files/1.0-warnings.patch new file mode 100644 index 000000000000..a27e014d9603 --- /dev/null +++ b/games-board/atakks/files/1.0-warnings.patch @@ -0,0 +1,28 @@ +--- main.c.orig 2004-06-02 01:26:00.000000000 -0700 ++++ main.c 2004-06-02 01:27:30.000000000 -0700 +@@ -13,6 +13,7 @@ + #include<SDL/SDL.h> + #include<unistd.h> + #include<stdlib.h> /* atexit */ ++#include<string.h> + #include "defs.h" + void virus(Uint8 posX, Uint8 posY) + { +@@ -206,7 +207,7 @@ + int main(int argc, char **argv) + { + struct move hoho; +- Uint8 caseX, caseY,selx, sely, checked = 0, canmove = 1; ++ Uint8 caseX, caseY,selx = 0, sely = 0, checked = 0, canmove = 1; + SDL_Surface *ico; + int pions1=0, pions2=0; + if (SDL_Init(SDL_INIT_VIDEO) == -1) { +@@ -238,7 +239,7 @@ + argv[0]); + #else + printf +- ("\nSyntax: %s OPTIONS\n\n options:\n-h\t\tPrint help\n-t n1 n2\tSet width=n1 and height=n2\n\-ai\t\tActivate 1 player mode, [i] key during game.\n\n", ++ ("\nSyntax: %s OPTIONS\n\n options:\n-h\t\tPrint help\n-t n1 n2\tSet width=n1 and height=n2\n-ai\t\tActivate 1 player mode, [i] key during game.\n\n", + argv[0]); + + #endif /* */ diff --git a/games-board/atakks/files/atakks-1.0-as-needed.patch b/games-board/atakks/files/atakks-1.0-as-needed.patch new file mode 100644 index 000000000000..b02e32002fa9 --- /dev/null +++ b/games-board/atakks/files/atakks-1.0-as-needed.patch @@ -0,0 +1,16 @@ +--- Makefile.old 2009-02-03 10:02:08.000000000 +0100 ++++ Makefile 2009-02-03 10:04:12.000000000 +0100 +@@ -1,10 +1,10 @@ +-LDFLAGS= -lSDL -lpthread -s +-CFLAGS= -Wall -ansi # -DDEBUG ++LDLIBS = -lSDL ++CFLAGS= $(E_CFLAGS) -DUS -Wall -ansi # -DDEBUG + all: atakks + clean: + rm atakks *.o + atakks: main.o +- $(CC) $(LDFLAGS) $< -o $@ ++ $(CC) $(LDFLAGS) $< -o $@ $(LDLIBS) + pkg: + mkdir atakks-src + cp *.bmp main.c Makefile README atakks-src diff --git a/games-board/atakks/metadata.xml b/games-board/atakks/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/atakks/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/awale/Manifest b/games-board/awale/Manifest new file mode 100644 index 000000000000..95d4c5368e93 --- /dev/null +++ b/games-board/awale/Manifest @@ -0,0 +1,2 @@ +DIST awale-1.5-no-autoreconf2.patch.xz 37268 SHA256 239a8a1a0540353d701783f3163b921e38cf0965b461f695e3e3724869e1837e SHA512 857814c6ffe828bb0c3b82c214932ddf95162b7abaac6720db987f2af31a3b144543773a607edc70e0fceb8433f2aa519d3cfaca7474750cb45074aef0c37cb1 WHIRLPOOL f278edd456a702dc05f01bdec483fe634f0e09469595664aa5e22b8892ea4508dbd797c81dd9c9473ac46e2e028540a157bb91c66f72fe9dfffa0692295fe902 +DIST awale-1.5.tar.gz 489357 SHA256 8bf9812fd6cfe142e18a35474f6a366c1b12f960863a33421f6d2e448ed47014 SHA512 b3f33068d7d6cfd964051e15cfd84e7f2c8483c30f2ccea35e2dddb34353ea984561fdf28c0d668404d80cda89c6d5fcd0004a1a86d92325e5f6fc2f88197c61 WHIRLPOOL 05b46f8f8ea89236aa30755f4d6f39daa24135421220f35e4c96f919facb138871735ebe5f1741e29f4a2fc6572381ad2aa0768197112c22eaf961b0d9814792 diff --git a/games-board/awale/awale-1.5.ebuild b/games-board/awale/awale-1.5.ebuild new file mode 100644 index 000000000000..a0347e497782 --- /dev/null +++ b/games-board/awale/awale-1.5.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# do not use autotools related stuff in stable ebuilds +# unless you like random breakage: 469796, 469798, 424041 + +EAPI=5 + +inherit autotools eutils gnome2-utils games + +DESCRIPTION="Free Awale - The game of all Africa" +HOMEPAGE="http://www.nongnu.org/awale/" +SRC_URI="mirror://nongnu/awale/${P}.tar.gz" +SRC_URI="${SRC_URI} http://dev.gentoo.org/~hasufell/distfiles/${P}-no-autoreconf2.patch.xz" # STABLE ARCH + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="tk" + +RDEPEND="tk? ( dev-lang/tcl:0= dev-lang/tk:0= )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-build.patch + + mv src/xawale.tcl src/xawale.tcl.in || die + mv configure.in configure.ac + rm aclocal.m4 + eautoreconf +} + +src_configure() { + egamesconf \ + --mandir=/usr/share/man \ + --with-iconsdir=/usr/share/icons/hicolor/48x48/apps \ + --with-desktopdir=/usr/share/applications \ + $(use_enable tk) +} + +src_install() { + default + prepgamesdirs + use tk && fperms +x "${GAMES_DATADIR}"/${PN}/xawale.tcl +} + +pkg_preinst() { + games_pkg_preinst + use tk && gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + use tk && gnome2_icon_cache_update +} + +pkg_postrm() { + use tk && gnome2_icon_cache_update +} diff --git a/games-board/awale/files/awale-1.5-build.patch b/games-board/awale/files/awale-1.5-build.patch new file mode 100644 index 000000000000..0e8ca136a410 --- /dev/null +++ b/games-board/awale/files/awale-1.5-build.patch @@ -0,0 +1,116 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Sat Jan 26 20:04:17 UTC 2013 +Subject: build system + + fix FHS compliance + add several switches for icon, desktopdir and tk + fix a few macros + +--- awale-1.5/src/Makefile.am ++++ awale-1.5/src/Makefile.am +@@ -1,24 +1,30 @@ + bin_PROGRAMS = awale + awale_SOURCES = awale.c getopt.c getopt1.c getopt.h +-INCLUDES = -I. -I$(srcdir) ++AM_CPPFLAGS = -I. -I$(srcdir) ++ ++if TK_GUI + bin_SCRIPTS = xawale + xawale: + echo "#! /bin/sh" >$@ +- echo '`dirname $$0`/../share/awale/xawale.tcl' >>$@ ++ echo "cd \"$(datadir)/awale/\" ; exec \"$(datadir)/awale/xawale.tcl\"" >>$@ + chmod ugo+x $@ +-appdir = $(prefix)/share/applications ++appdir = @DESKTOPFILESDIR@ + app_DATA = awale.desktop + awale.desktop: + echo "[Desktop Entry]" >$@ + echo "Name=Free Awale" >>$@ + echo "Comment=Awale game" >>$@ + echo "Exec=xawale" >>$@ +- echo 'Icon=$(pkgdatadir)/awale.png' >>$@ ++ echo 'Icon=awale' >>$@ + echo "Terminal=false" >>$@ + echo "Type=Application" >>$@ + echo "Categories=Game;BoardGame;" >>$@ + chmod 644 $@ + CLEANFILES = xawale awale.desktop ++ ++xawale.tcl: ++ sed 's|@my_bindir@|$(bindir)|' < $@.in > $@ ++ + pkgdata_SCRIPTS = xawale.tcl + dist_pkgdata_DATA = Trou00.gif Trou01.gif Trou02.gif Trou03.gif Trou04.gif Trou05.gif \ + Trou06.gif Trou07.gif Trou08.gif Trou09.gif Trou10.gif Trou11.gif \ +@@ -28,3 +34,8 @@ + Trou06.gif Trou07.gif Trou08.gif Trou09.gif Trou10.gif Trou11.gif \ + Trou12.gif Trou13.gif Trou14.gif Trou15.gif board.gif copyright.gif \ + awale.png awale.ico uk.gif fr.gif sp.gif AwaleBanner.bmp README ++ ++# icon ++iconsdir = @ICONSDIR@ ++dist_icons_DATA = awale.png ++endif +--- awale-1.5/configure.in ++++ awale-1.5/configure.in +@@ -1,6 +1,34 @@ +-AC_INIT(awale.c) +-AM_INIT_AUTOMAKE(awale, 1.5) ++AC_INIT([awale], [1.5]) ++AM_INIT_AUTOMAKE([-Wall]) + AC_CONFIG_SRCDIR([src/awale.c]) + AC_PROG_CC ++ ++ ++# let user specify desktopdir ++AC_ARG_WITH([desktopdir], ++ [AS_HELP_STRING([--with-desktopdir=DIR], ++ [path where desktop files get installed (default: $datadir/applications)])], ++ [DESKTOPFILESDIR="$withval"], ++ [DESKTOPFILESDIR='$(datadir)/applications']) ++ ++# let user specify iconsdir ++AC_ARG_WITH([iconsdir], ++ [AS_HELP_STRING([--with-iconsdir=DIR], ++ [path where icons get installed (default: $datadir/pixmaps)])], ++ [ICONSDIR="$withval"], ++ [ICONSDIR='$(datadir)/pixmaps']) ++ ++# configure-switch for tkgui ++AC_ARG_ENABLE([tk], ++ [AS_HELP_STRING([--enable-tk], ++ [enable tk gui (default: enable)])], ++ [enable_tk=$enableval], ++ [enable_tk="no"]) ++ ++AM_CONDITIONAL([TK_GUI], [test "x$enable_tk" = "xyes"]) ++ ++AC_SUBST([ICONSDIR]) ++AC_SUBST([DESKTOPFILESDIR]) ++ + AC_CONFIG_FILES([Makefile src/Makefile man/Makefile]) + AC_OUTPUT + +--- awale-1.5/man/Makefile.am ++++ awale-1.5/man/Makefile.am +@@ -1,3 +1,7 @@ +-mandir = $(prefix)/share/man ++if TK_GUI + man_MANS = awale.6 xawale.6 ++else ++man_MANS = awale.6 ++endif ++ + EXTRA_DIST = $(man_MANS) +--- awale-1.5/src/xawale.tcl ++++ awale-1.5/src/xawale.tcl +@@ -693,7 +693,7 @@ + + switch $tcl_platform(platform) { + "unix" { +- set JOUER [file join [file dirname [info script]] .. .. bin awale] ++ set JOUER "@my_bindir@/awale" + } + "macintosh" { + set JOUER [file join [file dirname [info script]] .. .. bin awale] diff --git a/games-board/awale/metadata.xml b/games-board/awale/metadata.xml new file mode 100644 index 000000000000..01a746edb196 --- /dev/null +++ b/games-board/awale/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> +</pkgmetadata> + diff --git a/games-board/biloba/Manifest b/games-board/biloba/Manifest new file mode 100644 index 000000000000..e91ed216e5e8 --- /dev/null +++ b/games-board/biloba/Manifest @@ -0,0 +1 @@ +DIST biloba-0.9.3.tar.gz 3162976 SHA256 a088d91bf1df8e2df643da95b5b55494dca82e5e64f28b2ffa9308bd47e12c61 SHA512 8729299bb37e05b7c27e0d77d022228c385d3d3c475c77b9b8eb81a6df2c2513ea0055b52b65715922fd964e4bab875e3ab5bec58746095346bf0c96d0cf6bc5 WHIRLPOOL 6cbadee65355b18492f67bc47287fc48ea56c90cb18d39b2df80c977180f3098aae9b7a1d183c033ee5d04e4e48adee0a0659d97d134fed6843847026a7bb344 diff --git a/games-board/biloba/biloba-0.9.3.ebuild b/games-board/biloba/biloba-0.9.3.ebuild new file mode 100644 index 000000000000..35cc345b6fcd --- /dev/null +++ b/games-board/biloba/biloba-0.9.3.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils gnome2-utils games + +DESCRIPTION="a board game, up to 4 players, with AI and network" +HOMEPAGE="http://biloba.sourceforge.net/" +SRC_URI="mirror://sourceforge/biloba/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="media-libs/libsdl:0[X,video,sound] + media-libs/sdl-image[png] + media-libs/sdl-mixer" +RDEPEND=${DEPEND} + +src_prepare() { + # X11 headers are checked but not used, everything is done through SDL + epatch \ + "${FILESDIR}"/${P}-not-windows.patch \ + "${FILESDIR}"/${P}-no-X11-dep.patch + + # "missing" file is old, and warns about --run not being supported + rm -f missing + eautoreconf +} + +src_install() { + default + newicon -s 64 biloba_icon.png ${PN}.png + make_desktop_entry biloba Biloba + 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/biloba/files/biloba-0.9.3-no-X11-dep.patch b/games-board/biloba/files/biloba-0.9.3-no-X11-dep.patch new file mode 100644 index 000000000000..4c4ef50776cb --- /dev/null +++ b/games-board/biloba/files/biloba-0.9.3-no-X11-dep.patch @@ -0,0 +1,17 @@ +--- configure.ac.orig 2006-07-29 11:38:43.000000000 +0200 ++++ configure.ac 2006-07-29 11:40:52.000000000 +0200 +@@ -40,14 +40,6 @@ + ;; + *) + MATHLIB="-lm" +- AC_PATH_X +- AC_PATH_XTRA +- if test x$have_x = xyes; then +- CFLAGS="$CFLAGS $X_CFLAGS" +- SYS_GL_LIBS="$X_LIBS -lGL" +- else +- SYS_GL_LIBS="-lGL" +- fi + ;; + esac + AC_SUBST(MATHLIB) diff --git a/games-board/biloba/files/biloba-0.9.3-not-windows.patch b/games-board/biloba/files/biloba-0.9.3-not-windows.patch new file mode 100644 index 000000000000..c0ed069ffc2d --- /dev/null +++ b/games-board/biloba/files/biloba-0.9.3-not-windows.patch @@ -0,0 +1,15 @@ +--- configure.ac.old 2008-01-14 14:51:11.000000000 +0100 ++++ configure.ac 2008-12-28 12:57:13.000000000 +0100 +@@ -73,12 +65,6 @@ + AC_MSG_ERROR([*** SDL-Mixer not found!])) + AC_CHECK_HEADER(SDL/SDL_mixer.h, , AC_MSG_ERROR([*** SDL-mixer devel files not found!])) + +-AC_ARG_VAR(WINDRES, [Windows Resource compiler tool path]) +-AC_PATH_TOOL(WINDRES,windres, +- [AC_MSG_WARN(Could not find a windres tool in your PATH.)] +-) +-AC_SUBST(WINDRES) +- + AC_ARG_ENABLE(maemo, + [ --enable-maemo build for the Maemo platform [default=no]], + [ac_cv_enable_maemo=$enableval], [ac_cv_enable_maemo=no]) diff --git a/games-board/biloba/metadata.xml b/games-board/biloba/metadata.xml new file mode 100644 index 000000000000..e7b40101147b --- /dev/null +++ b/games-board/biloba/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">biloba</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/blokish/Manifest b/games-board/blokish/Manifest new file mode 100644 index 000000000000..b4d4c2cf9145 --- /dev/null +++ b/games-board/blokish/Manifest @@ -0,0 +1 @@ +DIST blokish_v0.9.4.tgz 165215 SHA256 9ce9f6bf747df73b7827c37d4ecb24e10bdf491380bc8f9df3e32f45252bd54d SHA512 f84e5c31999cfca4bc6504907a889561c0e6c986b6c7bbd0d7325cec248d7e5d7834d841326635a605669b7bffd9fdb8c8fe73a216a738dace0385ae8a98cbec WHIRLPOOL e059adc2fbdffe8c9c4635d23cff73ae84f6733ce7f10d1c33de534ecad5a90e390e6b9884a1806dc634dbd7303bc57e646b155223b2d51ca3baa0f76803a3bc diff --git a/games-board/blokish/blokish-0.9.4-r1.ebuild b/games-board/blokish/blokish-0.9.4-r1.ebuild new file mode 100644 index 000000000000..c3a3dd85c1ac --- /dev/null +++ b/games-board/blokish/blokish-0.9.4-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +WX_GTK_VER="2.8" +inherit eutils autotools wxwidgets games + +MY_P="${PN}_v${PV}" +DESCRIPTION="Open source clone of the four-player board game Blokus" +HOMEPAGE="http://sourceforge.net/projects/blokish/" +SRC_URI="mirror://sourceforge/blokish/${MY_P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="x11-libs/wxGTK:2.8[X,opengl] + virtual/glu + virtual/opengl" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${PN} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-underlink.patch + sed -i \ + -e "s:wx-config:${WX_CONFIG}:" \ + configure.in makefile.am || die + mv configure.in configure.ac || die + eautoreconf +} + +src_install() { + default + + doicon src/${PN}.xpm + make_desktop_entry ${PN} Blokish ${PN} + + dohtml docs/* + prepgamesdirs +} diff --git a/games-board/blokish/files/blokish-0.9.4-gcc43.patch b/games-board/blokish/files/blokish-0.9.4-gcc43.patch new file mode 100644 index 000000000000..3e48bce774d6 --- /dev/null +++ b/games-board/blokish/files/blokish-0.9.4-gcc43.patch @@ -0,0 +1,12 @@ +--- src/base.h ++++ src/base.h +@@ -25,6 +25,9 @@ + #include <vector> + #include <fstream> + #include <iostream> ++#include <algorithm> ++#include <cstdlib> ++#include <climits> + + enum BlokishID + { diff --git a/games-board/blokish/files/blokish-0.9.4-underlink.patch b/games-board/blokish/files/blokish-0.9.4-underlink.patch new file mode 100644 index 000000000000..9a9eb6eab5a4 --- /dev/null +++ b/games-board/blokish/files/blokish-0.9.4-underlink.patch @@ -0,0 +1,9 @@ +--- makefile.am.old 2011-06-21 08:43:21.804880067 +0200 ++++ makefile.am 2011-06-21 08:43:49.875661081 +0200 +@@ -1,5 +1,5 @@ + INCLUDES = `wx-config --cxxflags` +-LIBS = `wx-config --libs --gl-libs` ++LIBS = `wx-config --libs --gl-libs` -lGL -lm + + bin_PROGRAMS = blokish + diff --git a/games-board/blokish/metadata.xml b/games-board/blokish/metadata.xml new file mode 100644 index 000000000000..99e24ee1d027 --- /dev/null +++ b/games-board/blokish/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">blokish</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/camato/Manifest b/games-board/camato/Manifest new file mode 100644 index 000000000000..a68433abf651 --- /dev/null +++ b/games-board/camato/Manifest @@ -0,0 +1 @@ +DIST camato-0_7_4.tar.gz 39395 SHA256 04cd75f5a395ad7cc4e5c890291382f3f8280f9ad7cb3920e705e837c6f4477e SHA512 b355dbaf35716f719ffe5469ec73db791b2b516dc1fc7a36efa735babcd7d16b79d6d0ceea2f1308f79ca98fe7e0a3dfd3e4b3a7a15eb64abbd144aac2c3720d WHIRLPOOL 869927f33d633c13b0233e4bdca1fa122849eff5cce190a8da038792f03a63c5129a8fc3c66ef2ffb40beaef74114ceef1d7cf96c67b933ad90ea5619a072a47 diff --git a/games-board/camato/camato-0.7.4.ebuild b/games-board/camato/camato-0.7.4.ebuild new file mode 100644 index 000000000000..1e0c1b80f86a --- /dev/null +++ b/games-board/camato/camato-0.7.4.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit versionator games + +MY_PV=$(replace_all_version_separators _) +DESCRIPTION="A map editor for the game gnocatan" +HOMEPAGE="http://yusei.ragondux.com/loisirs_jdp_catane_camato-en.html" +SRC_URI="http://yusei.ragondux.com/files/gnocatan/${PN}-${MY_PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +DEPEND="dev-ruby/ruby-gtk2" +RDEPEND=${DEPEND} + +src_prepare() { + rm -f Makefile + sed -i -e "s:/usr/share:${GAMES_DATADIR}:" ${PN} || die +} + +src_install() { + dogamesbin ${PN} + insinto "${GAMES_DATADIR}"/${PN} + doins -r *.rb img + dodoc ChangeLog README + prepgamesdirs +} diff --git a/games-board/camato/metadata.xml b/games-board/camato/metadata.xml new file mode 100644 index 000000000000..c88119d0aa18 --- /dev/null +++ b/games-board/camato/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription>Camato is a map editor for the game gnocatan. It is made with Ruby and the library Ruby-GTK.</longdescription> +</pkgmetadata> diff --git a/games-board/capicity/Manifest b/games-board/capicity/Manifest new file mode 100644 index 000000000000..a2d50255efa9 --- /dev/null +++ b/games-board/capicity/Manifest @@ -0,0 +1,2 @@ +DIST CapiCity_1.0.tar.gz 363899 SHA256 b4efa91aa7476dd9769cea151239bfcd9afa35cb28afd574d9bb7fdfaba1a33b SHA512 0d2b03bb806e13dabe8fad8dc8c00ce43944229e79f2ad573bd3d4e384e472937818558ddc2ff9e5d45c88bf66d2300d447265c0d4045255ca626dbc26dcc0cc WHIRLPOOL 3ab82f69c60e608f6bb33c97c475c7d42aa424801f5d3860f11b7f0b61943da94dff4ae0a0ca6345f5d34cbb210163de9f2fbc2a182a64906aabfff1386573c9 +DIST Capid_1.0.tar.gz 95151 SHA256 b4fd6808dbe1a7968c5996abb722aff53c98531e53afad4f424221c88ce18c4a SHA512 9bb9bf3e8dc17689cf404dae414759821317b100e553f074fc1a66921fa59161df48839f3f26c040c3045621ff4ab62af3b9919509cef0d9f21bf8a03003166a WHIRLPOOL 4ff278a8c84d23dd2db37de4d1f044588f006fd5701cbe23a5d4c68033df7260aa263745c1731137910fe63d8ae443738aff643efae094896ecaa0658def7b90 diff --git a/games-board/capicity/capicity-1.0.ebuild b/games-board/capicity/capicity-1.0.ebuild new file mode 100644 index 000000000000..c907f79653d2 --- /dev/null +++ b/games-board/capicity/capicity-1.0.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils gnome2-utils qmake-utils games + +DESCRIPTION="A monopd compatible boardgame to play Monopoly-like games (previously named capitalism)" +HOMEPAGE="http://linux-ecke.de/CapiCity/" +SRC_URI="dedicated? ( mirror://sourceforge/project/capitalism/Capi%20City/${PV}/Capid_${PV}.tar.gz ) + !dedicated? ( mirror://sourceforge/project/capitalism/Capi%20City/${PV}/CapiCity_${PV}.tar.gz )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="dedicated" + +RDEPEND=" + dev-qt/qtcore:4 + dev-qt/qtscript:4 + !dedicated? ( dev-qt/qtgui:4 )" +DEPEND="${RDEPEND}" + +src_unpack() { + default + S=${WORKDIR}/$(usex dedicated Capid CapiCity)_${PV} +} + +src_configure() { + if use dedicated ; then + eqmake4 Capid.pro + else + eqmake4 CapiCity.pro + fi +} + +src_install() { + local res + + if use dedicated ; then + dogamesbin Capid + dodoc doc/* + else + dogamesbin CapiCity + dodoc changelog README + + for res in 16 22 24 32 48 64; do + newicon -s ${res} icons/${res}x${res}.png ${PN}.png + done + + make_desktop_entry CapiCity "Capi City" + fi + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + use dedicated || gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + use dedicated || gnome2_icon_cache_update +} + +pkg_postrm() { + use dedicated || gnome2_icon_cache_update +} diff --git a/games-board/capicity/metadata.xml b/games-board/capicity/metadata.xml new file mode 100644 index 000000000000..e000fe16f06e --- /dev/null +++ b/games-board/capicity/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">capitalism</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/ccgo/Manifest b/games-board/ccgo/Manifest new file mode 100644 index 000000000000..a3adc66c1a04 --- /dev/null +++ b/games-board/ccgo/Manifest @@ -0,0 +1 @@ +DIST ccgo-0.3.6.4.tar.gz 620246 SHA256 1975a4e9b6661f6613dd3a00b3ee7e176b80244f555a184b258b50ef4352a890 SHA512 54625bbf7036c18f4a9e92df0d7f2d67772138a940c5fdbbffa3d1c2e5c558cad5394d2c556c06388516e53d1f3502cf6369bcd95b1139d4ca5ec4210dcac5c2 WHIRLPOOL dd1b63c6c4360da99f66772373d2b9a0b39b495c57893d89cd69a4db8c0b8c53db059350c906f17a9e1402bacd473827fcce1be4d607c4afa3b1b9eb36de8f9d diff --git a/games-board/ccgo/ccgo-0.3.6.4.ebuild b/games-board/ccgo/ccgo-0.3.6.4.ebuild new file mode 100644 index 000000000000..680fdacdce82 --- /dev/null +++ b/games-board/ccgo/ccgo-0.3.6.4.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools toolchain-funcs games + +DESCRIPTION="An IGS client written in C++" +HOMEPAGE="http://ccdw.org/~cjj/prog/ccgo/" +SRC_URI="http://ccdw.org/~cjj/prog/ccgo/src/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="nls" + +RDEPEND=">=dev-cpp/gtkmm-2.4:2.4 + >=dev-cpp/gconfmm-2.6 + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +src_prepare() { + sed -i \ + -e '/^Encoding/d' \ + -e '/^Categories/ { s/Application;//; s/$/GTK;/ }' \ + ccgo.desktop.in || die + sed -i \ + -e '/^localedir/s/=.*/=@localedir@/' \ + -e '/^appicondir/s:=.*:=/usr/share/pixmaps:' \ + -e '/^desktopdir/s:=.*:=/usr/share/applications:' \ + Makefile.am || die + eautoreconf +} + +src_configure() { + egamesconf \ + --localedir=/usr/share/locale \ + $(use_enable nls) +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + default + prepgamesdirs +} diff --git a/games-board/ccgo/metadata.xml b/games-board/ccgo/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/ccgo/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/cgoban/Manifest b/games-board/cgoban/Manifest new file mode 100644 index 000000000000..931b46d3a48c --- /dev/null +++ b/games-board/cgoban/Manifest @@ -0,0 +1 @@ +DIST cgoban-1.9.14.tar.gz 417691 SHA256 3b8a6fc0e989bf977fcd9a65a367aa18e34c6e25800e78dd8f0063fa549c9b62 SHA512 0a471845dbfb3029c2371ba91375aa19ca23591f355452d87eeef2ed56e948a60aedb21923658e74923f16b40ce00f5d74f40f44facf93695d20615b874b354c WHIRLPOOL 6df36f1aba50e109683b283b21573200902371a449e4e4975c3d596b3c488d3a48f15a7754ec676bf0aff6bcedf814cdb26065e649bf12ffc61fae26716a3e45 diff --git a/games-board/cgoban/cgoban-1.9.14.ebuild b/games-board/cgoban/cgoban-1.9.14.ebuild new file mode 100644 index 000000000000..4f1fdd4a2efb --- /dev/null +++ b/games-board/cgoban/cgoban-1.9.14.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils autotools games + +DESCRIPTION="A Go-frontend" +HOMEPAGE="http://cgoban1.sourceforge.net/" +SRC_URI="mirror://sourceforge/cgoban1/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +RDEPEND=" + || ( + media-gfx/imagemagick + media-gfx/graphicsmagick[imagemagick] + ) + x11-libs/libX11 + x11-libs/libXt" +DEPEND="${RDEPEND} + x11-proto/xproto" + +src_prepare() { + cp cgoban_icon.png ${PN}.png || die + mv configure.{in,ac} || die + epatch "${FILESDIR}"/${P}-cflags.patch + eautoreconf +} + +src_install() { + default + doicon ${PN}.png + make_desktop_entry cgoban Cgoban + prepgamesdirs +} diff --git a/games-board/cgoban/files/cgoban-1.9.14-cflags.patch b/games-board/cgoban/files/cgoban-1.9.14-cflags.patch new file mode 100644 index 000000000000..7228b4803c95 --- /dev/null +++ b/games-board/cgoban/files/cgoban-1.9.14-cflags.patch @@ -0,0 +1,35 @@ +--- configure.ac.old 2012-09-03 18:34:15.358122626 +0200 ++++ configure.ac 2012-09-03 18:35:30.279156534 +0200 +@@ -1,8 +1,9 @@ + #for autoconf 2.1x start configure script with next three lines + + AC_PREREQ(2.13) +-AC_INIT(src/cgoban.c) +-AM_INIT_AUTOMAKE(cgoban, 1.9.14) ++AC_INIT([cgoban], [1.9.14]) ++AC_CONFIG_SRCDIR([src/cgoban.c]) ++AM_INIT_AUTOMAKE([no-define]) + + #for autoconf 2.5x start configure script with next four lines + # AC_PREREQ(2.50) +--- configure.ac.old 2012-09-03 20:17:48.037549487 +0200 ++++ configure.ac 2012-09-03 20:18:00.267371203 +0200 +@@ -146,7 +146,7 @@ + ###################################################################### + + export VERSION +-AC_DEFINE_UNQUOTED(VERSION,$VERSION) ++AC_DEFINE_UNQUOTED(VERSION,["$VERSION"]) + AC_PREFIX_DEFAULT(/usr/games) + + dayNum=`echo $date | awk '{ print $1 }'` +--- configure.ac.old 2012-09-03 20:23:29.174470309 +0200 ++++ configure.ac 2012-09-03 20:23:51.895996955 +0200 +@@ -169,7 +169,6 @@ + AC_MINIX + AC_PROG_CPP + AC_EXEEXT +-WMS_GET_CFLAGS + + AM_CONFIG_HEADER(configure.h) + AC_SUBST(LIBS)dnl diff --git a/games-board/cgoban/metadata.xml b/games-board/cgoban/metadata.xml new file mode 100644 index 000000000000..e3ef098ef564 --- /dev/null +++ b/games-board/cgoban/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">cgoban1</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/cgoban2/Manifest b/games-board/cgoban2/Manifest new file mode 100644 index 000000000000..a685dfae8a40 --- /dev/null +++ b/games-board/cgoban2/Manifest @@ -0,0 +1 @@ +DIST cgoban-unix-2.6.12.tar.bz2 1180638 SHA256 08547991722300871c54536b0fc8498b93c543cd746e2ff874e0fc2319cce2cf SHA512 70725778ea25d4054d6944a25b512fe247ebc2280395cb0f4ee58e2f3c96dc6405ea3ed2ec03637ea3b3f2d4be470110181b117cedc13fad28bf8f66d146f6a3 WHIRLPOOL 569bc68bbbbca4870d1dd934453d63daa9b9d16ac7387ce6e79b78e6c53020915374b27f318aa75b83ca862b1c07022118901fba3c9da6cfa9429d599b5d1644 diff --git a/games-board/cgoban2/cgoban2-2.6.12.ebuild b/games-board/cgoban2/cgoban2-2.6.12.ebuild new file mode 100644 index 000000000000..55aa2bc51abc --- /dev/null +++ b/games-board/cgoban2/cgoban2-2.6.12.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit games + +DESCRIPTION="A Java client for the Kiseido Go Server, and a SGF editor" +HOMEPAGE="http://www.gokgs.com/" +SRC_URI="mirror://gentoo/cgoban-unix-${PV}.tar.bz2" + +LICENSE="freedist" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +RDEPEND=">=virtual/jre-1.3" + +S=${WORKDIR}/cgoban + +src_install() { + dodir "${GAMES_BINDIR}" + sed -e "s:INSTALL_DIR:${GAMES_DATADIR}/${PN}:" \ + "${FILESDIR}/${PN}" > "${D}${GAMES_BINDIR}/${PN}" || die + insinto "${GAMES_DATADIR}/${PN}" + doins cgoban.jar + prepgamesdirs +} diff --git a/games-board/cgoban2/files/cgoban2 b/games-board/cgoban2/files/cgoban2 new file mode 100644 index 000000000000..5a5e067af2ad --- /dev/null +++ b/games-board/cgoban2/files/cgoban2 @@ -0,0 +1,12 @@ +#!/bin/sh +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +which java > /dev/null 2>&1 && \ + java -jar INSTALL_DIR/cgoban.jar "${@}" && \ + exit 0 + +echo "No \"java\" binary found in your PATH." +echo "You should run \"java-config\" to choose your default VM." +exit 1 diff --git a/games-board/cgoban2/metadata.xml b/games-board/cgoban2/metadata.xml new file mode 100644 index 000000000000..b4647c10eaf6 --- /dev/null +++ b/games-board/cgoban2/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<maintainer> +<email>mr_bones_@gentoo.org</email> +<name>Michael Sterrett</name> +</maintainer> +</pkgmetadata> diff --git a/games-board/chessx/Manifest b/games-board/chessx/Manifest new file mode 100644 index 000000000000..b9ac41784c22 --- /dev/null +++ b/games-board/chessx/Manifest @@ -0,0 +1 @@ +DIST chessx-1.3.2.tgz 4107133 SHA256 b136cf56d37d34867cdb9538176e1703b14f61b3384885b6f100580d0af0a3ff SHA512 a8047b240e793323876615c9d83711a2b28a3855f4e0be9a1823d6a86f9d5155d001c9e44c9ddc2d2da5b87d6c4f2583cfcb49ed96aa7341dca2dceaec6f4e8f WHIRLPOOL 2fcc8dc2f89457b4a7f55cadf70e6b0c4267215e916f0acbaf85135c5240bc34bce207f4e697be7a69c3f0bcab721d0c12c15f4bf07841fc0dcf65e0ce16fefd diff --git a/games-board/chessx/chessx-1.3.2.ebuild b/games-board/chessx/chessx-1.3.2.ebuild new file mode 100644 index 000000000000..1a94d16a4ba7 --- /dev/null +++ b/games-board/chessx/chessx-1.3.2.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils qmake-utils games + +DESCRIPTION="Qt5-based Chess Database Utility" +HOMEPAGE="http://chessx.sourceforge.net/" +SRC_URI="http://sourceforge.net/projects/chessx/files/chessx/${PV}/${P}.tgz" + +LICENSE="GPL-2+ LGPL-2+ LGPL-2.1+ ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-qt/qtprintsupport:5 + dev-qt/qtsvg:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtwidgets:5 + dev-qt/qtmultimedia:5 + dev-qt/qtxml:5 + sys-libs/zlib" +DEPEND="${RDEPEND} + dev-qt/linguist-tools" + +src_prepare() { + epatch "${FILESDIR}"/${P}-zlib.patch +} + +src_configure() { + eqmake5 +} + +src_install() { + dogamesbin release/${PN} + dodoc ChangeLog TODO + doicon data/images/${PN}.png + domenu unix/chessx.desktop + prepgamesdirs +} diff --git a/games-board/chessx/files/chessx-1.3.2-zlib.patch b/games-board/chessx/files/chessx-1.3.2-zlib.patch new file mode 100644 index 000000000000..36d685d9cba9 --- /dev/null +++ b/games-board/chessx/files/chessx-1.3.2-zlib.patch @@ -0,0 +1,35 @@ +--- chessx-1.2.2/src/quazip/ioapi.h ++++ chessx-1.2.2-patched/src/quazip/ioapi.h +@@ -1,3 +1,4 @@ ++#define OF(x) x + /* ioapi.h -- IO base function header for compress/uncompress .zip + files using zlib + zip or unzip API + +--- chessx-1.2.2/src/quazip/unzip.c ++++ chessx-1.2.2-patched/src/quazip/unzip.c +@@ -1,3 +1,4 @@ ++#define OF(x) x + /* unzip.c -- IO for uncompress .zip files using zlib + Version 1.01e, February 12th, 2005 + +--- chessx-1.2.2/src/quazip/unzip.h ++++ chessx-1.2.2-patched/src/quazip/unzip.h +@@ -1,3 +1,4 @@ ++#define OF(x) x + /* unzip.h -- IO for uncompress .zip files using zlib + Version 1.01e, February 12th, 2005 + +--- chessx-1.2.2/src/quazip/zip.c ++++ chessx-1.2.2-patched/src/quazip/zip.c +@@ -1,3 +1,4 @@ ++#define OF(x) x + /* zip.c -- IO on .zip files using zlib + Version 1.01e, February 12th, 2005 + +--- chessx-1.2.2/src/quazip/zip.h ++++ chessx-1.2.2-patched/src/quazip/zip.h +@@ -1,3 +1,4 @@ ++#define OF(x) x + /* zip.h -- IO for compress .zip files using zlib + Version 1.01e, February 12th, 2005 + diff --git a/games-board/chessx/metadata.xml b/games-board/chessx/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/chessx/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/cockatrice/Manifest b/games-board/cockatrice/Manifest new file mode 100644 index 000000000000..12a95c416022 --- /dev/null +++ b/games-board/cockatrice/Manifest @@ -0,0 +1 @@ +DIST cockatrice_source_20120702.tar.gz 3790304 SHA256 a418124d3df255f2af70a20ff6b13f85361467abe4ea4216602bd3647cfc490e SHA512 119acd394dfe97de72b0be8d1ea8c6178f9d0150dcb50d1aba074c28c8d0f52f2be5758ac3943c49d11f655f02a70fc5f5a7e207b8a2631f73f7178ff17b5c35 WHIRLPOOL 1e5112519ddd0f4107778c97d4cf415959117d7e5854ad9760d50621a77a53d992678470772358c880e89ba35376cbf6abab4687969810c117d2851eae4ec70a diff --git a/games-board/cockatrice/cockatrice-20120702.ebuild b/games-board/cockatrice/cockatrice-20120702.ebuild new file mode 100644 index 000000000000..8664e2cabdbc --- /dev/null +++ b/games-board/cockatrice/cockatrice-20120702.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit cmake-utils eutils gnome2-utils games + +DESCRIPTION="An open-source multiplatform software for playing card games over a network" +HOMEPAGE="http://cockatrice.de/" +SRC_URI="http://cockatrice.de/files/${PN}_source_${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="dedicated server" + +DEPEND=" + dev-libs/libgcrypt:0 + dev-libs/protobuf + dev-qt/qtcore:4 + dev-qt/qtsql:4 + !dedicated? ( + dev-qt/qtmultimedia:4 + dev-qt/qtsvg:4 + dev-qt/qtgui:4 + )" + +S=${WORKDIR}/${PN}_${PV} + +src_prepare() { + epatch "${FILESDIR}"/${P}-build.patch \ + "${FILESDIR}"/${P}-underlinking.patch +} + +src_configure() { + local mycmakeargs=( + $(usex dedicated "-DWITHOUT_CLIENT=1 -DWITH_SERVER=1" "$(usex server "-DWITH_SERVER=1" "")") + -DCMAKE_INSTALL_BINDIR="${GAMES_BINDIR}" + -DCMAKE_INSTALL_PREFIX="${GAMES_PREFIX}" + -DDATADIR="${GAMES_DATADIR}/${PN}" + -DICONDIR="/usr/share/icons" + -DDESKTOPDIR="/usr/share/applications" + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + use dedicated || gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + elog "zonebg pictures are in ${GAMES_DATADIR}/${PN}/zonebg" + elog "sounds are in ${GAMES_DATADIR}/${PN}/sounds" + elog "you can use those directories in cockatrice settings" + use dedicated || gnome2_icon_cache_update +} + +pkg_postrm() { + use dedicated || gnome2_icon_cache_update +} diff --git a/games-board/cockatrice/files/cockatrice-20120702-build.patch b/games-board/cockatrice/files/cockatrice-20120702-build.patch new file mode 100644 index 000000000000..6876fcd78d42 --- /dev/null +++ b/games-board/cockatrice/files/cockatrice-20120702-build.patch @@ -0,0 +1,103 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Thu Aug 2 21:27:25 UTC 2012 +Subject: build system + +add install rule for cockatrice binary +make paths for ICONDIR and DESKTOPDIR modifiable + +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -8,7 +8,9 @@ + add_subdirectory(oracle) + endif(NOT WITHOUT_CLIENT) + ++set(DATADIR "share/cockatrice" CACHE PATH "Data dir") ++ + FILE(GLOB sounds "${CMAKE_CURRENT_SOURCE_DIR}/sounds/*.raw") +-INSTALL(FILES ${sounds} DESTINATION share/cockatrice/sounds) ++INSTALL(FILES ${sounds} DESTINATION ${DATADIR}/sounds) + FILE(GLOB zonebg "${CMAKE_CURRENT_SOURCE_DIR}/zonebg/*.*") +-INSTALL(FILES ${zonebg} DESTINATION share/cockatrice/zonebg) +\ No newline at end of file ++INSTALL(FILES ${zonebg} DESTINATION ${DATADIR}/zonebg) +--- servatrice/CMakeLists.txt ++++ servatrice/CMakeLists.txt +@@ -2,6 +2,9 @@ + SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}) + PROJECT(servatrice) + ++# cmake modules ++include(GNUInstallDirs) ++ + SET(servatrice_SOURCES + src/main.cpp + src/passwordhasher.cpp +@@ -51,3 +54,5 @@ + COMMAND ${CMAKE_COMMAND} -DSOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR} -P ${CMAKE_CURRENT_SOURCE_DIR}/../common/getversion.cmake + ) + ++# install rules ++INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/servatrice DESTINATION ${CMAKE_INSTALL_BINDIR}) +--- cockatrice/CMakeLists.txt ++++ cockatrice/CMakeLists.txt +@@ -158,7 +158,13 @@ + ) + + if (UNIX AND NOT APPLE) +- set_source_files_properties(src/main.cpp PROPERTIES COMPILE_FLAGS -DTRANSLATION_PATH=\\"${CMAKE_INSTALL_PREFIX}/share/cockatrice/translations\\") ++ if(IS_ABSOLUTE ${DATADIR}) ++ set(_DATADIR ${DATADIR}) ++ else() ++ set(_DATADIR ${CMAKE_INSTALL_PREFIX}/${DATADIR}) ++ endif() ++ ++ set_source_files_properties(src/main.cpp PROPERTIES COMPILE_FLAGS -DTRANSLATION_PATH=\\"${_DATADIR}/translations\\") + endif (UNIX AND NOT APPLE) + + set(cockatrice_RESOURCES cockatrice.qrc) +@@ -201,6 +207,11 @@ + set(CMAKE_CXX_FLAGS_DEBUG "-ggdb -O0") + set(CMAKE_CXX_FLAGS_RELEASE "-s -O2") + ++# paths ++set(ICONDIR share/icons CACHE STRING "icon dir") ++set(DESKTOPDIR share/applications CACHE STRING "desktop file destination") ++ ++ + QT4_WRAP_CPP(cockatrice_HEADERS_MOC ${cockatrice_HEADERS}) + QT4_ADD_TRANSLATION(cockatrice_QM ${cockatrice_TS}) + QT4_ADD_RESOURCES(cockatrice_RESOURCES_RCC ${cockatrice_RESOURCES}) +@@ -218,10 +229,10 @@ + + INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/cockatrice DESTINATION bin) + if (NOT WIN32 AND NOT APPLE) +- INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resources/cockatrice.png DESTINATION share/icons/hicolor/48x48/apps) +- INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resources/cockatrice.svg DESTINATION share/icons/hicolor/scalable/apps) +- INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/cockatrice.desktop DESTINATION share/applications) +- INSTALL(FILES ${cockatrice_QM} DESTINATION share/cockatrice/translations) ++ INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resources/cockatrice.png DESTINATION ${ICONDIR}/hicolor/48x48/apps) ++ INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resources/cockatrice.svg DESTINATION ${ICONDIR}/hicolor/scalable/apps) ++ INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/cockatrice.desktop DESTINATION ${DESKTOPDIR}) ++ INSTALL(FILES ${cockatrice_QM} DESTINATION ${DATADIR}/translations) + ENDIF(NOT WIN32 AND NOT APPLE) + + add_custom_command( +--- oracle/CMakeLists.txt ++++ oracle/CMakeLists.txt +@@ -1,6 +1,9 @@ + CMAKE_MINIMUM_REQUIRED(VERSION 2.6) + PROJECT(oracle) + ++# paths ++set(DESKTOPDIR share/appliactions CACHE STRING "path to .desktop files") ++ + SET(oracle_SOURCES src/main.cpp src/oracleimporter.cpp src/window_main.cpp ../cockatrice/src/carddatabase.cpp ../cockatrice/src/settingscache.cpp) + SET(oracle_HEADERS src/oracleimporter.h src/window_main.h ../cockatrice/src/carddatabase.h ../cockatrice/src/settingscache.h) + +@@ -21,5 +24,5 @@ + + INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/oracle DESTINATION bin) + IF (NOT WIN32 AND NOT APPLE) +- INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/oracle.desktop DESTINATION share/applications) ++ INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/oracle.desktop DESTINATION ${DESKTOPDIR}) + ENDIF (NOT WIN32 AND NOT APPLE) diff --git a/games-board/cockatrice/files/cockatrice-20120702-underlinking.patch b/games-board/cockatrice/files/cockatrice-20120702-underlinking.patch new file mode 100644 index 000000000000..2117751c1cf5 --- /dev/null +++ b/games-board/cockatrice/files/cockatrice-20120702-underlinking.patch @@ -0,0 +1,29 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Thu Aug 2 22:12:00 UTC 2012 +Subject: underlinking + +add -lpthread to cockatrice amd servatrice LIBS to support linkers that +don't permit underlinking + +--- cockatrice/CMakeLists.txt ++++ cockatrice/CMakeLists.txt +@@ -219,7 +219,7 @@ + INCLUDE_DIRECTORIES(${QT_MOBILITY_MULTIMEDIAKIT_INCLUDE_DIR}) + + ADD_EXECUTABLE(cockatrice WIN32 MACOSX_BUNDLE ${cockatrice_SOURCES} ${cockatrice_QM} ${cockatrice_RESOURCES_RCC} ${cockatrice_HEADERS_MOC}) +-TARGET_LINK_LIBRARIES(cockatrice cockatrice_common ${QT_LIBRARIES} ${QT_MOBILITY_MULTIMEDIAKIT_LIBRARY}) ++TARGET_LINK_LIBRARIES(cockatrice cockatrice_common ${QT_LIBRARIES} ${QT_MOBILITY_MULTIMEDIAKIT_LIBRARY} -lpthread) + + INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/cockatrice DESTINATION bin) + if (NOT WIN32 AND NOT APPLE) +--- servatrice/CMakeLists.txt ++++ servatrice/CMakeLists.txt +@@ -46,7 +46,7 @@ + INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) + + ADD_EXECUTABLE(servatrice ${servatrice_SOURCES} ${servatrice_HEADERS_MOC}) +-TARGET_LINK_LIBRARIES(servatrice cockatrice_common ${QT_LIBRARIES} ${LIBGCRYPT_LIBRARY}) ++TARGET_LINK_LIBRARIES(servatrice cockatrice_common ${QT_LIBRARIES} ${LIBGCRYPT_LIBRARY} -lpthread) + + #add_custom_target(versionheader ALL DEPENDS version_header) + add_custom_command( diff --git a/games-board/cockatrice/metadata.xml b/games-board/cockatrice/metadata.xml new file mode 100644 index 000000000000..34eddf8911c1 --- /dev/null +++ b/games-board/cockatrice/metadata.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <maintainer> + <email>flameeyes@gentoo.org</email> + <name>Diego Elio Pettenò</name> + </maintainer> + <upstream> + <maintainer status="active"> + <email>brukie@gmx.net</email> + <name>Max-Wilhelm Bruker</name> + </maintainer> + <changelog>https://github.com/mbruker/Cockatrice/commits/master</changelog> + <doc lang="en">http://cockatrice.de/dokuwiki/doku.php</doc> + <bugs-to>https://github.com/mbruker/Cockatrice/issues</bugs-to> + </upstream> + <use> + <flag name='server'>Compile server support</flag> + </use> + <longdescription lang="en"> + Cockatrice is an open-source multiplatform software for playing card + games, such as Magic: The Gathering, over a network. It is fully + client-server based to prevent any kind of cheating, though it supports + single-player games without a network interface as well. Both client + and server are written in Qt 4. + </longdescription> +</pkgmetadata> + diff --git a/games-board/crafty/Manifest b/games-board/crafty/Manifest new file mode 100644 index 000000000000..b895a203a9bf --- /dev/null +++ b/games-board/crafty/Manifest @@ -0,0 +1,2 @@ +DIST crafty-24.1.zip 442680 SHA256 a29d25d9a26a5a958f07a075d1f76f52c12d287ad16ee7aadb224a0dfee40659 SHA512 4d8088aeb683d69e3ea5e01194eb0dc9b957049823c7f8a1f28686e601f9f270b829319083a8b8170016bfda36a42c592a94b4429d7c4f35a6351fd469f16124 WHIRLPOOL c98726bfd1cb042273105525b13c8bd85e99ce9591292be6e63981bb1b08d8447a53eaf5bb476135cc1221516d18005517e7c6096096f35fbd1e32d1735f1a85 +DIST crafty.doc.ascii 79678 SHA256 be291c0f4c7e7d64404ec58b9e92c2455c4342d3c96c721ba21a80fce8332e83 SHA512 562698c3954e53f05c009025291bdb748baaa08616437796a08b42198057cff9f9efa7a8caf41574e71dafe60f4c132dc9497ad5ed9a83b8f071d1c31c8583b8 WHIRLPOOL 8786cafa5afd98b6878467701ff19206f220b20fd3f575f51f17a052de709d7f5572632dd56876d34a412d4628a6c4eb984ec6e6f148a3418ff16617d7670845 diff --git a/games-board/crafty/crafty-24.1.ebuild b/games-board/crafty/crafty-24.1.ebuild new file mode 100644 index 000000000000..c719ab55acc7 --- /dev/null +++ b/games-board/crafty/crafty-24.1.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit flag-o-matic toolchain-funcs eutils games + +DESCRIPTION="Bob Hyatt's strong chess engine" +HOMEPAGE="http://www.craftychess.com/" +SRC_URI="http://www.craftychess.com/${P}.zip + http://www.cis.uab.edu/hyatt/crafty/source/${P}.zip + ftp://ftp.cis.uab.edu/pub/hyatt/documentation/${PN}.doc.ascii" + +LICENSE="crafty" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="no-opts" +RESTRICT="test" + +RDEPEND="" +DEPEND="${RDEPEND} + app-arch/unzip" + +src_prepare() { + sed -i \ + -e '/-o crafty/s/CC/CXX/' \ + -e 's:CXFLAGS:CXXFLAGS:g' \ + -e 's:-j ::g' \ + Makefile || die + sed -i \ + -e "s:\"crafty.hlp\":\"${GAMES_DATADIR}/${PN}/crafty.hlp\":" option.c || die + epatch "${FILESDIR}"/${P}-numcpus.patch +} + +src_compile() { + local makeopts="target=UNIX" + + if ! use no-opts ; then + if [[ $(tc-getCC) = icc ]] ; then + makeopts="${makeopts} asm=X86.o" + append-flags -D_REENTRANT -tpp6 \ + -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \ + -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST \ + -DSMP -DCPUS=4 -DCLONE -DDGT + append-flags -O2 -fno-alias -fforce-mem \ + -fomit-frame-pointer -fno-gcse -mpreferred-stack-boundary=2 + else + if [[ "${CHOST}" == "i686-pc-linux-gnu" ]] \ + || [[ "${CHOST}" == "i586-pc-linux-gnu" ]] ; then + append-flags -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \ + -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B \ + -DFAST -DSMP -DCPUS=4 -DCLONE -DDGT + append-flags -fno-gcse \ + -fomit-frame-pointer -mpreferred-stack-boundary=2 + elif [[ "${CHOST}" == "x86_64-pc-linux-gnu" ]] ; then + append-flags -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \ + -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B \ + -DFAST -DSMP -DCPUS=4 -DCLONE -DDGT + append-flags -fomit-frame-pointer + else + : # everything else :) + fi + fi + fi + append-flags -DPOSIX -DSKILL + emake ${makeopts} crafty-make LDFLAGS="${LDFLAGS} -pthread" +} + +src_install() { + dogamesbin crafty + insinto "${GAMES_DATADIR}/${PN}" + doins crafty.hlp + dodoc "${DISTDIR}"/crafty.doc.ascii + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + elog + elog "Note: No books or tablebases have been installed. If you want them, just" + elog " download them from ${HOMEPAGE}." + elog " You will find documentation there too. In most cases you take now " + elog " your xboard compatible application, (xboard, eboard, knights) and " + elog " just play chess against computer opponent. Have fun." + elog +} diff --git a/games-board/crafty/files/crafty-24.1-numcpus.patch b/games-board/crafty/files/crafty-24.1-numcpus.patch new file mode 100644 index 000000000000..14365cede2a0 --- /dev/null +++ b/games-board/crafty/files/crafty-24.1-numcpus.patch @@ -0,0 +1,44 @@ +diff -ru crafty-24.1.org/lock.h crafty-24.1/lock.h +--- crafty-24.1.org/lock.h 2015-03-10 16:24:09.064539177 +0100 ++++ crafty-24.1/lock.h 2015-03-10 17:45:37.675995497 +0100 +@@ -42,6 +42,7 @@ + * * + ******************************************************************************* + */ ++# if defined(__i386__) || defined(__amd64__) + static void __inline__ LockX86(volatile int *lock) { + int dummy; + asm __volatile__( +@@ -71,17 +72,26 @@ + :"memory"); + } + +-# define LockInit(p) (p=0) +-# define LockFree(p) (p=0) +-# define Unlock(p) (UnlockX86(&p)) +-# define Lock(p) (LockX86(&p)) +-# define lock_t volatile int +-# endif ++# define LockInit(p) (p=0) ++# define LockFree(p) (p=0) ++# define Unlock(p) (UnlockX86(&p)) ++# define Lock(p) (LockX86(&p)) ++# define lock_t volatile int ++# else /* Not building for x86 or amd64 platforms */ ++# define LockInit(p) ++# define LockFree(p) ++# define Lock(p) ++# define Unlock(p) ++# define Pause() ++# define lock_t volatile int ++# endif /* x86 && amd64 platforms or rest of the world. */ ++# endif /* SMP code */ + #else + # define LockInit(p) + # define LockFree(p) + # define Lock(p) + # define Unlock(p) ++# define Pause() + # define lock_t volatile int + #endif /* SMP code */ + /* *INDENT-ON* */ diff --git a/games-board/crafty/metadata.xml b/games-board/crafty/metadata.xml new file mode 100644 index 000000000000..f21032049697 --- /dev/null +++ b/games-board/crafty/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> + <use> + <flag name="no-opts">Don't try to enable crazy CFLAG options</flag> + </use> +</pkgmetadata> diff --git a/games-board/domination/Manifest b/games-board/domination/Manifest new file mode 100644 index 000000000000..3d3e3fdff812 --- /dev/null +++ b/games-board/domination/Manifest @@ -0,0 +1 @@ +DIST Domination_1.1.1.5.zip 6390032 SHA256 6e0dd1c869679cc80c7904d6512cf9f6fc858a985b60c5a33f3f3291d716f740 SHA512 116d96aded29f60e71eacc8069c6b9ad3b2e8b7e44ed06c730cdaf8e1de4b95650e928e1876feb6bcb08697cd6eaedf1529cf323855e2da652855d07e8337360 WHIRLPOOL cd3de0950075f6330931f0847bd048d9919afc6009bfe99b7f3f6bed09a1b7ade30ad918af23139db2b15baacfe79845d3ce75c42463c5aa59603d141639b251 diff --git a/games-board/domination/domination-1.1.1.5.ebuild b/games-board/domination/domination-1.1.1.5.ebuild new file mode 100644 index 000000000000..864824d75145 --- /dev/null +++ b/games-board/domination/domination-1.1.1.5.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils java-pkg-2 java-ant-2 games + +DESCRIPTION="The well-known board game, written in java" +HOMEPAGE="http://domination.sourceforge.net" +SRC_URI="mirror://sourceforge/domination/Domination_${PV}.zip" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86 ~x86-fbsd" +IUSE="" + +RDEPEND=">=virtual/jre-1.5" +DEPEND=">=virtual/jdk-1.5 + app-arch/unzip" + +S=${WORKDIR}/Domination + +pkg_setup() { + games_pkg_setup + java-pkg-2_pkg_setup +} + +EANT_BUILD_TARGET="game" + +src_compile() { + java-pkg-2_src_compile +} + +src_install() { + newgamesbin "${S}"/FlashGUI.sh ${PN} + sed -i \ + -e "s|cd.*|cd \"${GAMES_DATADIR}\"/${PN}|" \ + "${D}${GAMES_BINDIR}"/${PN} \ + || die + chmod +x "${D}${GAMES_BINDIR}"/${PN} || die + + insinto "${GAMES_DATADIR}/${PN}" + doins -r "${S}"/* + rm -f "${D}${GAMES_DATADIR}"/${PN}/*.cmd || die + java-pkg_regjar "${D}/${GAMES_DATADIR}/${PN}"/*.jar + + newicon resources/icon.png ${PN}.png + make_desktop_entry ${PN} "Domination" + + prepgamesdirs +} diff --git a/games-board/domination/metadata.xml b/games-board/domination/metadata.xml new file mode 100644 index 000000000000..3a3a4a6bd732 --- /dev/null +++ b/games-board/domination/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">domination</remote-id> + </upstream> +</pkgmetadata> 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> diff --git a/games-board/four-in-a-row/Manifest b/games-board/four-in-a-row/Manifest new file mode 100644 index 000000000000..773c4d4c86f2 --- /dev/null +++ b/games-board/four-in-a-row/Manifest @@ -0,0 +1,2 @@ +DIST four-in-a-row-3.14.2.tar.xz 1964984 SHA256 32138122d807657b5adb58cf093129587ad1ea057242946acb2168eb797fcb99 SHA512 f19901d866c16fa961dff174a5393b882bbcf6612b39df5501c3153f8e428e6b934cc5f24d7d8902bb0b2a7c86699e7e42fda3c1d39366a7ef932eb6f768c407 WHIRLPOOL 2a3cdd899e6f745c1498197d6542e511715cfd24f517d71920d83ac1f7126181f84460ad9255b847ccdc6f04117c3e118fd7590ec046532b625fb96e6292f3f8 +DIST four-in-a-row-3.16.2.tar.xz 1933500 SHA256 bf42edfed65c5d9614cdf54dac40d17d3b100b0f56bc047b7812f0bb3564a5ae SHA512 bbeda27f372e9466e46196141d4784124d2ca92628a459d5959b5463c9be55c305e968eb25376ceaa883252fef96ef7466aa20b87f838806c1a7d9c6c2881c7a WHIRLPOOL ae4eddd70a1584e3f9a0f194f515beea75356550444b05e0966b230b96f81bf9362083d6f389cb92d06a8a1c0bfa329cfba987b1748c43ac95eb91e892c3292d diff --git a/games-board/four-in-a-row/four-in-a-row-3.14.2.ebuild b/games-board/four-in-a-row/four-in-a-row-3.14.2.ebuild new file mode 100644 index 000000000000..61e2271e0b68 --- /dev/null +++ b/games-board/four-in-a-row/four-in-a-row-3.14.2.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" + +inherit gnome-games + +DESCRIPTION="Make lines of the same color to win" +HOMEPAGE="https://wiki.gnome.org/Apps/Four-in-a-row" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 ~arm x86" +IUSE="" + +RDEPEND=" + dev-libs/glib:2 + >=gnome-base/librsvg-2.32 + >=media-libs/libcanberra-0.26[gtk3] + >=x11-libs/gtk+-3.13.2:3 +" +DEPEND="${RDEPEND} + app-text/yelp-tools + dev-util/appdata-tools + >=dev-util/intltool-0.50 + virtual/pkgconfig +" + +src_configure() { + gnome-games_src_configure APPDATA_VALIDATE=$(type -P true) +} diff --git a/games-board/four-in-a-row/four-in-a-row-3.16.2.ebuild b/games-board/four-in-a-row/four-in-a-row-3.16.2.ebuild new file mode 100644 index 000000000000..115c3c7ee445 --- /dev/null +++ b/games-board/four-in-a-row/four-in-a-row-3.16.2.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" + +inherit gnome-games + +DESCRIPTION="Make lines of the same color to win" +HOMEPAGE="https://wiki.gnome.org/Apps/Four-in-a-row" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +RDEPEND=" + dev-libs/glib:2 + >=gnome-base/librsvg-2.32 + >=media-libs/libcanberra-0.26[gtk3] + >=x11-libs/gtk+-3.13.2:3 +" +DEPEND="${RDEPEND} + app-text/yelp-tools + dev-libs/appstream-glib + >=dev-util/intltool-0.50 + virtual/pkgconfig +" diff --git a/games-board/four-in-a-row/metadata.xml b/games-board/four-in-a-row/metadata.xml new file mode 100644 index 000000000000..da6fd63d0085 --- /dev/null +++ b/games-board/four-in-a-row/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +</pkgmetadata> diff --git a/games-board/freedoko/Manifest b/games-board/freedoko/Manifest new file mode 100644 index 000000000000..8e3103e324cc --- /dev/null +++ b/games-board/freedoko/Manifest @@ -0,0 +1,7 @@ +DIST FreeDoko_0.7.13.src.zip 17463949 SHA256 256187c8a5bf6f21cf8c57e40fe25391e371d028d5adff67114c5a8576938cac SHA512 c352419764a6fcaa72946adc77293bcf34b80bcdea4b34422e7c48cb0f9c464a53eafb009d146930bcdb95e1010aed93380cfd8b8826647c547edfbc10d00465 WHIRLPOOL f95239b551a709eada50267bf53006201013a2ac2fca89d2bc053783b2eb70aee93c005f40e2104425f1ef8e68379680ed2c7e18cfe65dde96503405148a996f +DIST freedoko-backgrounds.zip 1067740 SHA256 70129744d330976da17675b59ad3f2bc088e77a7b6b8279e866da8e74ed385ee SHA512 66f118a5440b854c7ad4b1bdfd63e7f3bc16e66c921a6f632637269ca8855a6a45eb05a71bfb9105abda20285e35994ff3c9c50649f70ab6de4a082e092c3a14 WHIRLPOOL 060378fa787c12b5a422acceb71526882d1ac9ebfedca7b10cb703a3c6bed183788a27cefef39d618ba130579005ae32eee8e1cb04065097f524dc3e517cf92c +DIST gnome-games.zip 3338038 SHA256 bf4ba39f8a95f8881c58327803ff144181f6100f9bd1ad9c383b8d500dc32cf8 SHA512 42dd63c4eb696d7964b0ad30ff0032c80c93e8bd0a2517b0938005eaf8b12a584d7ce7901c6b3bb0bb55372e484162240c7719d2bf102035870b9c57f1930ec1 WHIRLPOOL c61c4f1f9c66af8c459e7210b9cee0b077d1ef6b5fc0e0df3863db2839111927a131bdd91c78676366e46fadd65fc4262465ae8e4df6046372c9e4e15c5423e0 +DIST kdecarddecks.zip 3370611 SHA256 07b17aaef44c5643b12089da7ffd8f8b18f8f5541e7d01fc04e53c964780cdac SHA512 4f3fdac3c672fd1de3db2f6603919a242db73e2445a8dac07d45dcf284cfbb56948925d6e512f15a0b4c762b71758c0755312624a0030a4d8f11dbfe65666c44 WHIRLPOOL 84998d7ff4de194cce090ac66e3cbf4dbbc27519ece008cc8c2744f900bea06d6a716279e8d6d496b463d0895077bf5d5533a7d0dcee410e717823d0228e8578 +DIST openclipart.zip 1251509 SHA256 68b1c83e7c8325d5d2dfd4cc846571640d21af820fb675e253f8834436e15d3a SHA512 8c5e84d8f8f011cfc84f7d012c97e606f80c2254336518c9b9563315bd63971e7211b762effbb841e74603e0f02bb12ae9e91d1be6a4e23c243691b025874ec2 WHIRLPOOL 38e4b30191a499d6defb8509bd7a208f2b8199e075763f2f67b4c34e2b6c152a604e4efb77e74f217bdd9071cea9edddfc77bfef5f2843621accf233189ae760 +DIST pysol.zip 26314316 SHA256 94d0e2d6aa13e5b007efaf08af0f506f48708e3243186db77f23e2e4660c0aa6 SHA512 951891631c6890144361d779bc52aed2b94a87e810de65f7ef240193c49a243e2f1a93f3e170eacb19080dd28beb99b279d7e0bc16d7cb54553e27d29e65b1f7 WHIRLPOOL b2d7a1fc3bedc16d2f179ddef809038f63dcba0382241032cca85b7e876cb33245425b907bd72156c1289a78a3b748ae0ea946fd6017bde5a9bc9bc600397322 +DIST xskat.zip 666085 SHA256 77cd3d7b3305ef1c201963e512557637929b394f4c1b19d838395dda3c9f8a1d SHA512 725bb12e983e8c1494748faf78b2e1c76c424806eeb7a88aafecf580aa63703c166907aea2bbd7890d2f972ffacc5dde78d01a82b72ab87cccf1a8e50d1034f9 WHIRLPOOL a6788d22b46873f17822e7146426ead03b5e417db6e0c264691c6885432bb2979b4deff77d314c575ed197f8c62966966b7a322dd445c9cd2cefcd7ac31b2fea diff --git a/games-board/freedoko/files/Fix_Cardset_Make.patch b/games-board/freedoko/files/Fix_Cardset_Make.patch new file mode 100644 index 000000000000..32bdc32885aa --- /dev/null +++ b/games-board/freedoko/files/Fix_Cardset_Make.patch @@ -0,0 +1,12 @@ +--- data/cardsets/Makefile.orig ++++ data/cardsets/Makefile +@@ -12,8 +12,7 @@ + @# In order to add all cardsets to the release + @# uncomment the following line, add a trailing backslash + @# and remove the line after +- @#for d in Altenburg xskat kdecarddecks pysol; do +- for d in Altenburg; do \ ++ for d in Altenburg xskat kdecarddecks pysol; do \ + cp -r $$d $(DEPTH)/release/FreeDoko_$(VERSION)/cardsets/; \ + done + endif diff --git a/games-board/freedoko/files/freedoko-0.7.13-gentoo.patch b/games-board/freedoko/files/freedoko-0.7.13-gentoo.patch new file mode 100644 index 000000000000..91bd228186b6 --- /dev/null +++ b/games-board/freedoko/files/freedoko-0.7.13-gentoo.patch @@ -0,0 +1,45 @@ +diff -ru FreeDoko_0.7.13.orig/src/Makefile FreeDoko_0.7.13/src/Makefile +--- FreeDoko_0.7.13.orig/src/Makefile 2014-12-29 15:41:58.000000000 -0500 ++++ FreeDoko_0.7.13/src/Makefile 2015-01-27 13:23:11.498892598 -0500 +@@ -242,15 +242,7 @@ + # compile FreeDoko + $(PROGRAM) : show_settings objects $(DIRECTORIES) + @echo 'compiling $(PROGRAM)...' +-# Gentoo users do want to see the real compile line. +-# So remove the next five lines (the echo lines) +-# and remove the '@' in the line after. +- @echo '$(CXX) $(CXXFLAGS)' +- @echo ' $$(OBJECTS)' +- @echo ' $(INCLUDE_ALL)' +- @echo ' $(LIBS_ALL)' +- @echo ' -o $@' +- @$(CXX) $(CXXFLAGS) \ ++ $(CXX) $(CXXFLAGS) \ + $(OBJECTS_ALL:%.o=$(FREEDOKO_WORKING_DIRECTORY)/%.o) \ + $(INCLUDE_ALL) \ + $(LIBS_ALL) \ +diff -ru FreeDoko_0.7.13.orig/src/Makefile.os FreeDoko_0.7.13/src/Makefile.os +--- FreeDoko_0.7.13.orig/src/Makefile.os 2014-12-29 15:41:58.000000000 -0500 ++++ FreeDoko_0.7.13/src/Makefile.os 2015-01-27 13:23:22.185483548 -0500 +@@ -1,6 +1,5 @@ + include $(DEPTH)/../Makefile.os + +-include $(DEPTH)/Makefile.local + include $(DEPTH)/Makefile.modules + + ifeq ($(OPERATING_SYSTEM), Linux) +diff -ru FreeDoko_0.7.13.orig/src/Makefile.rules FreeDoko_0.7.13/src/Makefile.rules +--- FreeDoko_0.7.13.orig/src/Makefile.rules 2014-12-29 15:41:58.000000000 -0500 ++++ FreeDoko_0.7.13/src/Makefile.rules 2015-01-27 13:23:44.780618643 -0500 +@@ -80,10 +80,7 @@ + $(DEPTH)/Makefile.modules \ + $(DEPTH)/Makefile.local \ + $(DEPTH)/Makefile.os +-# Gentoo users do want to see the real compile line. +-# So remove the next line and remove the '@' in the line after. +- @echo $(CXX) -c $(SUBDIR)/$< +- @$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(INCLUDE) $(DEPGEN_FLAGS) -o $@ -c $< ++ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(INCLUDE) $(DEPGEN_FLAGS) -o $@ -c $< + + + -include $(OBJECTS:%.o=$(TARGET_DIR_LOCAL)%.d) diff --git a/games-board/freedoko/files/nodoc.patch b/games-board/freedoko/files/nodoc.patch new file mode 100644 index 000000000000..b3741a3aaf22 --- /dev/null +++ b/games-board/freedoko/files/nodoc.patch @@ -0,0 +1,10 @@ +--- Makefile.orig ++++ Makefile +@@ -139,7 +139,6 @@ + $(MAKE) Version + cp AUTHORS COPYING ChangeLog README LIESMICH Version release/FreeDoko_$(VERSION)/ + $(MAKE) -C data release +- $(MAKE) -C doc release + $(RM) -r `find release/FreeDoko_$(VERSION)/ -name ".svn"` + + .PHONY: release_linux_binary diff --git a/games-board/freedoko/files/nonet.patch b/games-board/freedoko/files/nonet.patch new file mode 100644 index 000000000000..1902dd5668bd --- /dev/null +++ b/games-board/freedoko/files/nonet.patch @@ -0,0 +1,11 @@ +--- src/Makefile.modules.orig ++++ src/Makefile.modules +@@ -11,7 +11,7 @@ + # The network code + # It is not necessary for single players + # The network does use the 'GNet' library (http://www.gnetlibrary.org/) +-USE_NETWORK ?= true ++USE_NETWORK ?= false + + # whether to use thread support (experimental, use at your own risk) + #USE_THREADS ?= true diff --git a/games-board/freedoko/files/portage-cxx.patch b/games-board/freedoko/files/portage-cxx.patch new file mode 100644 index 000000000000..894b48010e39 --- /dev/null +++ b/games-board/freedoko/files/portage-cxx.patch @@ -0,0 +1,12 @@ +--- src/Makefile.rules.orig ++++ src/Makefile.rules +@@ -5,8 +5,7 @@ + $(DEPTH)/Makefile.os + # Gentoo users do want to see the real compile line. + # So remove the next line and remove the '@' in the line after. +- @echo $(CXX) -c $< +- @$(CXX) $(CPPFLAGS) $(CXXFLAGS) $(INCLUDE) $(DEPGEN_FLAGS) -o $@ -c $< ++ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(INCLUDE) $(DEPGEN_FLAGS) -o $@ -c $< + + -include $(OBJECTS:.o=.d) + diff --git a/games-board/freedoko/freedoko-0.7.13.ebuild b/games-board/freedoko/freedoko-0.7.13.ebuild new file mode 100644 index 000000000000..9af95db6d06c --- /dev/null +++ b/games-board/freedoko/freedoko-0.7.13.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils gnome2-utils games + +DESCRIPTION="FreeDoko is a Doppelkopf-game" +HOMEPAGE="http://free-doko.sourceforge.net" +SRC_URI="mirror://sourceforge/free-doko/FreeDoko_${PV}.src.zip + backgrounds? ( mirror://sourceforge/free-doko/backgrounds.zip -> ${PN}-backgrounds.zip ) + kdecards? ( mirror://sourceforge/free-doko/kdecarddecks.zip ) + xskatcards? ( mirror://sourceforge/free-doko/xskat.zip ) + pysolcards? ( mirror://sourceforge/free-doko/pysol.zip ) + gnomecards? ( mirror://sourceforge/free-doko/gnome-games.zip ) + openclipartcards? ( mirror://sourceforge/free-doko/openclipart.zip ) + !xskatcards? ( + !kdecards? ( + !gnomecards? ( + !openclipartcards? ( + !pysolcards? ( + mirror://sourceforge/free-doko/xskat.zip ) ) ) ) )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="+xskatcards +gnomecards +kdecards +openclipartcards +pysolcards +backgrounds net" + +RDEPEND="net? ( net-libs/gnet dev-libs/glib:2 ) + >=dev-cpp/gtkmm-2.4:2.4" +DEPEND="${RDEPEND} + app-arch/unzip + virtual/pkgconfig" + +S=${WORKDIR}/FreeDoko_${PV} + +src_unpack() { + local cards=0 + + unpack_cards() { + use $1 && { unpack $2 ; cards=$(( $cards + 1 )); }; + } + unpack FreeDoko_${PV}.src.zip + cp /dev/null "${S}"/src/Makefile.local + + cd "${S}"/data/cardsets + + unpack_cards xskatcards xskat.zip + unpack_cards kdecards kdecarddecks.zip + unpack_cards pysolcards pysol.zip + unpack_cards gnomecards gnome-games.zip + unpack_cards openclipartcards openclipart.zip + [ $cards ] || unpack xskat.zip # fall back to xskat + + if use backgrounds ; then + cd "${S}"/data/backgrounds + unpack ${PN}-backgrounds.zip + fi +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch +} + +src_compile() { + export CPPFLAGS="-DPUBLIC_DATA_DIRECTORY_VALUE='\"${GAMES_DATADIR}/${PN}\"'" + export CPPFLAGS+=" -DMANUAL_DIRECTORY_VALUE='\"/usr/share/doc/${PF}/html\"'" + export OSTYPE=Linux + export USE_NETWORK=$(use net && echo true || echo false) + export USE_SOUND_ALUT=false # still marked experimental + emake Version + emake -C src FreeDoko +} + +src_install() { + newgamesbin src/FreeDoko freedoko + insinto "${GAMES_DATADIR}"/${PN}/ + doins -r data/{ai,cardsets,backgrounds,rules,sounds,translations,*png} + find "${D}${GAMES_DATADIR}"/${PN} -name Makefile -delete + dodoc AUTHORS README ChangeLog + newicon -s 32 src/FreeDoko.png ${PN}.png + make_desktop_entry ${PN} FreeDoko + 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/freedoko/metadata.xml b/games-board/freedoko/metadata.xml new file mode 100644 index 000000000000..336865a45f21 --- /dev/null +++ b/games-board/freedoko/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription lang="en"> +The Linux version of the popular german cardgame "Doppelkopf" +</longdescription> + <use> + <flag name="kdecards">Install the KDE card set</flag> + <flag name="net">Enable network game support</flag> + <flag name="pysolcards">Install the PySol card set</flag> + <flag name="xskatcards">Install the XSkat card set</flag> + <flag name="gnomecards">Install the gnome-games card set</flag> + <flag name="openclipartcards">Install the openclipartcards card set</flag> + <flag name="backgrounds">Install additional background images</flag> + </use> + <upstream> + <remote-id type="sourceforge">free-doko</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/fruit/Manifest b/games-board/fruit/Manifest new file mode 100644 index 000000000000..9d69de5d9ab2 --- /dev/null +++ b/games-board/fruit/Manifest @@ -0,0 +1 @@ +DIST fruit_21_linux.zip 716762 SHA256 ad13f6099dc2acebf0112c36cc7d38fd4009316ad60ecc294c5e828380dcd2c0 SHA512 80d80141ca3c2a4521b241a750bd237e0971b531bc4e8e89ae3bdcdbb1436b99b35e64f505b9a61413726744646b6b4ce126bcdb53b90adc727f88a50adee889 WHIRLPOOL f167e696c4f9f69af3ca68612b32e3ccae3358f658ef26c2866bd86b83a0930f6e140f9e2aed3320f5fd2bc9788ff3ef48aff5ab51facc3164316d9fc88f901d diff --git a/games-board/fruit/files/fruit-2.1-gentoo.patch b/games-board/fruit/files/fruit-2.1-gentoo.patch new file mode 100644 index 000000000000..bae207f89627 --- /dev/null +++ b/games-board/fruit/files/fruit-2.1-gentoo.patch @@ -0,0 +1,11 @@ +--- option.cpp.old 2007-02-07 23:32:25.000000000 +0100 ++++ option.cpp 2007-02-07 23:32:51.000000000 +0100 +@@ -29,7 +29,7 @@ + { "Ponder", true, "false", "check", "", NULL },
+
+ { "OwnBook", true, "true", "check", "", NULL },
+- { "BookFile", true, "book_small.bin", "string", "", NULL },
++ { "BookFile", true, "@GENTOO_DATADIR@/book_small.bin", "string", "", NULL },
+
+ { "NullMove Pruning", true, "Fail High", "combo", "var Always var Fail High var Never", NULL },
+ { "NullMove Reduction", true, "3", "spin", "min 1 max 3", NULL },
diff --git a/games-board/fruit/fruit-2.1.ebuild b/games-board/fruit/fruit-2.1.ebuild new file mode 100644 index 000000000000..2ba5995b3dea --- /dev/null +++ b/games-board/fruit/fruit-2.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils versionator games + +MY_PV=$(replace_all_version_separators '') +MY_P=${PN}_${MY_PV}_linux +DESCRIPTION="UCI-only chess engine" +HOMEPAGE="http://arctrix.com/nas/fruit/" +SRC_URI="http://arctrix.com/nas/${PN}/${MY_P}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="" +DEPEND="app-arch/unzip" + +S=${WORKDIR}/${MY_P}/src + +src_prepare() { + epatch "${FILESDIR}/${P}"-gentoo.patch + sed -i \ + -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \ + option.cpp || die + sed -i \ + -e '/^CXX/d' \ + -e '/^LDFLAGS/d' \ + Makefile || die +} + +src_install() { + dogamesbin ${PN} + insinto "${GAMES_DATADIR}/${PN}" + doins ../book_small.bin + dodoc ../readme.txt ../technical_10.txt + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + elog "To use this engine you need to install a UCI chess GUI" + elog "e.g. games-board/glchess" +} diff --git a/games-board/fruit/metadata.xml b/games-board/fruit/metadata.xml new file mode 100644 index 000000000000..b02037f1efca --- /dev/null +++ b/games-board/fruit/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> +<longdescription lang="en"> +Fruit is a UCI-only chess engine. +</longdescription> +</pkgmetadata> diff --git a/games-board/gamazons/Manifest b/games-board/gamazons/Manifest new file mode 100644 index 000000000000..9196551d35ea --- /dev/null +++ b/games-board/gamazons/Manifest @@ -0,0 +1 @@ +DIST gamazons-0.83.tar.gz 258614 SHA256 72eb5270b164f66f48bc68ab0a1ae66cc85aaf3b98035f827b0b291742379b57 SHA512 de07df73e6dd34ce6a69b4fc224f035fbe74a4fef66872ef6215f19cb3f19312c14e395d40d4ffa1388d6a84ccdc68b7ca697bd33ec0aa387f81e6af49d44a88 WHIRLPOOL c42a6a2a42bfe8da4953594f791ea63335fc2baf7647339e903c3b129cabda374cf1dde5519ca7a3f20227f48448c94c9fda6491b597a1430e1428a763886601 diff --git a/games-board/gamazons/gamazons-0.83.ebuild b/games-board/gamazons/gamazons-0.83.ebuild new file mode 100644 index 000000000000..a1da011c63a0 --- /dev/null +++ b/games-board/gamazons/gamazons-0.83.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit gnome2 + +DESCRIPTION="A chess/go hybrid" +HOMEPAGE="http://www.yorgalily.org/gamazons/" +SRC_URI="http://www.yorgalily.org/${PN}/src/$P.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +DEPEND=">=gnome-base/libgnomeui-2" +RDEPEND=${DEPEND} + +src_prepare() { + gnome2_src_prepare + sed -i \ + -e '/^Encoding/d' \ + -e '/Categories/s/GNOME;Application;//' \ + -e '/Icon/s/\.png//' \ + pixmaps/gamazons.desktop \ + || die +} diff --git a/games-board/gamazons/metadata.xml b/games-board/gamazons/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/gamazons/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/gambit/Manifest b/games-board/gambit/Manifest new file mode 100644 index 000000000000..0b5bb982204a --- /dev/null +++ b/games-board/gambit/Manifest @@ -0,0 +1,2 @@ +DIST Gambit-1.0.1-src.tar.bz2 1909190 SHA256 b4689a1c6943d1358bd1d9ea28a45536d60fbdd62ec1d29c76af0aed2b3a2791 SHA512 749af3305ddd83742bc9ae908f8a9ccd09cb49879abb632d46e828b8ba4b68b68533f63fcf7b14a7e16719343de824f2c9be6e35e2bccc88a11f600854d16bf7 WHIRLPOOL 32bf6b6b4c02c9cb9fb817df9ae8f5b7d29a7600a7c196ff67c5ba4a3160bc0b31ec34948990eaf04fa321bd9fd4eef5f340a398c75cd912b1def7d968738d7c +DIST Gambit-1.0.3-src.tar.bz2 1902202 SHA256 8d3dafbd5adcf043010848017b29b504c9e88c0ea72eb3cd50c7bfdf6bd0fa9d SHA512 c4d26849d9318b5c404f26c8ac2c09e64417e44e8a8786b9640fe76dd16d70d1ebbba2866e1d9e79efecab948f39cda9664c8eecad0f024782a8345be3acd6c9 WHIRLPOOL a3b5a6581c7a2fc316a7af0da38f67fa444cbff5ceba4dddc0fc5fae988ba6f8da680654ce2aa810b5c321ac5865d6a990e71eeb0b7efcc4630a3231c534f5fd diff --git a/games-board/gambit/gambit-1.0.1.ebuild b/games-board/gambit/gambit-1.0.1.ebuild new file mode 100644 index 000000000000..9a55d662d015 --- /dev/null +++ b/games-board/gambit/gambit-1.0.1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +CMAKE_IN_SOURCE_BUILD=true +inherit cmake-utils games + +DESCRIPTION="Qt-based chess application + engine \"gupta\"" +HOMEPAGE="http://sourceforge.net/projects/gambitchess/" +SRC_URI="mirror://sourceforge/project/${PN}chess/${PN^}-${PV}/${PN^}-${PV}-src.tar.bz2" + +LICENSE="CC0-1.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-qt/qtcore:4 + dev-qt/qtgui:4 + dev-qt/qtopengl:4 + media-libs/mesa + x11-libs/libX11" +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/${PN^}-${PV}-src + +src_configure() { + local mycmakeargs=( + -DCONFIG_ENABLE_UPDATE_CHECKER=OFF + -DCONFIG_GUPTA_ENGINE_DIRECTORY="${GAMES_BINDIR}"/ + -DCONFIG_RESOURCE_PATH_PREFIX="${GAMES_DATADIR}"/${PN}/ + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + emake -C engine/gupta VERBOSE=1 STRIP=/bin/true CFLAGS_RELEASE= release || die +} + +src_install() { + insinto "${GAMES_DATADIR}"/${PN} + doins -r data/* || die + + doicon artwork/icons/${PN}/${PN}.svg + make_desktop_entry ${PN}chess ${PN^} ${PN} Game || die + dodoc doc/contributors.txt || die + + dogamesbin engine/gupta/gupta || die + dogamesbin ${PN}chess || die +} diff --git a/games-board/gambit/gambit-1.0.3.ebuild b/games-board/gambit/gambit-1.0.3.ebuild new file mode 100644 index 000000000000..9a55d662d015 --- /dev/null +++ b/games-board/gambit/gambit-1.0.3.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +CMAKE_IN_SOURCE_BUILD=true +inherit cmake-utils games + +DESCRIPTION="Qt-based chess application + engine \"gupta\"" +HOMEPAGE="http://sourceforge.net/projects/gambitchess/" +SRC_URI="mirror://sourceforge/project/${PN}chess/${PN^}-${PV}/${PN^}-${PV}-src.tar.bz2" + +LICENSE="CC0-1.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-qt/qtcore:4 + dev-qt/qtgui:4 + dev-qt/qtopengl:4 + media-libs/mesa + x11-libs/libX11" +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/${PN^}-${PV}-src + +src_configure() { + local mycmakeargs=( + -DCONFIG_ENABLE_UPDATE_CHECKER=OFF + -DCONFIG_GUPTA_ENGINE_DIRECTORY="${GAMES_BINDIR}"/ + -DCONFIG_RESOURCE_PATH_PREFIX="${GAMES_DATADIR}"/${PN}/ + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + emake -C engine/gupta VERBOSE=1 STRIP=/bin/true CFLAGS_RELEASE= release || die +} + +src_install() { + insinto "${GAMES_DATADIR}"/${PN} + doins -r data/* || die + + doicon artwork/icons/${PN}/${PN}.svg + make_desktop_entry ${PN}chess ${PN^} ${PN} Game || die + dodoc doc/contributors.txt || die + + dogamesbin engine/gupta/gupta || die + dogamesbin ${PN}chess || die +} diff --git a/games-board/gambit/metadata.xml b/games-board/gambit/metadata.xml new file mode 100644 index 000000000000..7edb00c8ab8b --- /dev/null +++ b/games-board/gambit/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> + <email>sping@gentoo.org</email> + <name>Sebastian Pipping</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">gambitchess</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/gmchess/Manifest b/games-board/gmchess/Manifest new file mode 100644 index 000000000000..c149ca97bdbd --- /dev/null +++ b/games-board/gmchess/Manifest @@ -0,0 +1 @@ +DIST gmchess-0.29.6.tar.bz2 1437904 SHA256 2d2b150747e92045e42f7a300f7d0de34eb9c0f89e7c8cbbe18c220201dd230b SHA512 b6af5205dc087c9fdea4cee81f9002c5dd56282be10b09c99f6f4105730676abff8d036843b7c0232937f43d87d222555a0b9c86e192a5ac8c039509841467a6 WHIRLPOOL cbcaac2b7aacdbf97b40be211aeda26710708c871f3eb53bb5db3b695ace353aa92c28f08735dc95915f4c57908b5e8482be31cb7d8b12c51a97f4c41069777d 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..9a55fabce6b4 --- /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 +# $Id$ + +EAPI=5 +inherit autotools libtool gnome2-utils games + +DESCRIPTION="Chinese chess with gtkmm and c++" +HOMEPAGE="http://code.google.com/p/gmchess/" +SRC_URI="http://${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() { + 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/metadata.xml b/games-board/gmchess/metadata.xml new file mode 100644 index 000000000000..d74c0a868c5b --- /dev/null +++ b/games-board/gmchess/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="google-code">gmchess</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/gnome-chess/Manifest b/games-board/gnome-chess/Manifest new file mode 100644 index 000000000000..93db3a0bf805 --- /dev/null +++ b/games-board/gnome-chess/Manifest @@ -0,0 +1,2 @@ +DIST gnome-chess-3.14.3.tar.xz 2779000 SHA256 037a364afc77df8f8adf6367c631196d287a08fec873ee5f550eb2d1c02e8105 SHA512 c1b2ff16e3edff1ad3977e9888a8ffc95f5f69451d2d21a97ffa127c7fa6cac5a5728e28171bbda2a8e9db33c834a732f81f9434ca434a4b792eaaf7a860aeaa WHIRLPOOL 66a0cd0af9902fcb0b817b6a16b41a6ef179c7073fefae03760fd6b831f018f5bcc9b8194a6580737d2760ead5b917a79518d7b65a916c5bc6bb1fc8892aabaa +DIST gnome-chess-3.16.2.tar.xz 2609828 SHA256 8f73b4c645a86e775d092b5b334c70d0868953c1a26cac9d5a234e5f83db3b48 SHA512 baf09a0bb534374915b995e6a2d9c71879684204ed1f61b46f4a2709c8ff11614ab1b94c0e5c671e90a4ec153d15a7f5d2ab067e0025b709438a9985eed5433a WHIRLPOOL 8024d27dd241b6c747b11693b536ac673b153278cbef00db04481521abad9a6b10aa869c86c3e899e11a1a3a8445837b5be4055bdd6e61394875c94ed201ab79 diff --git a/games-board/gnome-chess/gnome-chess-3.14.3.ebuild b/games-board/gnome-chess/gnome-chess-3.14.3.ebuild new file mode 100644 index 000000000000..17aa81b18c83 --- /dev/null +++ b/games-board/gnome-chess/gnome-chess-3.14.3.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" +VALA_MIN_API_VERSION="0.24" + +inherit gnome-games vala readme.gentoo + +DESCRIPTION="Play the classic two-player boardgame of chess" +HOMEPAGE="https://wiki.gnome.org/Apps/Chess" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="amd64 ~arm x86" +IUSE="" + +RDEPEND=" + >=dev-libs/glib-2.40:2 + >=gnome-base/librsvg-2.32 + >=x11-libs/gtk+-3.13.2:3 +" +DEPEND="${RDEPEND} + $(vala_depend) + app-text/yelp-tools + dev-util/appdata-tools + >=dev-util/intltool-0.50 + sys-devel/gettext + virtual/pkgconfig +" + +DOC_CONTENTS="For being able to play against computer you will + need to install a chess engine like, for example, games-board/gnuchess" + +src_prepare() { + vala_src_prepare + gnome-games_src_prepare +} + +src_configure() { + gnome-games_src_configure APPDATA_VALIDATE=$(type -P true) +} + +src_install() { + gnome-games_src_install + readme.gentoo_create_doc +} + +pkg_postinst() { + gnome-games_pkg_postinst + readme.gentoo_print_elog +} diff --git a/games-board/gnome-chess/gnome-chess-3.16.2.ebuild b/games-board/gnome-chess/gnome-chess-3.16.2.ebuild new file mode 100644 index 000000000000..3a207474dbc0 --- /dev/null +++ b/games-board/gnome-chess/gnome-chess-3.16.2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" +VALA_MIN_API_VERSION="0.28" + +inherit gnome-games vala readme.gentoo + +DESCRIPTION="Play the classic two-player boardgame of chess" +HOMEPAGE="https://wiki.gnome.org/Apps/Chess" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +RDEPEND=" + >=dev-libs/glib-2.40:2 + >=gnome-base/librsvg-2.32 + >=x11-libs/gtk+-3.15:3 +" +DEPEND="${RDEPEND} + $(vala_depend) + app-text/yelp-tools + dev-libs/appstream-glib + >=dev-util/intltool-0.50 + sys-devel/gettext + virtual/pkgconfig +" + +DOC_CONTENTS="For being able to play against computer you will + need to install a chess engine like, for example, games-board/gnuchess" + +src_prepare() { + vala_src_prepare + gnome-games_src_prepare +} + +src_install() { + gnome-games_src_install + readme.gentoo_create_doc +} + +pkg_postinst() { + gnome-games_pkg_postinst + readme.gentoo_print_elog +} diff --git a/games-board/gnome-chess/metadata.xml b/games-board/gnome-chess/metadata.xml new file mode 100644 index 000000000000..da6fd63d0085 --- /dev/null +++ b/games-board/gnome-chess/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +</pkgmetadata> diff --git a/games-board/gnome-hearts/Manifest b/games-board/gnome-hearts/Manifest new file mode 100644 index 000000000000..822b2b35be3c --- /dev/null +++ b/games-board/gnome-hearts/Manifest @@ -0,0 +1 @@ +DIST gnome-hearts-0.3.1.tar.gz 637916 SHA256 4b9477e8bb2d48a86021ae512a713fd405a96d52cf711ff549cfe0d119bf56b3 SHA512 5528c92bba80cc97ce1f51e3b2652b5d6b30c0e90e7a8f023dcdf5c3420b2d1fbab29fc3d974884d8cb351a44b8b97c05242f26b70d5e1d02d593a17452ad19f WHIRLPOOL 50259c6e2bdc56bc73cbf59d6eb0cdd37053850262dfca5c4218b9d4ca4dc512df2d6db5167323bd9084a0ddafc2bfdc9d6371210ba8656faa46847de8a8a500 diff --git a/games-board/gnome-hearts/gnome-hearts-0.3.1-r1.ebuild b/games-board/gnome-hearts/gnome-hearts-0.3.1-r1.ebuild new file mode 100644 index 000000000000..ca5f94415077 --- /dev/null +++ b/games-board/gnome-hearts/gnome-hearts-0.3.1-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +GCONF_DEBUG=no + +PYTHON_COMPAT=( python2_7 ) +inherit gnome2 python-single-r1 + +DESCRIPTION="A clone of classic hearts card game" +HOMEPAGE="http://www.gnome-hearts.org" +SRC_URI="http://www.jejik.com/files/${PN}/${P}.tar.gz" + +LICENSE="GPL-2 FDL-1.2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="nls" + +RDEPEND="x11-libs/gtk+:2 + >=gnome-base/libglade-2 + >=gnome-base/libgnomeui-2 + ${PYTHON_DEPS}" +DEPEND="${RDEPEND} + app-text/rarian + dev-util/intltool + virtual/pkgconfig" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DOCS=( AUTHORS ChangeLog NEWS README TODO ) + +src_prepare() { + # make src_test work + echo gnome-hearts.desktop.in >> po/POTFILES.skip + + sed -i \ + -e '/No name/d' \ + -e '/^Icon/s/.png//' \ + -e '/^Encoding/d' \ + gnome-hearts.desktop.in || die + + gnome2_src_prepare +} + +src_configure() { + gnome2_src_configure \ + $(use_enable nls) +} diff --git a/games-board/gnome-hearts/metadata.xml b/games-board/gnome-hearts/metadata.xml new file mode 100644 index 000000000000..3057a54e98e6 --- /dev/null +++ b/games-board/gnome-hearts/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/gnome-mahjongg/Manifest b/games-board/gnome-mahjongg/Manifest new file mode 100644 index 000000000000..4953b4943f8a --- /dev/null +++ b/games-board/gnome-mahjongg/Manifest @@ -0,0 +1,2 @@ +DIST gnome-mahjongg-3.14.1.tar.xz 4132396 SHA256 6adb231ce97dd650345e15824ecba7bb73edb8590e52446b8adbb4e2cd9ec75d SHA512 a3772e9614a9e2c25826f53f99a1a23eb20d78e70692e1f833e57b34fb8e150e476450b76edddbe64c072a72304c5bee3b8277f7a7b86c1670cc825c0eaf5d64 WHIRLPOOL 06fa9d9165a5e0c53fb33f5ab0d2d1c0ecd07771cddbb37bbc5e9c135659fecaf8f536e6447c2c87739032e5323d9885c58ffbef285e73d3a378bed0a6eedc9c +DIST gnome-mahjongg-3.16.1.tar.xz 4119500 SHA256 f2c607875402649182bd819bedd8cd8496539aca2aea9eb432c3e15ed71b6dc9 SHA512 679d11dc6fae10e51c66b25ea6b5ce7c61a29812dd64183145859570966a46bbfb34e5579a12000027aeb1eeeb8c874b3b2539a0c29da6ea2bb1ac4150cb6acd WHIRLPOOL 420220aac0f42f5ea1a2069c84edd73a16fd3813e29d310b6738bbae783d83a6a9794f65369e297ffeef9b4d15c9709baddf65e09fb67db4a1a024b14d50200f diff --git a/games-board/gnome-mahjongg/gnome-mahjongg-3.14.1.ebuild b/games-board/gnome-mahjongg/gnome-mahjongg-3.14.1.ebuild new file mode 100644 index 000000000000..bd1dc750af07 --- /dev/null +++ b/games-board/gnome-mahjongg/gnome-mahjongg-3.14.1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +GCONF_DEBUG="no" +VALA_MIN_API_VERSION="0.24" + +inherit gnome-games vala + +DESCRIPTION="Disassemble a pile of tiles by removing matching pairs" +HOMEPAGE="https://wiki.gnome.org/Apps/Mahjongg" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 ~arm x86" +IUSE="" + +RDEPEND=" + >=dev-libs/glib-2.40:2 + >=gnome-base/librsvg-2.32 + >=x11-libs/gtk+-3.13.2:3 +" +DEPEND="${RDEPEND} + $(vala_depend) + app-text/yelp-tools + >=dev-util/intltool-0.50 + virtual/pkgconfig +" + +src_prepare() { + gnome-games_src_prepare + vala_src_prepare +} diff --git a/games-board/gnome-mahjongg/gnome-mahjongg-3.16.1.ebuild b/games-board/gnome-mahjongg/gnome-mahjongg-3.16.1.ebuild new file mode 100644 index 000000000000..83764b827d69 --- /dev/null +++ b/games-board/gnome-mahjongg/gnome-mahjongg-3.16.1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +GCONF_DEBUG="no" +VALA_MIN_API_VERSION="0.24" + +inherit gnome-games vala + +DESCRIPTION="Disassemble a pile of tiles by removing matching pairs" +HOMEPAGE="https://wiki.gnome.org/Apps/Mahjongg" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +RDEPEND=" + >=dev-libs/glib-2.40:2 + >=gnome-base/librsvg-2.32 + >=x11-libs/gtk+-3.13.2:3 +" +DEPEND="${RDEPEND} + $(vala_depend) + app-text/yelp-tools + dev-libs/appstream-glib + >=dev-util/intltool-0.50 + virtual/pkgconfig +" + +src_prepare() { + gnome-games_src_prepare + vala_src_prepare +} diff --git a/games-board/gnome-mahjongg/metadata.xml b/games-board/gnome-mahjongg/metadata.xml new file mode 100644 index 000000000000..da6fd63d0085 --- /dev/null +++ b/games-board/gnome-mahjongg/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +</pkgmetadata> diff --git a/games-board/gnome-mastermind/Manifest b/games-board/gnome-mastermind/Manifest new file mode 100644 index 000000000000..3f8df5914182 --- /dev/null +++ b/games-board/gnome-mastermind/Manifest @@ -0,0 +1 @@ +DIST gnome-mastermind-0.3.1.tar.bz2 717787 SHA256 bf815bee234b9efba1f0d48001b94e6cace7ed31335a4817c74740b1b98a3d26 SHA512 f8ec4caeb6e518e6d27136ca9dd9ff6c01ac8c0feceb29df0a4ac7158b99f8a917768bc6e3f2bd1aff32d46ef3131185f55664343de687d874881c196e8a8a17 WHIRLPOOL 6d0bff9061d137e467aa943db426a187f8edf335e97eecb36bbc4e8952a669ad1a7f000fac4dd23e7325887452293509d1a71b85b2ef7192ba74586423512f1a diff --git a/games-board/gnome-mastermind/files/gnome-mastermind-0.3.1-gentoo.patch b/games-board/gnome-mastermind/files/gnome-mastermind-0.3.1-gentoo.patch new file mode 100644 index 000000000000..ba14e592ae16 --- /dev/null +++ b/games-board/gnome-mastermind/files/gnome-mastermind-0.3.1-gentoo.patch @@ -0,0 +1,11 @@ +--- Makefile.in.old 2007-08-25 01:12:01.000000000 +0200 ++++ Makefile.in 2007-08-25 01:14:29.000000000 +0200 +@@ -685,7 +685,7 @@ + + info-am: + +-install-data-am: install-pkgdataDATA ++install-data-am: + + install-exec-am: + diff --git a/games-board/gnome-mastermind/gnome-mastermind-0.3.1-r1.ebuild b/games-board/gnome-mastermind/gnome-mastermind-0.3.1-r1.ebuild new file mode 100644 index 000000000000..58c9e4f3d7d7 --- /dev/null +++ b/games-board/gnome-mastermind/gnome-mastermind-0.3.1-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +GCONF_DEBUG="yes" + +inherit autotools eutils gnome2 + +DESCRIPTION="A little Mastermind game for GNOME" +HOMEPAGE="http://www.autistici.org/gnome-mastermind/" +SRC_URI="http://download.gna.org/gnome-mastermind/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ppc x86" +IUSE="" + +RDEPEND=" + gnome-base/gconf:2 + gnome-base/orbit + app-text/gnome-doc-utils + dev-libs/atk + dev-libs/glib:2 + x11-libs/pango + x11-libs/cairo + x11-libs/gtk+:2 +" +DEPEND="${RDEPEND} + virtual/pkgconfig + dev-util/intltool + sys-devel/gettext + app-text/rarian +" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch + + # Fix .desktop file + sed -i -e 's/True/true/' desktop/gnome-mastermind.desktop.in || die + + # Regenarate all intltool files to respect LINGUAS + eautoreconf + + gnome2_src_prepare +} diff --git a/games-board/gnome-mastermind/metadata.xml b/games-board/gnome-mastermind/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/gnome-mastermind/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/gnome-mines/Manifest b/games-board/gnome-mines/Manifest new file mode 100644 index 000000000000..7faf9ffe0a37 --- /dev/null +++ b/games-board/gnome-mines/Manifest @@ -0,0 +1,3 @@ +DIST gnome-mines-3.14.1.tar.xz 3219140 SHA256 7b1e25057e39f5d6641ec34019d5aee145924569a2b37607dac3daafe9df6f59 SHA512 5c3ed7a28697e8c03ff228abee1185c5bf256da750952da192a1f2e8f1f5b3568d7da73f69443f50496756f702e318dc219b164505d5195ee52ae40dbd12102f WHIRLPOOL 148e90d3880f7997e598809245111656825aea8c12420e30a932422b225523e5e3b999d161e699b45954caffb7a6c8e7d7dec1cd240aaa48012ab2d88f0a3233 +DIST gnome-mines-3.14.2.tar.xz 3218900 SHA256 889c56bfc1cdacffa13c102ecc06660dfb521c44a090a834f9dcb500798e7447 SHA512 b4b693c2a8bb428a167d04ed4b5d5b37760b30b7f75bd8eacbab0a214a823e4b43e6140f55d58ef8acbe2d97b730b8ea3c61a94e5a46110eb464ab5b5477b9a5 WHIRLPOOL 54ba6a07cde944ea698c9332abeeafee9efc1898e10ecd9588465b842578caefb55144caf5012897d1d8b3a9f9e7a64eaa99b9320de127751d8d4988c1fbd5cb +DIST gnome-mines-3.16.1.tar.xz 3206756 SHA256 17ac2c2bd35510c8eaf2a521fe4665406cb13211942d343fe177e708ad490438 SHA512 efef7c806a30295bf630a8a1ed121e9535e3e4c134136c1431e4b8545344312df93173e13698faf4ffcf22207060674446723aaf0a813a8a2dcf740f8c9353d0 WHIRLPOOL 0c353da71001b2da4a9ec15abc4c6aabd9b249a9d4673bc6104b4f2b568431fc7d497ee583c615339c83a55f2ef9773b4141e2804e3799679246e4730e44b2e7 diff --git a/games-board/gnome-mines/gnome-mines-3.14.1.ebuild b/games-board/gnome-mines/gnome-mines-3.14.1.ebuild new file mode 100644 index 000000000000..698bbbf17155 --- /dev/null +++ b/games-board/gnome-mines/gnome-mines-3.14.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" +VALA_MIN_API_VERSION="0.22" + +inherit gnome-games vala + +DESCRIPTION="Clear hidden mines from a minefield" +HOMEPAGE="https://wiki.gnome.org/Apps/Mines" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 ~arm x86" +IUSE="" + +COMMON_DEPEND=" + >=dev-libs/glib-2.36:2 + >=gnome-base/librsvg-2.32.0 + >=x11-libs/gtk+-3.12:3 +" +RDEPEND="${COMMON_DEPEND} + !<x11-themes/gnome-themes-standard-3.14 +" +DEPEND="${COMMON_DEPEND} + $(vala_depend) + app-text/yelp-tools + dev-util/appdata-tools + >=dev-util/intltool-0.50 + sys-devel/gettext + virtual/pkgconfig +" + +src_prepare() { + gnome-games_src_prepare + vala_src_prepare +} diff --git a/games-board/gnome-mines/gnome-mines-3.14.2.ebuild b/games-board/gnome-mines/gnome-mines-3.14.2.ebuild new file mode 100644 index 000000000000..698bbbf17155 --- /dev/null +++ b/games-board/gnome-mines/gnome-mines-3.14.2.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" +VALA_MIN_API_VERSION="0.22" + +inherit gnome-games vala + +DESCRIPTION="Clear hidden mines from a minefield" +HOMEPAGE="https://wiki.gnome.org/Apps/Mines" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 ~arm x86" +IUSE="" + +COMMON_DEPEND=" + >=dev-libs/glib-2.36:2 + >=gnome-base/librsvg-2.32.0 + >=x11-libs/gtk+-3.12:3 +" +RDEPEND="${COMMON_DEPEND} + !<x11-themes/gnome-themes-standard-3.14 +" +DEPEND="${COMMON_DEPEND} + $(vala_depend) + app-text/yelp-tools + dev-util/appdata-tools + >=dev-util/intltool-0.50 + sys-devel/gettext + virtual/pkgconfig +" + +src_prepare() { + gnome-games_src_prepare + vala_src_prepare +} diff --git a/games-board/gnome-mines/gnome-mines-3.16.1.ebuild b/games-board/gnome-mines/gnome-mines-3.16.1.ebuild new file mode 100644 index 000000000000..adab7c3da0a2 --- /dev/null +++ b/games-board/gnome-mines/gnome-mines-3.16.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" +VALA_MIN_API_VERSION="0.22" + +inherit gnome-games vala + +DESCRIPTION="Clear hidden mines from a minefield" +HOMEPAGE="https://wiki.gnome.org/Apps/Mines" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +COMMON_DEPEND=" + >=dev-libs/glib-2.40:2 + >=gnome-base/librsvg-2.32.0 + >=x11-libs/gtk+-3.12:3 +" +RDEPEND="${COMMON_DEPEND} + !<x11-themes/gnome-themes-standard-3.14 +" +DEPEND="${COMMON_DEPEND} + $(vala_depend) + app-text/yelp-tools + dev-libs/appstream-glib + >=dev-util/intltool-0.50 + sys-devel/gettext + virtual/pkgconfig +" + +src_prepare() { + gnome-games_src_prepare + vala_src_prepare +} diff --git a/games-board/gnome-mines/metadata.xml b/games-board/gnome-mines/metadata.xml new file mode 100644 index 000000000000..da6fd63d0085 --- /dev/null +++ b/games-board/gnome-mines/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +</pkgmetadata> diff --git a/games-board/gnono/Manifest b/games-board/gnono/Manifest new file mode 100644 index 000000000000..384f89121b2f --- /dev/null +++ b/games-board/gnono/Manifest @@ -0,0 +1 @@ +DIST gnono-1.9.1.tar.bz2 421461 SHA256 1fd8ddcd2da5333210046ae1d6e710b597193c6f550ae1c82f729a0473bde60c SHA512 de67453cab0177d633b674ab2cf99b606373dc01e6d821478e8aa6adf9f0f40b04538e5d564df990739a62fb47225f83eff13ab6c12af26fe05afba309632d62 WHIRLPOOL 8b950b96c16e7c6290b5f4f6156404d96521e124516234fdf561ba4f55c63bd93366676ad0184e6c43f10e7dceef85e076dd999cf6c3c03595c75f9eade3ff8b diff --git a/games-board/gnono/files/gnono-1.9.1-gentoo.patch b/games-board/gnono/files/gnono-1.9.1-gentoo.patch new file mode 100644 index 000000000000..68378b9d461c --- /dev/null +++ b/games-board/gnono/files/gnono-1.9.1-gentoo.patch @@ -0,0 +1,46 @@ +diff -ru gnono-1.9.1.orig/pixmaps/Makefile.am gnono-1.9.1/pixmaps/Makefile.am +--- gnono-1.9.1.orig/pixmaps/Makefile.am 2006-12-15 01:18:18.000000000 -0500 ++++ gnono-1.9.1/pixmaps/Makefile.am 2009-11-03 00:21:57.186128499 -0500 +@@ -1,9 +1,9 @@ + ## Process this file with automake to produce Makefile.in + +-pixmapdir = $(datadir)/pixmaps ++pixmapdir = $(pkgdatadir)/pixmaps + pixmap_DATA = gnono-about.png + +-hicolordir = $(datadir)/icons/hicolor ++hicolordir = /usr/share/icons/hicolor + + install-data-local: + @for depth in 16x16 22x22 24x24 32x32 48x48 ; do \ +diff -ru gnono-1.9.1.orig/po/Makefile.in.in gnono-1.9.1/po/Makefile.in.in +--- gnono-1.9.1.orig/po/Makefile.in.in 2007-02-18 00:58:11.000000000 -0500 ++++ gnono-1.9.1/po/Makefile.in.in 2009-11-03 00:21:57.187135081 -0500 +@@ -34,7 +34,7 @@ + datarootdir = @datarootdir@ + libdir = @libdir@ + DATADIRNAME = @DATADIRNAME@ +-itlocaledir = $(prefix)/$(DATADIRNAME)/locale ++itlocaledir = /usr/share/locale + subdir = po + install_sh = @install_sh@ + # Automake >= 1.8 provides @mkdir_p@. +diff -ru gnono-1.9.1.orig/src/Makefile.am gnono-1.9.1/src/Makefile.am +--- gnono-1.9.1.orig/src/Makefile.am 2007-01-02 00:42:42.000000000 -0500 ++++ gnono-1.9.1/src/Makefile.am 2009-11-03 00:22:15.086296528 -0500 +@@ -3,12 +3,10 @@ + SUBDIRS = xpm + + INCLUDES = \ +- -Wall -Werror \ ++ -Wall \ + -DG_LOG_DOMAIN=\"$(PACKAGE)\" \ +- -DG_DISABLE_DEPRECATED \ +- -DGTK_DISABLE_DEPRECATED \ +- -DLOCALEDIR="\"$(datadir)/locale\"" \ +- -DPIXMAPDIR="\"$(datadir)/pixmaps\"" \ ++ -DLOCALEDIR="\"/usr/share/locale\"" \ ++ -DPIXMAPDIR="\"$(pkgdatadir)/pixmaps\"" \ + $(LIBGNOMEUI_CFLAGS) + + bin_PROGRAMS = gnono diff --git a/games-board/gnono/files/gnono-1.9.1-glib-single-include.patch b/games-board/gnono/files/gnono-1.9.1-glib-single-include.patch new file mode 100644 index 000000000000..edf5238c1475 --- /dev/null +++ b/games-board/gnono/files/gnono-1.9.1-glib-single-include.patch @@ -0,0 +1,151 @@ +Index: gnono-1.9.1/src/ai.c +=================================================================== +--- gnono-1.9.1.orig/src/ai.c ++++ gnono-1.9.1/src/ai.c +@@ -24,9 +24,7 @@ + #include <config.h> + #endif + +-#include <glib/garray.h> +-#include <glib/gmessages.h> +-#include <glib/gtypes.h> ++#include <glib.h> + + #include "cards.h" + #include "game.h" +Index: gnono-1.9.1/src/ai.h +=================================================================== +--- gnono-1.9.1.orig/src/ai.h ++++ gnono-1.9.1/src/ai.h +@@ -23,7 +23,7 @@ + #ifndef __GN_AI_H__ + #define __GN_AI_H__ + +-#include <glib/gtypes.h> ++#include <glib.h> + + void computer_play (gboolean pickup); + +Index: gnono-1.9.1/src/cards.c +=================================================================== +--- gnono-1.9.1.orig/src/cards.c ++++ gnono-1.9.1/src/cards.c +@@ -25,9 +25,7 @@ + #endif + + #include <stdlib.h> /* for rand() */ +-#include <glib/garray.h> +-#include <glib/gmem.h> +-#include <glib/gtypes.h> ++#include <glib.h> + #include <gdk-pixbuf/gdk-pixbuf-core.h> + + #include "cards.h" +Index: gnono-1.9.1/src/cards.h +=================================================================== +--- gnono-1.9.1.orig/src/cards.h ++++ gnono-1.9.1/src/cards.h +@@ -23,7 +23,7 @@ + #ifndef __GN_CARDS_H__ + #define __GN_CARDS_H__ + +-#include <glib/gtypes.h> ++#include <glib.h> + #include <gdk-pixbuf/gdk-pixbuf-core.h> + + static const gdouble GN_CARD_HEIGHT = 98.0; +Index: gnono-1.9.1/src/game.c +=================================================================== +--- gnono-1.9.1.orig/src/game.c ++++ gnono-1.9.1/src/game.c +@@ -24,9 +24,7 @@ + #include <config.h> + #endif + +-#include <glib/garray.h> +-#include <glib/gmessages.h> +-#include <glib/gtypes.h> ++#include <glib.h> + #include <gtk/gtkmain.h> + #include <libgnome/gnome-config.h> + +Index: gnono-1.9.1/src/game.h +=================================================================== +--- gnono-1.9.1.orig/src/game.h ++++ gnono-1.9.1/src/game.h +@@ -23,7 +23,7 @@ + #ifndef __GN_GAME_H__ + #define __GN_GAME_H__ + +-#include <glib/gtypes.h> ++#include <glib.h> + + /*#define GN_DEBUG*/ + +Index: gnono-1.9.1/src/interface.h +=================================================================== +--- gnono-1.9.1.orig/src/interface.h ++++ gnono-1.9.1/src/interface.h +@@ -23,7 +23,7 @@ + #ifndef __GN_INTERFACE_H__ + #define __GN_INTERFACE_H__ + +-#include <glib/gtypes.h> ++#include <glib.h> + #include <gtk/gtkwidget.h> + #include <gtk/gtkwindow.h> + +Index: gnono-1.9.1/src/main.c +=================================================================== +--- gnono-1.9.1.orig/src/main.c ++++ gnono-1.9.1/src/main.c +@@ -26,7 +26,7 @@ + + #include <unistd.h> + #include <glib/gi18n.h> +-#include <glib/gmain.h> ++#include <glib.h> + #include <gtk/gtkmain.h> + + #include "interface.h" +Index: gnono-1.9.1/src/players.c +=================================================================== +--- gnono-1.9.1.orig/src/players.c ++++ gnono-1.9.1/src/players.c +@@ -24,8 +24,7 @@ + #include <config.h> + #endif + +-#include <glib/garray.h> +-#include <glib/gtypes.h> ++#include <glib.h> + #include <glib/gi18n.h> + #include <gtk/gtklabel.h> + #include <gtk/gtkwidget.h> +Index: gnono-1.9.1/src/players.h +=================================================================== +--- gnono-1.9.1.orig/src/players.h ++++ gnono-1.9.1/src/players.h +@@ -23,8 +23,7 @@ + #ifndef __GN_PLAYERS_H__ + #define __GN_PLAYERS_H__ + +-#include <glib/garray.h> +-#include <glib/gtypes.h> ++#include <glib.h> + + #include "cards.h" + +Index: gnono-1.9.1/src/preferences.h +=================================================================== +--- gnono-1.9.1.orig/src/preferences.h ++++ gnono-1.9.1/src/preferences.h +@@ -23,7 +23,7 @@ + #ifndef __GN_PREFERENCES_H__ + #define __GN_PREFERENCES_H__ + +-#include <glib/gtypes.h> ++#include <glib.h> + #include <gtk/gtkwidget.h> + + void dlg_preferences (GtkWidget *caller, gpointer data); diff --git a/games-board/gnono/gnono-1.9.1.ebuild b/games-board/gnono/gnono-1.9.1.ebuild new file mode 100644 index 000000000000..9480fe021f2d --- /dev/null +++ b/games-board/gnono/gnono-1.9.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils gnome2-utils games + +DESCRIPTION="A rewrite for GNOME of the Windows card game WUNO" +HOMEPAGE="http://sourceforge.net/projects/gnono/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="gnome-base/libgnomeui + virtual/libintl" +DEPEND="${RDEPEND} + sys-devel/gettext" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-gentoo.patch \ + "${FILESDIR}"/${P}-glib-single-include.patch + eautoreconf +} + +src_install() { + default + 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/gnono/metadata.xml b/games-board/gnono/metadata.xml new file mode 100644 index 000000000000..75dd96ff216d --- /dev/null +++ b/games-board/gnono/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">gnono</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/gnubg/Manifest b/games-board/gnubg/Manifest new file mode 100644 index 000000000000..bdc11f2075c3 --- /dev/null +++ b/games-board/gnubg/Manifest @@ -0,0 +1,2 @@ +DIST gnubg-release-1.04.000-sources.tar.gz 15021543 SHA256 66ca950d33d697f7a87605dfd3b83165ed756a927eaef164684914b9b0a14e3f SHA512 6f83d631d2978ef91829dd69a7de704eb4f194b7854bcebc5254315cd48bc09abf80ef27ba2b063514d2689313ffac7b4f20c62af6bf8ae3496f261ab25fe80c WHIRLPOOL 787ef3c8d33a475810aac5cba799001d435385554672a00c832dd1870006841bcd270f2bb6d77e9c990fa58300ced3d50a2a78cc2ae9f1ae94b30ef0c17c10a2 +DIST gnubg-release-1.05.000-sources.tar.gz 15030177 SHA256 a872810b82f17950be64b4f49a10da97634c5d8f39069288f64bd2eb78a4cddb SHA512 1d8080c362cb32a3828b6913823d0eb42b0befac7a9fbd6d5ee3346e7515f6150876ac3b8bd59d5fd0c0de2a03187441165bb82eff0ffa1fb84e385dcea58590 WHIRLPOOL efdc6a83112cb1aaf96db17dce186381e154f8b83ef72e90b8cf085ee583b76c6d8f25b8c38a6c7cf9abb68dc7f3ea8e7584413292e51d3456aec4e9f7c2c4da diff --git a/games-board/gnubg/gnubg-1.04.000.ebuild b/games-board/gnubg/gnubg-1.04.000.ebuild new file mode 100644 index 000000000000..8d851f598935 --- /dev/null +++ b/games-board/gnubg/gnubg-1.04.000.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit eutils python-single-r1 gnome2-utils games + +DESCRIPTION="GNU BackGammon" +HOMEPAGE="http://www.gnubg.org/" +SRC_URI="http://gnubg.org/media/sources/${PN}-release-${PV}-sources.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ~arm ppc ppc64 x86 ~x86-fbsd" +IUSE="cpu_flags_x86_avx gtk opengl python sqlite cpu_flags_x86_sse cpu_flags_x86_sse2 threads" + +RDEPEND="dev-libs/glib:2 + media-libs/freetype:2 + media-libs/libpng:0 + x11-libs/cairo + x11-libs/pango + dev-db/sqlite:3 + media-libs/libcanberra + dev-libs/libxml2 + dev-libs/gmp:0 + gtk? ( x11-libs/gtk+:2 ) + opengl? ( + x11-libs/gtk+:2 + x11-libs/gtkglext + virtual/glu + ) + sys-libs/readline:0 + python? ( ${PYTHON_DEPS} ) + media-fonts/dejavu + virtual/libintl" +DEPEND="${RDEPEND} + virtual/pkgconfig + sys-devel/gettext" + +pkg_setup() { + games_pkg_setup + python-single-r1_pkg_setup +} + +src_prepare() { + # use ${T} instead of /tmp for constructing credits (bug #298275) + sed -i -e 's:/tmp:${T}:' credits.sh || die + sed -i -e 's/fonts //' Makefile.in || die # handle font install ourself to fix bug #335774 + sed -i \ + -e '/^localedir / s#=.*$#= @localedir@#' \ + -e '/^gnulocaledir / s#=.*$#= @localedir@#' \ + po/Makefile.in.in || die + sed -i \ + -e '/^gnubgiconsdir / s#=.*#= /usr/share#' \ + -e '/^gnubgpixmapsdir / s#=.*#= /usr/share/pixmaps#' \ + pixmaps/Makefile.in || die +} + +src_configure() { + local simd=no + local gtk_arg=--without-gtk + + if use gtk || use opengl ; then + gtk_arg=--with-gtk + fi + use cpu_flags_x86_sse && simd=sse + use cpu_flags_x86_sse2 && simd=sse2 + use cpu_flags_x86_avx && simd=avx + egamesconf \ + --localedir=/usr/share/locale \ + --docdir=/usr/share/doc/${PF}/html \ + --disable-cputest \ + --enable-simd=${simd} \ + ${gtk_arg} \ + $(use_enable threads) \ + $(use_with python) \ + $(use_with sqlite sqlite) \ + $(use_with opengl board3d) +} + +src_install() { + default + insinto "${GAMES_DATADIR}/${PN}" + doins ${PN}.weights *bd + dodir "${GAMES_DATADIR}"/${PN}/fonts + dosym /usr/share/fonts/dejavu/DejaVuSans.ttf "${GAMES_DATADIR}"/${PN}/fonts/Vera.ttf + dosym /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf "${GAMES_DATADIR}"/${PN}/fonts/VeraBd.ttf + dosym /usr/share/fonts/dejavu/DejaVuSerif-Bold.ttf "${GAMES_DATADIR}"/${PN}/fonts/VeraSeBd.ttf + make_desktop_entry "gnubg -w" "GNU Backgammon" + 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/gnubg/gnubg-1.05.000.ebuild b/games-board/gnubg/gnubg-1.05.000.ebuild new file mode 100644 index 000000000000..90c280ab76a5 --- /dev/null +++ b/games-board/gnubg/gnubg-1.05.000.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit eutils python-single-r1 gnome2-utils games + +DESCRIPTION="GNU BackGammon" +HOMEPAGE="http://www.gnubg.org/" +SRC_URI="http://gnubg.org/media/sources/${PN}-release-${PV}-sources.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86 ~x86-fbsd" +IUSE="cpu_flags_x86_avx gtk opengl python sqlite cpu_flags_x86_sse cpu_flags_x86_sse2 threads" + +RDEPEND="dev-libs/glib:2 + media-libs/freetype:2 + media-libs/libpng:0 + x11-libs/cairo + x11-libs/pango + dev-db/sqlite:3 + media-libs/libcanberra + dev-libs/libxml2 + dev-libs/gmp:0 + gtk? ( x11-libs/gtk+:2 ) + opengl? ( + x11-libs/gtk+:2 + x11-libs/gtkglext + virtual/glu + ) + sys-libs/readline:0 + python? ( ${PYTHON_DEPS} ) + media-fonts/dejavu + virtual/libintl" +DEPEND="${RDEPEND} + virtual/pkgconfig + sys-devel/gettext" + +pkg_setup() { + games_pkg_setup + python-single-r1_pkg_setup +} + +src_prepare() { + # use ${T} instead of /tmp for constructing credits (bug #298275) + sed -i -e 's:/tmp:${T}:' credits.sh || die + sed -i -e 's/fonts //' Makefile.in || die # handle font install ourself to fix bug #335774 + sed -i \ + -e '/^localedir / s#=.*$#= @localedir@#' \ + -e '/^gnulocaledir / s#=.*$#= @localedir@#' \ + po/Makefile.in.in || die + sed -i \ + -e '/^gnubgiconsdir / s#=.*#= /usr/share#' \ + -e '/^gnubgpixmapsdir / s#=.*#= /usr/share/pixmaps#' \ + pixmaps/Makefile.in || die +} + +src_configure() { + local simd=no + local gtk_arg=--without-gtk + + if use gtk || use opengl ; then + gtk_arg=--with-gtk + fi + use cpu_flags_x86_sse && simd=sse + use cpu_flags_x86_sse2 && simd=sse2 + use cpu_flags_x86_avx && simd=avx + egamesconf \ + --localedir=/usr/share/locale \ + --docdir=/usr/share/doc/${PF}/html \ + --disable-cputest \ + --enable-simd=${simd} \ + ${gtk_arg} \ + $(use_enable threads) \ + $(use_with python) \ + $(use_with sqlite sqlite) \ + $(use_with opengl board3d) +} + +src_install() { + default + insinto "${GAMES_DATADIR}/${PN}" + doins ${PN}.weights *bd + dodir "${GAMES_DATADIR}"/${PN}/fonts + dosym /usr/share/fonts/dejavu/DejaVuSans.ttf "${GAMES_DATADIR}"/${PN}/fonts/Vera.ttf + dosym /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf "${GAMES_DATADIR}"/${PN}/fonts/VeraBd.ttf + dosym /usr/share/fonts/dejavu/DejaVuSerif-Bold.ttf "${GAMES_DATADIR}"/${PN}/fonts/VeraSeBd.ttf + make_desktop_entry "gnubg -w" "GNU Backgammon" + 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/gnubg/metadata.xml b/games-board/gnubg/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/gnubg/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/gnuchess-book/Manifest b/games-board/gnuchess-book/Manifest new file mode 100644 index 000000000000..b25c0c9e16bf --- /dev/null +++ b/games-board/gnuchess-book/Manifest @@ -0,0 +1 @@ +DIST book_1.02.pgn.gz 26265281 SHA256 deac77edb061a59249a19deb03da349cae051e52527a6cb5af808d9398d32d44 SHA512 2fda39fae66a2afaf0084bd482465de04a65b842276760cde69cb6649c0d3b90c5341e10b4d344e06983bdc97ec8802582d622290bc419b8742d3cd6dd39688a WHIRLPOOL d49418d5f0ebae424e551be69601d82ba230bff9e503de21ce160241eb5640128e5848ba9dbd72809373df6d66fa0c2031b2780ce58db682732589685d385450 diff --git a/games-board/gnuchess-book/gnuchess-book-1.02.ebuild b/games-board/gnuchess-book/gnuchess-book-1.02.ebuild new file mode 100644 index 000000000000..eb7504a449d7 --- /dev/null +++ b/games-board/gnuchess-book/gnuchess-book-1.02.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit games + +DESCRIPTION="Opening book for gnuchess" +HOMEPAGE="http://www.gnu.org/software/chess/chess.html" +SRC_URI="mirror://gnu/chess/book_${PV}.pgn.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 x86" +IUSE="" +RESTRICT="userpriv" # bug #112898 + +DEPEND=">=games-board/gnuchess-6" +RDEPEND=${DEPEND} + +S=${WORKDIR} + +src_compile() { + "${GAMES_BINDIR}"/gnuchess --addbook=book_${PV}.pgn || die +} + +src_install() { + insinto "${GAMES_DATADIR}/gnuchess" + doins book.bin + prepgamesdirs +} diff --git a/games-board/gnuchess-book/metadata.xml b/games-board/gnuchess-book/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/gnuchess-book/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/gnuchess/Manifest b/games-board/gnuchess/Manifest new file mode 100644 index 000000000000..988fa35ac32a --- /dev/null +++ b/games-board/gnuchess/Manifest @@ -0,0 +1 @@ +DIST gnuchess-6.2.1.tar.gz 730761 SHA256 17caab725539447bcb17a14b17905242cbf287087e53a6777524feb7bbaeed06 SHA512 8f7ac477333703743984089e495ae3e61f8b4dd41c89c4141b33a9dcd598c9a5e2374ece50431f9eb72ccea86338ea19077e2e8ee592225c3c0a928a2fc11bc8 WHIRLPOOL fe8c6976f1e20de3e1ee30d9f2663ab32a217a66e88fda273f2381119df9ad616c7229d5647dcaf3225e6a0ba8ba4c5e96cc84e9382a24e4931793fcd469e60f diff --git a/games-board/gnuchess/gnuchess-6.2.1.ebuild b/games-board/gnuchess/gnuchess-6.2.1.ebuild new file mode 100644 index 000000000000..11e5f2cf00bd --- /dev/null +++ b/games-board/gnuchess/gnuchess-6.2.1.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit flag-o-matic games + +DESCRIPTION="Console based chess interface" +HOMEPAGE="http://www.gnu.org/software/chess/chess.html" +SRC_URI="mirror://gnu/chess/${P}.tar.gz" + +KEYWORDS="amd64 ~arm ppc ppc64 x86" +LICENSE="GPL-3" +SLOT="0" +IUSE="" + +src_configure() { + strip-flags # bug #199097 + egamesconf --without-readline # bug 491088 +} + +src_install () { + default + prepgamesdirs +} diff --git a/games-board/gnuchess/metadata.xml b/games-board/gnuchess/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/gnuchess/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/gnugo/Manifest b/games-board/gnugo/Manifest new file mode 100644 index 000000000000..6bf7021caaec --- /dev/null +++ b/games-board/gnugo/Manifest @@ -0,0 +1 @@ +DIST gnugo-3.9.1.tar.gz 3207748 SHA256 b80bde5b31bf1e90f78ffc11f49c65ee866bf007ea3f210ce1ce652cd5484794 SHA512 b2b215fb8c1ebb0b58e54d14dcc02af3b76bde3a1b84a842a11a0a6018c77a2464c44b26fe0e7ad73b2b2e7fa22005466821bf762108c2c2e04428d3d459af97 WHIRLPOOL e3d398ca8d500a96d4e06e406d3e1c0375bc8641ef052260512c3181db3d74901e571ec1aaddfb96ba4fd635d1e6801fec4f7ddf563a199b50e609e1befe2d4e diff --git a/games-board/gnugo/files/gnugo-3.9.1-invalid-move.patch b/games-board/gnugo/files/gnugo-3.9.1-invalid-move.patch new file mode 100644 index 000000000000..fc8fd8f524db --- /dev/null +++ b/games-board/gnugo/files/gnugo-3.9.1-invalid-move.patch @@ -0,0 +1,21 @@ +From 84a32e9cee2a70c0ec6ef58c1be279fed84a9a53 Mon Sep 17 00:00:00 2001 +From: Gunnar Farnebäck <gunnar@lysator.liu.se> +Date: Thu, 13 Jun 2013 18:45:03 +0000 +Subject: Avoid crashing due to registering an invalid loss move reason. + +--- +diff --git a/engine/value_moves.c b/engine/value_moves.c +index e9f2daa..7ec8fdd 100644 +--- a/engine/value_moves.c ++++ b/engine/value_moves.c +@@ -383,7 +383,7 @@ do_find_more_owl_attack_and_defense_moves(int color, int pos, + int dcode = owl_does_defend(pos, dd, &kworm); + + if (dcode >= DRAGON2(dd).owl_defense_code) { +- if (dcode == LOSS) ++ if (dcode == LOSS && kworm != NO_MOVE) + add_loss_move(pos, dd, kworm); + else + add_owl_defense_move(pos, dd, dcode); +-- +cgit v0.9.0.2 diff --git a/games-board/gnugo/gnugo-3.9.1-r1.ebuild b/games-board/gnugo/gnugo-3.9.1-r1.ebuild new file mode 100644 index 000000000000..10ef21944321 --- /dev/null +++ b/games-board/gnugo/gnugo-3.9.1-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="A Go-playing program" +HOMEPAGE="http://www.gnu.org/software/gnugo/devel.html" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="readline" + +DEPEND="readline? ( sys-libs/readline:0 ) + >=sys-libs/ncurses-5.2-r3" +RDEPEND=${DEPEND} + +src_prepare() { + epatch "${FILESDIR}"/${P}-invalid-move.patch +} + +src_configure() { + egamesconf \ + $(use_with readline) \ + --enable-cache-size=32 +} + +src_install() { + default + prepgamesdirs +} diff --git a/games-board/gnugo/metadata.xml b/games-board/gnugo/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/gnugo/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/gnushogi/Manifest b/games-board/gnushogi/Manifest new file mode 100644 index 000000000000..3d96f48d44e5 --- /dev/null +++ b/games-board/gnushogi/Manifest @@ -0,0 +1 @@ +DIST gnushogi-1.4.1.tar.gz 542301 SHA256 1af89a6a0e80632f860a95899c363f7b7c9b8a6a1342a0676a96a606d668a0ea SHA512 b997f309bfba85553465ceb262094aa0a9a53dc7ad970f77c0eb0c1558ba12f9dd15b42a6abfc85f5ac08bbfecc7816a6e3e4fb0efe2caabb043fb343b1ebecd WHIRLPOOL aee8e4eaa9fb755483f25ce8098310f20b3c8cbda37b496883b929d937c0fa6df60720a231f865adb3242d7bd29532714d7d16e7044256ae3094bf4b4829cbec diff --git a/games-board/gnushogi/gnushogi-1.4.1.ebuild b/games-board/gnushogi/gnushogi-1.4.1.ebuild new file mode 100644 index 000000000000..656dc9dbf3d9 --- /dev/null +++ b/games-board/gnushogi/gnushogi-1.4.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Japanese version of chess (commandline + X-Version)" +HOMEPAGE="http://www.gnu.org/software/gnushogi/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="X" + +RDEPEND="sys-libs/ncurses + X? ( x11-libs/libXaw )" +DEPEND="${RDEPEND} + >=sys-devel/bison-1.34 + >=sys-devel/flex-2.5" + +src_prepare() { + sed -i \ + -e '/^bbk:/s/$/ gnushogi_compile pat2inc sizetest/' \ + Makefile.in || die + sed -i \ + -e "/^LIBDIR/s:=.*:=\"$(games_get_libdir)\":" \ + gnushogi/Makefile.in || die +} + +src_configure() { + egamesconf \ + $(use_with X x) \ + $(use_enable X xshogi) +} + +src_install() { + dogamesbin gnushogi/gnushogi + doman doc/gnushogi.6 + doinfo doc/gnushogi.info + if use X ; then + dogamesbin xshogi/xshogi + doman doc/xshogi.6 + make_desktop_entry xshogi XShogi + fi + dogameslib gnushogi/gnushogi.bbk + dodoc README NEWS CONTRIB + dohtml doc/gnushogi/*.html + prepgamesdirs +} diff --git a/games-board/gnushogi/metadata.xml b/games-board/gnushogi/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/gnushogi/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/goatee-gtk/Manifest b/games-board/goatee-gtk/Manifest new file mode 100644 index 000000000000..384d4c29e1f3 --- /dev/null +++ b/games-board/goatee-gtk/Manifest @@ -0,0 +1 @@ +DIST goatee-gtk-0.3.0.tar.gz 60381 SHA256 bb9f65956e3bb13d03e42dcbd65c39c40f2d225b881da47d5744b95b34beba71 SHA512 f4af3e1871d8e8c1b2c8df135b58019e2c0574eae165655af34e73c8e18a10ebb8ab0ac095c14a58f3e28250880e4539086e2841b0ed88575ce704de00ce4ada WHIRLPOOL 9e454177f38ef7e6d2e131b562411b239cbd176c20eacd9a95a27f8353931589c25c3feff2a5356576f0e8097c14fe6dbc8b1cdb704759d712be6fed808ed107 diff --git a/games-board/goatee-gtk/goatee-gtk-0.3.0.ebuild b/games-board/goatee-gtk/goatee-gtk-0.3.0.ebuild new file mode 100644 index 000000000000..0692db54f980 --- /dev/null +++ b/games-board/goatee-gtk/goatee-gtk-0.3.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +CABAL_FEATURES="bin lib profile haddock hoogle hscolour test-suite" +inherit haskell-cabal eutils games + +DESCRIPTION="A monadic take on a 2,500-year-old board game - GTK+ UI" +HOMEPAGE="http://khumba.net/projects/goatee" +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz" + +LICENSE="AGPL-3" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=dev-games/goatee-0.3:=[profile?] <dev-games/goatee-0.4:=[profile?] + >=dev-haskell/cairo-0.12:=[profile?] <dev-haskell/cairo-0.13:=[profile?] + >=dev-haskell/gtk-0.12:2=[profile?] <dev-haskell/gtk-0.13:2=[profile?] + >=dev-haskell/mtl-2.1:=[profile?] <dev-haskell/mtl-2.3:=[profile?] + >=dev-haskell/parsec-3.1:=[profile?] <dev-haskell/parsec-3.2:=[profile?] + >=dev-lang/ghc-7.4.1:= + >=dev-libs/gmp-5:= + virtual/libffi:= +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.8 + test? ( >=dev-haskell/hunit-1.2 <dev-haskell/hunit-1.3 ) +" + +pkg_setup() { + games_pkg_setup + haskell-cabal_pkg_setup +} + +src_configure() { + haskell-cabal_src_configure \ + --bindir="${GAMES_BINDIR}" +} + +src_compile() { + haskell-cabal_src_compile +} + +src_install() { + haskell-cabal_src_install + prepgamesdirs +} + +pkg_postinst() { + ghc-package_pkg_postinst + games_pkg_postinst +} diff --git a/games-board/goatee-gtk/metadata.xml b/games-board/goatee-gtk/metadata.xml new file mode 100644 index 000000000000..2ad2762eb324 --- /dev/null +++ b/games-board/goatee-gtk/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <herd>haskell</herd> + <longdescription> + Goatee is a Go library and game editor, written in Haskell. It provides a + GUI for recording, studying, and editing game records. Underneath this is a + portable library for manipulating SGF files to build UIs and tools. Goatee + aims to be full-featured by supporting all of the SGF spec and allowing for + full and easy customization of the game records you create. + + This package is the GTK+ UI. + </longdescription> +</pkgmetadata> diff --git a/games-board/grhino/Manifest b/games-board/grhino/Manifest new file mode 100644 index 000000000000..6e44a391d010 --- /dev/null +++ b/games-board/grhino/Manifest @@ -0,0 +1 @@ +DIST grhino-0.16.1.tar.gz 1178091 SHA256 d028cf9308006589fedbb204e932a389ecbda6388ee604847a1c438af7e10484 SHA512 17fd5539a9d74a715237a51cbf2f3119feae2bed6a26496b02d7882385d5567571ba4b4c4018554944d07322e5a0c3b3235e141579281621f5a030acbe6480e2 WHIRLPOOL 701ec5649273a10537bd64d6474c84a27754c428e9213064e610447acd5d3c63961e316d80db03f734963439774cd6269207cfe8f18f9065da086fb36df14140 diff --git a/games-board/grhino/grhino-0.16.1.ebuild b/games-board/grhino/grhino-0.16.1.ebuild new file mode 100644 index 000000000000..211495c20646 --- /dev/null +++ b/games-board/grhino/grhino-0.16.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Reversi game for GNOME, supporting the Go/Game Text Protocol" +HOMEPAGE="http://rhino.sourceforge.net/" +SRC_URI="mirror://sourceforge/rhino/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="gnome gtp nls" + +RDEPEND="gnome? ( =gnome-base/libgnomeui-2* ) + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +src_prepare() { + sed -i '/^(\|locale\|help\|omf\|icon\|)/s:@datadir@:/usr/share:' \ + Makefile.in || die +} + +src_configure() { + if use gnome || use gtp; then + egamesconf \ + --localedir=/usr/share/locale \ + $(use_enable gnome) \ + $(use_enable gtp) \ + $(use_enable nls) + else + egamesconf \ + --localedir=/usr/share/locale \ + --enable-gtp \ + --disable-gnome \ + $(use_enable nls) + fi +} + +src_install() { + default + use gnome && make_desktop_entry ${PN} GRhino + prepgamesdirs +} diff --git a/games-board/grhino/metadata.xml b/games-board/grhino/metadata.xml new file mode 100644 index 000000000000..5fac398972dc --- /dev/null +++ b/games-board/grhino/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription lang="en"> +An Othello game with strong AI. +</longdescription> + <use> + <flag name="gtp">Install the GTP (Go/Game Text Protocol) frontend</flag> + </use> + <upstream> + <remote-id type="sourceforge">rhino</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/gtkatlantic/Manifest b/games-board/gtkatlantic/Manifest new file mode 100644 index 000000000000..d4cb556f3240 --- /dev/null +++ b/games-board/gtkatlantic/Manifest @@ -0,0 +1 @@ +DIST gtkatlantic-0.5.0.tar.bz2 782124 SHA256 065f649e37144a545936546c8655c5d66558415c259c4838c101ab1c733e0d86 SHA512 5aa332af2f17612caae0e396614ddfecbb1df4ad1f2c15a402efea5e96fde72cb0aefa87e690234382b82d03904e7235536434e455827b838a988c13eaa78bfe WHIRLPOOL 48e0e44ecedb02686414b1fdbfbf355b7e214c31edc1db70f90657489b19fb65d5a984c5814f31aab045e3c0837e3978e105a330510a42704c05995a1b3a1556 diff --git a/games-board/gtkatlantic/gtkatlantic-0.5.0.ebuild b/games-board/gtkatlantic/gtkatlantic-0.5.0.ebuild new file mode 100644 index 000000000000..150c11458f85 --- /dev/null +++ b/games-board/gtkatlantic/gtkatlantic-0.5.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils gnome2-utils games + +DESCRIPTION="Monopoly-like game that works with the monopd server" +HOMEPAGE="http://gtkatlantic.gradator.net/" +SRC_URI="http://download.tuxfamily.org/gtkatlantic/downloads/v0.5/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +RDEPEND="x11-libs/gtk+:3 + dev-libs/libxml2 + media-libs/libpng:0" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_install() { + default + newicon data/icon32x32.xpm ${PN}.xpm + newicon -s 16 data/icon16x16.xpm ${PN}.xpm + newicon -s 32 data/icon32x32.xpm ${PN}.xpm + make_desktop_entry ${PN} GtkAtlantic + 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/gtkatlantic/metadata.xml b/games-board/gtkatlantic/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/gtkatlantic/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/gtkboard/Manifest b/games-board/gtkboard/Manifest new file mode 100644 index 000000000000..10e38f656cdc --- /dev/null +++ b/games-board/gtkboard/Manifest @@ -0,0 +1 @@ +DIST gtkboard-0.11pre0.tar.gz 459581 SHA256 e67ffbec822ce989c9b480b9ef0429bcc75fb2dcdf349940d7d5f9f85da902c5 SHA512 09d4a1d5203ef0e21d21b5b6cb351add71d0a415ad83808b6e281dcf3f869221e99ae683846462d465eaac54f5eb292e1d8447ea7cdfb07602a8add49e2db283 WHIRLPOOL 4dbf967c31b8a1f6fb044f3a22851e2b843b32c908609d1120f9879814163a83cec6db7152c68beebb606db817293b86750b908d7c4d2f8b002dc6c48cbed56c diff --git a/games-board/gtkboard/files/gtkboard-0.11_pre0-gcc41.patch b/games-board/gtkboard/files/gtkboard-0.11_pre0-gcc41.patch new file mode 100644 index 000000000000..2e6a4c6f83ce --- /dev/null +++ b/games-board/gtkboard/files/gtkboard-0.11_pre0-gcc41.patch @@ -0,0 +1,24 @@ +gcc-4.1 patch from debian. + +--- src/board.c ++++ src/board.c +@@ -74,7 +74,7 @@ + //! default background + char board_default_colors [9] = {215, 215, 215, 215, 215, 215, 0, 0, 0}; + +-static int cell_size, num_pieces; ++int cell_size, num_pieces; + + extern void ui_make_human_move (byte *move, int *rmove); + +--- src/menu.c ++++ src/menu.c +@@ -829,7 +829,7 @@ + + { + int i; +- GtkItemFactoryEntry help_items [3]; ++ GtkItemFactoryEntry help_items [4]; + help_items[0].path = g_strdup_printf ("/Help/%s", opt_game->name); + help_items[0].accelerator = NULL; + help_items[0].callback = NULL; diff --git a/games-board/gtkboard/files/gtkboard-0.11_pre0-gcc45.patch b/games-board/gtkboard/files/gtkboard-0.11_pre0-gcc45.patch new file mode 100644 index 000000000000..300e528c9ef7 --- /dev/null +++ b/games-board/gtkboard/files/gtkboard-0.11_pre0-gcc45.patch @@ -0,0 +1,22 @@ +--- src/menu.c.old 2010-05-24 12:35:15.000000000 +0200 ++++ src/menu.c 2010-05-24 12:35:48.000000000 +0200 +@@ -176,7 +176,7 @@ + { + #if GTK_MAJOR_VERSION == 2 + // FIXME: can't get existing bgcolor +- const int size = 20; ++#define size 20 + static char pixbufs [7][size*(size+1)]; + char **pixmap_data; + static GdkPixmap *pixmaps[7]; +--- src/wordtris.c.old 2010-05-24 12:36:50.000000000 +0200 ++++ src/wordtris.c 2010-05-24 12:38:30.000000000 +0200 +@@ -122,7 +122,7 @@ + + // TODO: change this so that we only need to specify pixmaps for individual squares + +-static const int lava_xpm_header_size = 253+1; ++#define lava_xpm_header_size 253+1 + static char * lava_xpm_header[] = + { + "144 504 253 2", diff --git a/games-board/gtkboard/gtkboard-0.11_pre0.ebuild b/games-board/gtkboard/gtkboard-0.11_pre0.ebuild new file mode 100644 index 000000000000..b07d0efb1b58 --- /dev/null +++ b/games-board/gtkboard/gtkboard-0.11_pre0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +MY_P=${P/_} +DESCRIPTION="Board games system" +HOMEPAGE="http://gtkboard.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="gnome" + +RDEPEND="x11-libs/gtk+:2 + media-libs/libsdl:0[sound] + media-libs/sdl-mixer[vorbis] + gnome? ( gnome-base/libgnomeui )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc41.patch \ + "${FILESDIR}"/${P}-gcc45.patch + sed -i -e "/^LIBS/s:@LIBS@:@LIBS@ -lgmodule-2.0 -lm:" \ + src/Makefile.in +} + +src_configure() { + egamesconf \ + --disable-dependency-tracking \ + --datadir="${GAMES_DATADIR}"/${PN} \ + --enable-gtk2 \ + --enable-sdl \ + $(use_enable gnome) +} + +src_install() { + emake DESTDIR="${D}" install + doicon pixmaps/${PN}.png + make_desktop_entry ${PN} Gtkboard + dodoc AUTHORS ChangeLog TODO + dohtml doc/index.html + prepgamesdirs +} diff --git a/games-board/gtkboard/metadata.xml b/games-board/gtkboard/metadata.xml new file mode 100644 index 000000000000..3ed92536ef9b --- /dev/null +++ b/games-board/gtkboard/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">gtkboard</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/hexxagon/Manifest b/games-board/hexxagon/Manifest new file mode 100644 index 000000000000..5c98711fa257 --- /dev/null +++ b/games-board/hexxagon/Manifest @@ -0,0 +1 @@ +DIST hexxagon-1.0.2.tar.bz2 1286713 SHA256 49b13516822fd32a9c58d62735b841a6e47e1714273e03ad20d8a9343a7623cc SHA512 8723534c4d260b1bac943609ca91ff224a120ad1f6e6362b1c515766f9ad3b339bbb9b0374cd71a482e127c47f6e1742b5189662f22e8eec07978417f5a6bda2 WHIRLPOOL ce1ae9d22b9f738dc33f944460d0d70d5f545287ce143dfb6baa530686ea4a6e1c849563a4b446a8d85d87c869f626b48d8b4d009651f6219e4f80bf63d72522 diff --git a/games-board/hexxagon/hexxagon-1.0.2.ebuild b/games-board/hexxagon/hexxagon-1.0.2.ebuild new file mode 100644 index 000000000000..08f767a38b56 --- /dev/null +++ b/games-board/hexxagon/hexxagon-1.0.2.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Clone of the original DOS game" +HOMEPAGE="http://www.nesqi.se/" +SRC_URI="http://www.nesqi.se/download/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +RDEPEND="dev-cpp/glibmm:2 + dev-cpp/gtkmm:2.4 + x11-libs/gtk+:2" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_install() { + emake DESTDIR="${D}" install + newicon images/board_N_2.xpm ${PN}.xpm + make_desktop_entry ${PN} Hexxagon + dodoc README + prepgamesdirs +} diff --git a/games-board/hexxagon/metadata.xml b/games-board/hexxagon/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/hexxagon/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/holdingnuts/Manifest b/games-board/holdingnuts/Manifest new file mode 100644 index 000000000000..614a10e2701b --- /dev/null +++ b/games-board/holdingnuts/Manifest @@ -0,0 +1 @@ +DIST holdingnuts-0.0.5.tar.bz2 1456227 SHA256 0fa9a220b63d246294b526c47728b9f26d0aceffa419b3c9784c7f6cab2c8247 SHA512 95eb6d73c5b72c10bf04a03f9fb039bb1573ef74b6a3c820d5cc79fb81b8c6e2df24c5266a4067f4044ce050ba29bf1e2c65c46de50dd7cd3beac4736397053a WHIRLPOOL c5cb943593351388472abf2463f5f59f1fee5a4fab7632b89e7ce7b36ca327cb37d5c7e7d458054a027bb80ff7c44db1ecb8e3574e4757ed4b64c6ad4066c162 diff --git a/games-board/holdingnuts/files/holdingnuts-0.0.5-wheel.patch b/games-board/holdingnuts/files/holdingnuts-0.0.5-wheel.patch new file mode 100644 index 000000000000..447d574ffea6 --- /dev/null +++ b/games-board/holdingnuts/files/holdingnuts-0.0.5-wheel.patch @@ -0,0 +1,17 @@ +Description: fixed gamelogic bug with wheel-straight: check suit of ace if testing for straight-flush +Origin: http://sourceforge.net/apps/trac/holdingnuts/changeset/741 +--- a/src/libpoker/GameLogic.cpp ++++ b/src/libpoker/GameLogic.cpp +@@ -179,7 +179,11 @@ + + // is an A2345-straight ("wheel") + if (count == 4 && (last_face == Card::Two && allcards->front().getFace() == Card::Ace)) +- is_straight = true; ++ { ++ // check suit when testing for StraightFlush ++ if (suit == -1 || allcards->front().getSuit() == suit) ++ is_straight = true; ++ } + + if (is_straight) + {
\ No newline at end of file diff --git a/games-board/holdingnuts/holdingnuts-0.0.5-r1.ebuild b/games-board/holdingnuts/holdingnuts-0.0.5-r1.ebuild new file mode 100644 index 000000000000..b78a83a36c6c --- /dev/null +++ b/games-board/holdingnuts/holdingnuts-0.0.5-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils cmake-utils games + +DESCRIPTION="An open source poker client and server" +HOMEPAGE="http://www.holdingnuts.net/" +SRC_URI="http://downloads.sourceforge.net/${PN}/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="alsa debug dedicated" + +RDEPEND=" + !dedicated? ( + dev-qt/qtcore:4 + dev-qt/qtgui:4 + alsa? ( >=media-libs/libsdl-1.2.10:0[alsa] ) + )" + +DEPEND="${RDEPEND} + >=dev-util/cmake-2.6.3" + +src_prepare() { + sed -i -e '/^Path/d' holdingnuts.desktop || die + epatch "${FILESDIR}"/${P}-wheel.patch # upstream patch (bug #307901) +} + +src_configure() { + local mycmakeargs="$(cmake-utils_use_enable alsa AUDIO) + $(cmake-utils_use_enable !dedicated CLIENT) + $(cmake-utils_use_enable debug DEBUG)" + + mycmakeargs="${mycmakeargs} + -DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX} + -DCMAKE_DATA_PATH=${GAMES_DATADIR}" + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + if ! use dedicated ; then + domenu ${PN}.desktop + doicon ${PN}.png + doman docs/${PN}.6 + fi + + dodoc ChangeLog docs/protocol_spec.txt + doman docs/${PN}-server.6 + + prepgamesdirs +} diff --git a/games-board/holdingnuts/metadata.xml b/games-board/holdingnuts/metadata.xml new file mode 100644 index 000000000000..f72870c0c28d --- /dev/null +++ b/games-board/holdingnuts/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> +</pkgmetadata> diff --git a/games-board/iagno/Manifest b/games-board/iagno/Manifest new file mode 100644 index 000000000000..97519fb7fa63 --- /dev/null +++ b/games-board/iagno/Manifest @@ -0,0 +1,2 @@ +DIST iagno-3.14.2.tar.xz 1855644 SHA256 7e8980dcbcb4dfdaaa050dd9376b86aaa487c048332aad9e52eb953cb1dab461 SHA512 4d09a697a68256a18ea41fd4e77dc821c97c9c6bfec07a1f32c821fe4949a6fcb881351e4db84a3ae0aafc69fc76f432ecd5bdbf7034cc34b66bbb7024895cbe WHIRLPOOL 83d0613d467d1f515f4483452b640ad6a6f36aa5a7b31ffc1644711d60e99ae2b1d0465755163906479e1daa45f8909aba3927214128ba0a99133bab33a8e225 +DIST iagno-3.16.1.tar.xz 1868964 SHA256 33f88afade4c2bdc6177a783bc0a6fbadd67f261c8f68ec752aec57344d7e45d SHA512 c0387567c8cb48721ec370852a51c9f97849fe3ac609763cdc07e6e0a70969e8cb0de44a2ae4c40f78856370bcafd600589b9e4453877aa8e0bb46f122d7cf3d WHIRLPOOL c6122854f76574ba72cca651fc0e7da722ec4a9aed574ffdab46621f70f3d2731368b8644e39e07542c344f782e58eb8c0ee7603ac8baea6c4b491079c102e4c diff --git a/games-board/iagno/iagno-3.14.2.ebuild b/games-board/iagno/iagno-3.14.2.ebuild new file mode 100644 index 000000000000..3be481049be4 --- /dev/null +++ b/games-board/iagno/iagno-3.14.2.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" +VALA_MIN_API_VERSION="0.24" + +inherit gnome-games vala + +DESCRIPTION="Dominate the board in a classic version of Reversi" +HOMEPAGE="https://wiki.gnome.org/Apps/Iagno" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="amd64 ~arm x86" +IUSE="" + +COMMON_DEPEND=" + >=dev-libs/glib-2.40:2 + >=gnome-base/librsvg-2.32.0 + >=media-libs/libcanberra-0.26[gtk3] + >=x11-libs/gtk+-3.12:3 +" +RDEPEND="${COMMON_DEPEND} + !<x11-themes/gnome-themes-standard-3.14 +" +DEPEND="${COMMON_DEPEND} + $(vala_depend) + app-text/yelp-tools + dev-util/appdata-tools + >=dev-util/intltool-0.50 + sys-devel/gettext + virtual/pkgconfig +" + +src_prepare() { + gnome-games_src_prepare + vala_src_prepare +} + +src_configure() { + gnome-games_src_configure APPDATA_VALIDATE=$(type -P true) +} diff --git a/games-board/iagno/iagno-3.16.1.ebuild b/games-board/iagno/iagno-3.16.1.ebuild new file mode 100644 index 000000000000..df514b4bedf6 --- /dev/null +++ b/games-board/iagno/iagno-3.16.1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" +VALA_MIN_API_VERSION="0.28" + +inherit gnome-games vala + +DESCRIPTION="Dominate the board in a classic version of Reversi" +HOMEPAGE="https://wiki.gnome.org/Apps/Iagno" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +COMMON_DEPEND=" + >=dev-libs/glib-2.40:2 + >=gnome-base/librsvg-2.32.0 + >=media-libs/libcanberra-0.26[gtk3] + >=x11-libs/gtk+-3.15:3 +" +RDEPEND="${COMMON_DEPEND} + !<x11-themes/gnome-themes-standard-3.14 +" +DEPEND="${COMMON_DEPEND} + $(vala_depend) + app-text/yelp-tools + dev-libs/appstream-glib + >=dev-util/intltool-0.50 + sys-devel/gettext + virtual/pkgconfig +" + +src_prepare() { + gnome-games_src_prepare + vala_src_prepare +} diff --git a/games-board/iagno/metadata.xml b/games-board/iagno/metadata.xml new file mode 100644 index 000000000000..da6fd63d0085 --- /dev/null +++ b/games-board/iagno/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +</pkgmetadata> diff --git a/games-board/kcheckers/Manifest b/games-board/kcheckers/Manifest new file mode 100644 index 000000000000..c2b7cb405066 --- /dev/null +++ b/games-board/kcheckers/Manifest @@ -0,0 +1 @@ +DIST kcheckers-0.8.1.tar.gz 81431 SHA256 444080f0554a1d65db32231ee18f9a662bfa6148a15cb006eba838c2463e7a2f SHA512 c5febbcc7f0362169879a29a159c86aa4f3d859ee3bebea243535ca07949366078406b87e5e5534586485601b92a79b621cef7ba96f2224acc5331e3624d1b73 WHIRLPOOL b040a382c6bfc09071c67cd89b0717f3287b3bc880b31988dec579f51cb716d67e7aaab7d640488152c570d6eb005d1e769e2dd300acc04919fd4365469ce3d9 diff --git a/games-board/kcheckers/kcheckers-0.8.1.ebuild b/games-board/kcheckers/kcheckers-0.8.1.ebuild new file mode 100644 index 000000000000..43d6e1a1cf21 --- /dev/null +++ b/games-board/kcheckers/kcheckers-0.8.1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils qt4-r2 games + +DESCRIPTION="Qt version of the classic boardgame checkers" +HOMEPAGE="http://qcheckers.sourceforge.net/" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ~ppc x86" +IUSE="" + +DEPEND="dev-qt/qtgui:4" + +src_prepare() { + sed -i \ + -e "s:/usr/local:${GAMES_DATADIR}:" \ + common.h || die + + sed -i \ + -e "s:PREFIX\"/share:\"${GAMES_DATADIR}:" \ + main.cc toplevel.cc || die +} + +src_configure() { + qt4-r2_src_configure +} + +src_install() { + dogamesbin kcheckers + + insinto "${GAMES_DATADIR}"/${PN} + doins -r i18n/* themes + + newicon icons/biglogo.png ${PN}.png + make_desktop_entry ${PN} KCheckers + + dodoc AUTHORS ChangeLog FAQ README TODO + prepgamesdirs +} diff --git a/games-board/kcheckers/metadata.xml b/games-board/kcheckers/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/kcheckers/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/knights/Manifest b/games-board/knights/Manifest new file mode 100644 index 000000000000..5266438559cc --- /dev/null +++ b/games-board/knights/Manifest @@ -0,0 +1 @@ +DIST knights-2.5.0.tar.bz2 3426822 SHA256 6567c4203c55ebe0ae6b5a25c852d7beef8b88d4154592437bc357797da5bd28 SHA512 3024fb9747c0b412e606db9262e9a547f51bfe0a5bd7e3de2952ba09da0186a45d5a21182e394b16d5905d036b94a17ed8b80c7d2c808f7ab907f4f4c6d9fa95 WHIRLPOOL 5cf2b98128898fb9be607c31e4c0df510dfa8c18e6bf00db2fa53c19005f64658894ed84c14d92ff70b1cb6cdb5d04a94cb2876791f10e90bb3fb9b35e054e6c diff --git a/games-board/knights/knights-2.5.0-r1.ebuild b/games-board/knights/knights-2.5.0-r1.ebuild new file mode 100644 index 000000000000..76a2610cf4c5 --- /dev/null +++ b/games-board/knights/knights-2.5.0-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +KDE_MINIMAL="4.9" +KDE_LINGUAS="bs ca ca@valencia cs da de el es et fi fr ga gl it km lt nb nds nl +nn pl pt pt_BR ru sr sr@ijekavian sr@ijekavianlatin sr@latin sv uk zh_TW" +KDE_HANDBOOK="optional" +inherit kde4-base + +DESCRIPTION="Simple chess board for KDE" +HOMEPAGE="http://kde-apps.org/content/show.php/Knights?content=122046" +SRC_URI="http://dl.dropbox.com/u/2888238/Knights/${P}.tar.bz2" + +LICENSE="GPL-3" +KEYWORDS="amd64 x86" +SLOT="4" +IUSE="debug" + +RDEPEND=" + $(add_kdeapps_dep libkdegames) +" +DEPEND="${RDEPEND} + sys-devel/gettext +" + +pkg_postinst() { + kde4-base_pkg_postinst + + elog "No chess engines are emerged by default! If you want a chess engine" + elog "to play with, you can emerge gnuchess or crafty." +} diff --git a/games-board/knights/metadata.xml b/games-board/knights/metadata.xml new file mode 100644 index 000000000000..3eb93fed81fd --- /dev/null +++ b/games-board/knights/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <herd>kde</herd> +</pkgmetadata> diff --git a/games-board/mah-jong/Manifest b/games-board/mah-jong/Manifest new file mode 100644 index 000000000000..27f02379f9d2 --- /dev/null +++ b/games-board/mah-jong/Manifest @@ -0,0 +1 @@ +DIST mj-1.14-src.tar.gz 414414 SHA256 976c9e0e11b78066cd74568992ff5382930711d7536bb11c9fa6877366c63dd6 SHA512 b4c631ce388041475b877cd4b413fda200932aea19212c00cb606d2ef0bb6a498fe12b7b52b04ef744b296c37c531bc44d9e35f9aed44edf89651580acde91e5 WHIRLPOOL 7a3550330dca726b333622902e2d7934ab8d99fac5a34ffa6676f28e14ee99b98196875d29bd06e102743f52c1e9e301997baac988d2fc93dd2daf8a173253d6 diff --git a/games-board/mah-jong/mah-jong-1.14.ebuild b/games-board/mah-jong/mah-jong-1.14.ebuild new file mode 100644 index 000000000000..f005ed67cc7d --- /dev/null +++ b/games-board/mah-jong/mah-jong-1.14.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils toolchain-funcs games + +MY_P="mj-${PV}-src" +DESCRIPTION="A networked Mah Jong program, together with a computer player" +HOMEPAGE="http://www.stevens-bradfield.com/MahJong/" +SRC_URI="http://mahjong.julianbradfield.org/Source/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +RDEPEND="x11-libs/gtk+:2" +DEPEND="${RDEPEND} + dev-lang/perl" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + sed -i -e '/^.TH/ s/1/6/' xmj.man || die + sed -i \ + -e "/^DESTDIR =/ s:=.*:= ${D}:" \ + -e "/^BINDIR =/ s:=.*:= ${GAMES_BINDIR}:" \ + -e '/^MANDIR =/ s:man/man1:/usr/share/man/man6:' \ + -e '/^MANSUFFIX =/ s:1:6:' \ + -e "/^CC =/ s:gcc:$(tc-getCC):" \ + -e "/^CFLAGS =/ s:=:= ${CFLAGS}:" \ + -e "/^LDLIBS =/ s:$:${LDFLAGS}:" \ + -e '/^INSTPGMFLAGS =/ s:-s::' \ + -e '/^CDEBUGFLAGS =/d' \ + -e "/^TILESETPATH=/ s:NULL:\"${GAMES_DATADIR}/${PN}/\":" Makefile || die +} + +src_install() { + emake install install.man + insinto "${GAMES_DATADIR}/${PN}" + doins -r fallbacktiles/ tiles-numbered/ tiles-small/ + newicon tiles-v1/tongE.xpm ${PN}.xpm + make_desktop_entry xmj Mah-Jong ${PN} + dodoc CHANGES ChangeLog *.txt + prepgamesdirs +} diff --git a/games-board/mah-jong/metadata.xml b/games-board/mah-jong/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/mah-jong/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/maitretarot/Manifest b/games-board/maitretarot/Manifest new file mode 100644 index 000000000000..080a5bb6d983 --- /dev/null +++ b/games-board/maitretarot/Manifest @@ -0,0 +1 @@ +DIST maitretarot-0.1.98.tar.bz2 92050 SHA256 dd791155c40ffbf87171938f95c882ab1d123046e6b3f8dfdc8f1750d5ed7f53 SHA512 99cfe8e99b2214f729d6dc175064f827a258d008c2f67a16a77bbf18ebf73da87fae4d58b9597b582cc450762f2cc497cded26d84bb4ce3e7c25f9891bb72e03 WHIRLPOOL ff1c2464adf96b68a143bad2f5058697744bd4697952818b88a502105a8227a2d016cef1db4ae2908d5ea6bfcff86005a59700fcfdb8fbdf0dfb94c294ccfe62 diff --git a/games-board/maitretarot/maitretarot-0.1.98.ebuild b/games-board/maitretarot/maitretarot-0.1.98.ebuild new file mode 100644 index 000000000000..631fc95ea9bb --- /dev/null +++ b/games-board/maitretarot/maitretarot-0.1.98.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit games + +DESCRIPTION="server for the french tarot game maitretarot" +HOMEPAGE="http://www.nongnu.org/maitretarot/" +SRC_URI="http://savannah.nongnu.org/download/maitretarot/${PN}.pkg/${PV}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="dev-libs/glib:2 + dev-libs/libxml2 + dev-games/libmaitretarot" +RDEPEND=${DEPEND} + +src_configure() { + egamesconf \ + --with-default-config-file="${GAMES_SYSCONFDIR}/maitretarotrc.xml" +} + +src_install() { + default + prepgamesdirs +} diff --git a/games-board/maitretarot/metadata.xml b/games-board/maitretarot/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/maitretarot/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/megamek/Manifest b/games-board/megamek/Manifest new file mode 100644 index 000000000000..6f6b4394e72c --- /dev/null +++ b/games-board/megamek/Manifest @@ -0,0 +1 @@ +DIST MegaMek-v0.34.10.zip 16677286 SHA256 14aaf88908798c784f47f75465a52bff9ff8c9cf261476d1ef6ef8a50303865c SHA512 943f6ed4f4d57197092a7aa09637f60827f23181a7b8b0991907fcc62109b471ea2ce53816a79dfcad9d8da65c9514be3190e924d9bf2b17aacf84fc1fa6e037 WHIRLPOOL 10d5c2066784c7722c99db1a192358554bd68979272a58f12849028902aaad3f23ca0024559c73e7966b2e441a54a1df9f159ad14f94679c60c3379bcc3aec5e diff --git a/games-board/megamek/megamek-0.34.10.ebuild b/games-board/megamek/megamek-0.34.10.ebuild new file mode 100644 index 000000000000..a695a34a8db5 --- /dev/null +++ b/games-board/megamek/megamek-0.34.10.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils java-pkg-2 java-ant-2 games + +DESCRIPTION="an unofficial, online version of the Classic BattleTech board game" +HOMEPAGE="http://megamek.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/MegaMek-v${PV}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND=">=virtual/jdk-1.5 + app-arch/unzip" +RDEPEND=">=virtual/jre-1.5" + +S=${WORKDIR} + +pkg_setup() { + games_pkg_setup + java-pkg-2_pkg_setup +} + +src_prepare() { + rm -v *.jar || die + edos2unix startup.sh + sed -i \ + -e "s:XmX:Xmx:" \ + -e "s:/usr/share/java:${GAMES_DATADIR}/${PN}:" \ + -e "s:/usr/share/MegaMek:${GAMES_DATADIR}/${PN}:" \ + startup.sh || die "sed failed" + java-pkg-2_src_prepare +} + +src_compile() { + eant +} + +src_install() { + newgamesbin startup.sh ${PN} + insinto "${GAMES_DATADIR}/${PN}" + doins -r data docs l10n lib mmconf *.jar readme* + dodoc HACKING readme.txt + make_desktop_entry ${PN} MegaMek /usr/share/pixmaps/${PN}.gif + newicon data/images/misc/megamek-icon.gif ${PN}.gif + prepgamesdirs +} diff --git a/games-board/megamek/metadata.xml b/games-board/megamek/metadata.xml new file mode 100644 index 000000000000..34598d2fac55 --- /dev/null +++ b/games-board/megamek/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">megamek</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/metadata.xml b/games-board/metadata.xml new file mode 100644 index 000000000000..fb63e54520b5 --- /dev/null +++ b/games-board/metadata.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<catmetadata> + <longdescription lang="en"> + The games-board category contains board games. + </longdescription> + <longdescription lang="de"> + Die Kategorie games-board enthält Brettspiele. + </longdescription> + <longdescription lang="es"> + La categoría games-board contiene juegos de tablero. + </longdescription> + <longdescription lang="ja"> + games-boardカテゴリーにはボード・ゲームが含まれています。 + </longdescription> + <longdescription lang="nl"> + De games-board categorie bevat bordspellen. + </longdescription> + <longdescription lang="vi"> + Nhóm games-board chứa các trò chơi dạng bảng. + </longdescription> + <longdescription lang="it"> + La categoria games-board contiene giochi da tavolo. + </longdescription> + <longdescription lang="pt"> + A categoria games-board contém jogos de tabuleiro. + </longdescription> + <longdescription lang="pl"> + Kategoria games-board zawiera gry planszowe. + </longdescription> +</catmetadata> + diff --git a/games-board/mt_dolphin_ia/Manifest b/games-board/mt_dolphin_ia/Manifest new file mode 100644 index 000000000000..5ee4b83a755e --- /dev/null +++ b/games-board/mt_dolphin_ia/Manifest @@ -0,0 +1 @@ +DIST mt_dolphin_ia-0.1.98.tar.bz2 92625 SHA256 3b5e4a998cbc999fafffcdc6eaa45750e3edba9dd233b839f8cc4dfe2b71a9d0 SHA512 17ba198d344bb8ef499d6844e949155a18f8942266392150d77e5c53dc0ee32bcf6a297153f85d7a964b02de8a82f3d156e899f4d25ef1940dbc794d9b44979c WHIRLPOOL e45b2c1302d59d196857cf779f559c9cac4a1637c0d98fb0dfccd8dbdb5796370f9a006209b8855035fa8b1ac77664305425497385824b4273da293624b97a2e diff --git a/games-board/mt_dolphin_ia/metadata.xml b/games-board/mt_dolphin_ia/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/mt_dolphin_ia/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/mt_dolphin_ia/mt_dolphin_ia-0.1.98.ebuild b/games-board/mt_dolphin_ia/mt_dolphin_ia-0.1.98.ebuild new file mode 100644 index 000000000000..6d276408cc52 --- /dev/null +++ b/games-board/mt_dolphin_ia/mt_dolphin_ia-0.1.98.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit games + +DESCRIPTION="client for the french tarot game maitretarot" +HOMEPAGE="http://www.nongnu.org/maitretarot/" +SRC_URI="http://savannah.nongnu.org/download/maitretarot/${PN}.pkg/${PV}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="dev-libs/glib:2 + dev-libs/libxml2 + dev-games/libmaitretarot + dev-games/libmt_client" +RDEPEND=${DEPEND} + +src_install() { + default + prepgamesdirs +} diff --git a/games-board/mt_gtk_client/Manifest b/games-board/mt_gtk_client/Manifest new file mode 100644 index 000000000000..bc1c2f0affef --- /dev/null +++ b/games-board/mt_gtk_client/Manifest @@ -0,0 +1 @@ +DIST mt_gtk_client-0.1.98.tar.bz2 181458 SHA256 094539edc591d470a85f742fabf077f1054ae0362424899a1da25cde48f2de16 SHA512 8d43baf29a100b37db0f4f8b3f417c8253b6c243b7ead18efefbc3706361fbc652abf808c0b104dec5573a769eaa2d84903ad0ab602c738c139c86b8c36bf401 WHIRLPOOL 18f9517a0f733adebee601a2015ff1d40a2bda34fc8ff61f74c547106f3b545efa1646684341e26076f53b1f44fdae734baadb040d5f4a35b82c1c89a22e22ac diff --git a/games-board/mt_gtk_client/metadata.xml b/games-board/mt_gtk_client/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/mt_gtk_client/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/mt_gtk_client/mt_gtk_client-0.1.98.ebuild b/games-board/mt_gtk_client/mt_gtk_client-0.1.98.ebuild new file mode 100644 index 000000000000..191093914777 --- /dev/null +++ b/games-board/mt_gtk_client/mt_gtk_client-0.1.98.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit games + +DESCRIPTION="client for the french tarot game maitretarot" +HOMEPAGE="http://www.nongnu.org/maitretarot/" +SRC_URI="http://savannah.nongnu.org/download/maitretarot/${PN}.pkg/${PV}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="gnome" + +DEPEND="dev-libs/glib:2 + dev-libs/libxml2 + dev-games/libmaitretarot + dev-games/libmt_client + gnome-base/libgnomeui + x11-libs/gtk+:2" +RDEPEND="${DEPEND} + dev-games/cardpics" + +src_configure() { + egamesconf $(use_enable gnome gnome2) +} + +src_install() { + default + if [[ -d "${D}"/${GAMES_DATADIR}/locale ]] ; then + mv "${D}"/${GAMES_DATADIR}/locale "${D}"/usr/share/ || die + fi + prepgamesdirs +} diff --git a/games-board/mt_ncurses_client/Manifest b/games-board/mt_ncurses_client/Manifest new file mode 100644 index 000000000000..ac755a76ddcf --- /dev/null +++ b/games-board/mt_ncurses_client/Manifest @@ -0,0 +1 @@ +DIST mt_ncurses_client-0.1.98.tar.bz2 97156 SHA256 df6265ca4f36ef2c460d826f2eeb89e3feaeb3958695cbfd78c259b1a20013a5 SHA512 cb2c8d23e3e2c536d24fb9beacb35577229eae016998fb7c57204284336a53a2378ce0d7b940bec7662766f679502c7d9cbfe4118235300072e648b83c5244b6 WHIRLPOOL ae937bb76b6b3e5f0da3ead099cf1da79e8b3ac191ad128bce4828e75da7d369e0a6ea5b654d1ba8b87b4151dd5c7cc95950b748853bfcdc517e1892091364ac diff --git a/games-board/mt_ncurses_client/metadata.xml b/games-board/mt_ncurses_client/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/mt_ncurses_client/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/mt_ncurses_client/mt_ncurses_client-0.1.98.ebuild b/games-board/mt_ncurses_client/mt_ncurses_client-0.1.98.ebuild new file mode 100644 index 000000000000..6341f8c3fd2e --- /dev/null +++ b/games-board/mt_ncurses_client/mt_ncurses_client-0.1.98.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit games + +DESCRIPTION="client for the french tarot game maitretarot" +HOMEPAGE="http://www.nongnu.org/maitretarot/" +SRC_URI="http://savannah.nongnu.org/download/maitretarot/${PN}.pkg/${PV}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="dev-libs/glib:2 + dev-libs/libxml2 + dev-games/libmaitretarot + dev-games/libmt_client + sys-libs/ncurses" +RDEPEND=${DEPEND} + +src_install() { + default + prepgamesdirs +} diff --git a/games-board/natch/Manifest b/games-board/natch/Manifest new file mode 100644 index 000000000000..fcaf89455048 --- /dev/null +++ b/games-board/natch/Manifest @@ -0,0 +1 @@ +DIST Natch-2.4.tar.gz 196621 SHA256 866a5df290b1a1b6dd79c04d1239105fab4ff1fcd56e242655355f2ca04da47c SHA512 390b1cb295f6d8f4d5ec27abad9aae0c06ea1b4bb9c29dcf5bf74f515ac4a90926a657fe3dd3cc91233cf772d2f072cdc34a043e5e294dc668ca619b21535d81 WHIRLPOOL 5d61f019fb54711230fe2329de685cca7eaec289b53d1c40b3d1c116f6fbc04162266734ba57fc9ddde7ade99f1d9fe5f9d06c36dec7721ade6c127c494a90ef diff --git a/games-board/natch/files/natch-2.4-format.patch b/games-board/natch/files/natch-2.4-format.patch new file mode 100644 index 000000000000..cc2b3207c3b0 --- /dev/null +++ b/games-board/natch/files/natch-2.4-format.patch @@ -0,0 +1,29 @@ +--- src/pcpjtool.c.old 2014-10-17 08:38:21.547119790 +0200 ++++ src/pcpjtool.c 2014-10-17 08:42:04.949035648 +0200 +@@ -45,7 +45,7 @@ + int nb_libre = 0; + const char* separation_line = "+---+---+---+---+---+---+---+---+\n"; + +- fprintf( MainFD, separation_line ); ++ fprintf( MainFD, "%s", separation_line ); + for (i=7; i>=0; i--) + { + fputc( '|', MainFD ); +@@ -94,7 +94,7 @@ + fputc( '|', MainFD ); + } + fputc('\n', MainFD); +- fprintf( MainFD, separation_line ); ++ fprintf( MainFD, "%s", separation_line ); + if (nb_libre) + { + forsythe[nb_forsythe] = '0' + nb_libre; +@@ -224,7 +224,7 @@ + { + char s[12]; + +- fprintf(MainFD, move_to_string(coup, s)); ++ fprintf(MainFD, "%s", move_to_string(coup, s)); + } + + void diff --git a/games-board/natch/metadata.xml b/games-board/natch/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/natch/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/natch/natch-2.4.ebuild b/games-board/natch/natch-2.4.ebuild new file mode 100644 index 000000000000..0843d1c461ea --- /dev/null +++ b/games-board/natch/natch-2.4.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +MY_P="Natch-${PV}" +DESCRIPTION="A program to solve chess proof games" +HOMEPAGE="http://natch.free.fr/Natch.html" +SRC_URI="http://natch.free.fr/Natch/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +DEPEND="sys-libs/ncurses" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${P}-format.patch +} + +src_install() { + newgamesbin src/Natch natch + dodoc AUTHORS ChangeLog NEWS README THANKS example.txt + prepgamesdirs +} diff --git a/games-board/openyahtzee/Manifest b/games-board/openyahtzee/Manifest new file mode 100644 index 000000000000..1a1267e26f1b --- /dev/null +++ b/games-board/openyahtzee/Manifest @@ -0,0 +1 @@ +DIST openyahtzee-1.9.1.tar.bz2 159149 SHA256 aa553a248d30ba259abb8dee735d5728bfdbb8d4705805bc716453245f1cb0a0 SHA512 2833a7085bb03d157b58a5e3a95c03b8a51cc8b527aec204188c8f773c492f4822655ec15dbedd4330c25bc4382132694ae7d3935dfb27756e859149ab66ef59 WHIRLPOOL 8c9986f163576d2d5ab31ea4083139645513c6d3e1a171cba9cb7030186a2f022984e8a9925f7524e2b25b9c7ad3a989eb39bb76b13642cef848e66daabfa86d diff --git a/games-board/openyahtzee/metadata.xml b/games-board/openyahtzee/metadata.xml new file mode 100644 index 000000000000..ec3a69c721bb --- /dev/null +++ b/games-board/openyahtzee/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription lang="en"> +Open Yhatzee is an open-source (free) version of the classic dice game Yahtzee. +</longdescription> + <upstream> + <remote-id type="sourceforge">openyahtzee</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/openyahtzee/openyahtzee-1.9.1.ebuild b/games-board/openyahtzee/openyahtzee-1.9.1.ebuild new file mode 100644 index 000000000000..3fecc1afb4ec --- /dev/null +++ b/games-board/openyahtzee/openyahtzee-1.9.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +WX_GTK_VER="2.8" +inherit wxwidgets toolchain-funcs versionator games + +DESCRIPTION="A full-featured wxWidgets version of the classic dice game Yahtzee" +HOMEPAGE="http://openyahtzee.sourceforge.net/" +SRC_URI="mirror://sourceforge/openyahtzee/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +RDEPEND="x11-libs/wxGTK:2.8[X]" +DEPEND="${RDEPEND} + >=sys-devel/gcc-4.6 + dev-libs/boost" + +pkg_pretend() { + local ver=4.6 + local msg="You need at least GCC ${ver}.x for C++11 range-based 'for' and nullptr support." + if ! version_is_at_least ${ver} $(gcc-version); then + eerror ${msg} + die ${msg} + fi +} + +src_configure() { + egamesconf --datadir=/usr/share +} + +src_install() { + default + prepgamesdirs +} diff --git a/games-board/pasang-emas/Manifest b/games-board/pasang-emas/Manifest new file mode 100644 index 000000000000..f47a319ec788 --- /dev/null +++ b/games-board/pasang-emas/Manifest @@ -0,0 +1,4 @@ +DIST pasang-emas-3.1.0.tar.bz2 3030528 SHA256 a36b63adb496dbe343adac2063164fa1377e2295b0bc78f3dd293f8d946acfe5 SHA512 c1f7dc259100e2fe643ac0a5d766dad10435145b3fd76e698335817bc30b7a55a5816df920fc3c86fb7b533661b1dd179b20ad01586be914bb3a9cad9be29a65 WHIRLPOOL d303d3c7cef997da3ae7d05e53b97e79be4467c4466cbe52bad95575a4a3a2be0ee7aa183702444217f5247879d2b2b5e122a23b0da0b54d4348237b345a95b1 +DIST pasang-emas-themes-1.0.tar.bz2 1190560 SHA256 5be65e641a81109794300b1dda4f78dcbf7287747aaa5b2a0fcadfe2991affe9 SHA512 8b82ce6ba588b83ed4a0d70d8aab256e2dae16143e64ca8a1fc25ffe61f001cdbc71d62d8eb42d9af4aeb63d6584f47b513b0ce1840d9b9f49d9b1b635eb4043 WHIRLPOOL dc05f0c1a096347446cf9272cd8a93f7ea30c70569b49c311fe1352ecf8ed6a304193bea203200696d12c83e1466615dd715a59360157542ab0348228bc7c7e5 +DIST pet-fragrance.tar.bz2 1019437 SHA256 3656277c8ef526f7b668f97567a772a2c2107dc7d46ef02a11d357e5e96b3f46 SHA512 2af8908848cc20962c70ef573156b208dbc33032529035ae6f0b5760f5eb1b718582dc823340587e29b7e66a2d3c89ba113dedbf299c0bef639f28329ff278f2 WHIRLPOOL 84094b4663307d1df73d7bd6fcc213d67b6edc63729362d36c7a2c1cfc85f9eca25a905c1964bf470d7b47234dd213ee2fe576d8b3a2cf8aa158e1dc1eabada1 +DIST pet-marble.tar.bz2 631999 SHA256 221cd4d4030e12d5e51c2f17f26f38ed81aafcad3bbafb07c85f4ebd88f393ce SHA512 3ecaeaddb12e23fbd90e4d158a47dffb73b756bf9f5263d93c5f6aa21d290be3d91885de7200cdd3a45718b49ac19cd7073ed8bf83697af6bff64759f810122e WHIRLPOOL 3f9abac8e111a7d53a9e306cb848d315cc711614c82950b999c6f044344923f1692b774a439f26d2f747b6ff6dd320b7b64d860579c5ca627c4593392c772bdb diff --git a/games-board/pasang-emas/files/pasang-emas-3.1.0-build.patch b/games-board/pasang-emas/files/pasang-emas-3.1.0-build.patch new file mode 100644 index 000000000000..93703d8e6d1c --- /dev/null +++ b/games-board/pasang-emas/files/pasang-emas-3.1.0-build.patch @@ -0,0 +1,42 @@ +--- pasang-emas-2.1.0-orig/src/Makefile.in ++++ pasang-emas-2.1.0/src/Makefile.in +@@ -221,11 +221,11 @@ + pasang.vapi \ + pasang.h + +-LDADD = libpasang.a $(DEPS_LIBS) ++LDADD = libpasang.a $(DEPS_LIBS) -lm + INCLUDES = $(DEPS_CFLAGS) \ + --include ../config.h \ + -DLOCALEDIR=\"$(localedir)\" \ +- -DPIXMAPSDIR=\"$(datadir)/pixmaps\" \ ++ -DPIXMAPSDIR=\"/usr/share/pixmaps\" \ + -DDATADIR=\"$(datadir)\" \ + -DTHEME_ROOT_DIR=\"$(datadir)/$(PACKAGE_TARNAME)/themes\" \ + -DUSER_THEME_ROOT_DIR=\".$(PACKAGE_TARNAME)/themes\" \ +--- pasang-emas-2.1.0-orig/data/Makefile.in ++++ pasang-emas-2.1.0/data/Makefile.in +@@ -229,10 +229,10 @@ + top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ + SUBDIRS = kayu +-desktopdir = $(datadir)/applications ++desktopdir = /usr/share/applications + desktop_in_files = pasang-emas.desktop.in + desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) +-appicondir = $(datadir)/pixmaps ++appicondir = /usr/share/pixmaps + appicon_DATA = \ + pasang-emas.png \ + pasang-emas-flash.png +--- pasang-emas-2.1.0-orig/po/Makefile.in.in ++++ pasang-emas-2.1.0/po/Makefile.in.in +@@ -34,7 +34,7 @@ + datarootdir = @datarootdir@ + libdir = @libdir@ + DATADIRNAME = @DATADIRNAME@ +-itlocaledir = $(prefix)/$(DATADIRNAME)/locale ++itlocaledir = /usr/share/locale + subdir = po + install_sh = @install_sh@ + # Automake >= 1.8 provides @mkdir_p@. diff --git a/games-board/pasang-emas/metadata.xml b/games-board/pasang-emas/metadata.xml new file mode 100644 index 000000000000..96bb4cea5ac1 --- /dev/null +++ b/games-board/pasang-emas/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name="extras">Install some extra themes</flag> + </use> + <upstream> + <remote-id type="sourceforge">pasang-emas</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/pasang-emas/pasang-emas-3.1.0.ebuild b/games-board/pasang-emas/pasang-emas-3.1.0.ebuild new file mode 100644 index 000000000000..6684951c6610 --- /dev/null +++ b/games-board/pasang-emas/pasang-emas-3.1.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils gnome2-utils games + +DESCRIPTION="A traditional game of Brunei" +HOMEPAGE="http://pasang-emas.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2 + extras? ( mirror://sourceforge/${PN}/pasang-emas-themes-1.0.tar.bz2 + mirror://sourceforge/${PN}/pet-marble.tar.bz2 + mirror://sourceforge/${PN}/pet-fragrance.tar.bz2 )" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="extras nls" + +RDEPEND="app-text/gnome-doc-utils + >=x11-libs/gtk+-2.18.2:2 + virtual/libintl" +DEPEND="${RDEPEND} + app-text/rarian + nls? ( sys-devel/gettext )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-build.patch + sed -i \ + -e '/Encoding/d' \ + -e '/Icon/s:\.png::' \ + data/pasang-emas.desktop.in || die + gnome2_omf_fix +} + +src_configure() { + egamesconf \ + --localedir=/usr/share/locale \ + --with-omf-dir=/usr/share/omf \ + --with-help-dir=/usr/share/gnome/help \ + $(use_enable nls) +} + +src_install() { + default + if use extras; then + insinto "${GAMES_DATADIR}/${PN}"/themes + doins -r \ + "${WORKDIR}"/marble \ + "${WORKDIR}"/pasang-emas-themes-1.0/{conteng,kaca} \ + "${WORKDIR}"/fragrance + fi + use nls || rm -rf "${D}"usr/share/locale + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_scrollkeeper_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_scrollkeeper_update +} + +pkg_postrm() { + gnome2_scrollkeeper_update +} diff --git a/games-board/peg-e/Manifest b/games-board/peg-e/Manifest new file mode 100644 index 000000000000..84ed320227fa --- /dev/null +++ b/games-board/peg-e/Manifest @@ -0,0 +1 @@ +DIST peg-e-1.1.2-src.tar.bz2 151224 SHA256 2eefce91eea0f3a412fa79193ed5f66b25d5eb86b8e35e58c3a4f3b62e7cf59d SHA512 d4a09dfb528cfb46222a9ee788de88b4804762125a9dc13203be29a6ec26d01f23249ebbcd25bfe207ab8c40d8bce060fc2f7f131bb1e5b263e19b97852cee53 WHIRLPOOL f7a4c383853712485a6b1ccd96af60d5cf4f29e59603bea93e845d72d19819665ced9e119b8dd7304723e353feb11f67a7c79e8250e6728ac4201d3acfd03911 diff --git a/games-board/peg-e/metadata.xml b/games-board/peg-e/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/peg-e/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/peg-e/peg-e-1.1.2.ebuild b/games-board/peg-e/peg-e-1.1.2.ebuild new file mode 100644 index 000000000000..404b1133d4a7 --- /dev/null +++ b/games-board/peg-e/peg-e-1.1.2.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils gnome2-utils qt4-r2 games + +DESCRIPTION="A peg solitaire game" +HOMEPAGE="http://gottcode.org/peg-e/" +SRC_URI="http://gottcode.org/peg-e/${P}-src.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="dev-qt/qtcore:4 + dev-qt/qtgui:4" +DEPEND="${RDEPEND}" + +src_configure() { + eqmake4 +} + +src_install() { + dogamesbin ${PN} + doicon -s 48 icons/hicolor/48x48/apps/${PN}.png + domenu icons/${PN}.desktop + dodoc CREDITS ChangeLog + 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/phalanx/Manifest b/games-board/phalanx/Manifest new file mode 100644 index 000000000000..b6752f197b53 --- /dev/null +++ b/games-board/phalanx/Manifest @@ -0,0 +1 @@ +DIST Phalanx-XXII.tar.gz 356831 SHA256 1ec5e8e5f71e199963796462086a6e9a0d8856b7fd4b83324a30a35c25677082 SHA512 e959556bb29eb2178dbf77c656d6c6520a8568e93e03350c5141bee8808a04d0a0c1050a3db53b1fef4a7b6e6b724272700e52feb6c5d7f8308cebca91c51d67 WHIRLPOOL e634d7631831e2043586f3bffca1ca7ffd55084b6e95a655a64297aa53e88c280c54bfe5123e7008e00ceb979ac7573a2dbd7e9a5d12b4d68277f5ca72f3c7f4 diff --git a/games-board/phalanx/metadata.xml b/games-board/phalanx/metadata.xml new file mode 100644 index 000000000000..59fa5463a179 --- /dev/null +++ b/games-board/phalanx/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription lang="en"> +This is the Phalanx chess engine. Phalanx's playing style is quite human-like; +when it plays at full strength, it may be compared to a intermediate-to-strong +player; beginners will be right at home with it, too. +</longdescription> + <upstream> + <remote-id type="sourceforge">phalanx</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/phalanx/phalanx-22.ebuild b/games-board/phalanx/phalanx-22.ebuild new file mode 100644 index 000000000000..4783fb4b3ac6 --- /dev/null +++ b/games-board/phalanx/phalanx-22.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit toolchain-funcs games + +MY_PN="Phalanx" +MY_PV="XXII" +MY_P=${MY_PN}-${MY_PV} + +DESCRIPTION="A chess engine suitable for beginner and intermediate players" +HOMEPAGE="http://phalanx.sourceforge.net/" +SRC_URI="mirror://sourceforge/phalanx/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +S=${WORKDIR}/${MY_P} + +src_compile() { + # configure is not used in the project; confs are in Makefile, + # and here we override them: + local define="-DGNUFUN" myvar + for myvar in "PBOOK" "SBOOK" "LEARN" ; do + define="${define} -D${myvar}_DIR=\"\\\"${GAMES_DATADIR}/${PN}\\\"\"" + done + emake \ + DEFINES="${define}" \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" +} + +src_install() { + dogamesbin phalanx + insinto "${GAMES_DATADIR}"/${PN} + doins pbook.phalanx sbook.phalanx learn.phalanx + dodoc HISTORY README + prepgamesdirs +} diff --git a/games-board/pioneers/Manifest b/games-board/pioneers/Manifest new file mode 100644 index 000000000000..f894de727f31 --- /dev/null +++ b/games-board/pioneers/Manifest @@ -0,0 +1 @@ +DIST pioneers-15.3.tar.gz 4154470 SHA256 69afa51b71646565536b571b0f89786d3a7616965265f196fd51656b51381a89 SHA512 57aa8bc48019c87a683a4728d28d56f6bd755a0566922dddb4de825904820d1204f893e73fd13465fcec63cecb4a5735a90338f6ff915b7f17113dc0f1e834c1 WHIRLPOOL d9f313bde1b8e1042031784905f3dd3ad133da5b3e9096e147b74d75196875615a0b52053fdd73c615c006ed40f3019b30b030e1882e193fc2335fdc3914e8b1 diff --git a/games-board/pioneers/metadata.xml b/games-board/pioneers/metadata.xml new file mode 100644 index 000000000000..fd23dc88c4b9 --- /dev/null +++ b/games-board/pioneers/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription> + Pio (Pioneers) is a clone of the board game The Settlers of Catan. +</longdescription> + <use> + <flag name="help">Enable gnome ingame help via scrollkeeper</flag> + </use> + <upstream> + <remote-id type="sourceforge">pio</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/pioneers/pioneers-15.3.ebuild b/games-board/pioneers/pioneers-15.3.ebuild new file mode 100644 index 000000000000..7641839e26ad --- /dev/null +++ b/games-board/pioneers/pioneers-15.3.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils gnome-games + +DESCRIPTION="A clone of the popular board game The Settlers of Catan" +HOMEPAGE="http://pio.sourceforge.net/" +SRC_URI="mirror://sourceforge/pio/${P}.tar.gz" + +LICENSE="GPL-2 CC-BY-SA-4.0" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="dedicated help nls" + +# dev-util/gob only for autoreconf +RDEPEND=">=dev-libs/glib-2.26:2 + !dedicated? ( + >=x11-libs/gtk+-3.4:3 + >=x11-libs/libnotify-0.7.4 + help? ( + app-text/rarian + >=gnome-base/libgnome-2.10 + ) + ) + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + dev-util/gob:2 + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +src_prepare() { + gnome2_src_prepare +} + +src_configure() { + gnome-games_src_configure \ + $(use_enable nls) \ + $(use_enable help) \ + --includedir=/usr/include \ + $(use_with !dedicated gtk) +} + +src_install() { + DOCS='AUTHORS ChangeLog README TODO NEWS' \ + gnome2_src_install scrollkeeper_localstate_dir="${ED%/}"/var/lib/scrollkeeper/ + prepgamesdirs +} diff --git a/games-board/pokerth/Manifest b/games-board/pokerth/Manifest new file mode 100644 index 000000000000..4934c75da673 --- /dev/null +++ b/games-board/pokerth/Manifest @@ -0,0 +1 @@ +DIST PokerTH-1.1.1-src.tar.bz2 19326922 SHA256 afe6d3887d2fdf92fd6d89ee2951d3b14a0d43b70dba858d32d41214a5357388 SHA512 bd822d15747d94b67657ea2fd0b9c8c1bdad0031a6eae30380217387a702e5f648d6f612b1bff0355c3c301ecaf47ca9d635a526e575f1bc1c5f88e38a7f73c1 WHIRLPOOL 64fe03bbd2a4511c4d8c276cb0ee4a8f5913fe959a389578436098bd0546813d2bc47cb3ae1bcac4124a7bb843894bfce91c5e526cc66eb6912f60f98312f841 diff --git a/games-board/pokerth/files/pokerth-1.1.1-underlinking.patch b/games-board/pokerth/files/pokerth-1.1.1-underlinking.patch new file mode 100644 index 000000000000..397fb7d6c1bc --- /dev/null +++ b/games-board/pokerth/files/pokerth-1.1.1-underlinking.patch @@ -0,0 +1,20 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Thu Aug 16 22:25:12 UTC 2012 +Subject: build system + +fix compilation for linkers that don't permit underlinking +reorder linker line to fix issues with as-needed + +--- pokerth_server.pro ++++ pokerth_server.pro +@@ -114,8 +114,8 @@ + LIBS += -lpokerth_lib \ + -lpokerth_db \ + -lpokerth_protocol \ +- -lcurl \ +- -lircclient ++ -lircclient \ ++ $$system(pkg-config --libs --static libcurl) + + win32 { + DEFINES += CURL_STATICLIB diff --git a/games-board/pokerth/metadata.xml b/games-board/pokerth/metadata.xml new file mode 100644 index 000000000000..9a9ac85b756c --- /dev/null +++ b/games-board/pokerth/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">pokerth</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/pokerth/pokerth-1.1.1.ebuild b/games-board/pokerth/pokerth-1.1.1.ebuild new file mode 100644 index 000000000000..d12b3d884d8a --- /dev/null +++ b/games-board/pokerth/pokerth-1.1.1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit flag-o-matic eutils qt4-r2 games + +MY_P="PokerTH-${PV}-src" +DESCRIPTION="Texas Hold'em poker game" +HOMEPAGE="http://www.pokerth.net/" +SRC_URI="mirror://sourceforge/pokerth/${MY_P}.tar.bz2" + +LICENSE="AGPL-3 GPL-1 GPL-2 GPL-3 BitstreamVera public-domain" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="dedicated" + +RDEPEND="dev-db/sqlite:3 + dev-libs/boost:=[threads(+)] + dev-libs/protobuf + dev-libs/libgcrypt:0 + dev-libs/tinyxml[stl] + amd64? ( net-libs/libircclient ) + ppc? ( >=net-libs/libircclient-1.6-r2 ) + x86? ( net-libs/libircclient ) + >=net-misc/curl-7.16 + dev-qt/qtcore:4 + virtual/gsasl + !dedicated? ( + media-libs/libsdl:0 + media-libs/sdl-mixer[mod,vorbis] + dev-qt/qtgui:4 + )" +DEPEND="${RDEPEND} + !dedicated? ( dev-qt/qtsql:4 ) + virtual/pkgconfig" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + if use dedicated ; then + sed -i \ + -e 's/pokerth_game.pro//' \ + pokerth.pro || die + fi + + sed -i \ + -e '/no_dead_strip_inits_and_terms/d' \ + *pro || die + + #epatch "${FILESDIR}"/${P}-underlinking.patch +} + +src_configure() { + eqmake4 +} + +src_install() { + dogamesbin bin/pokerth_server + if ! use dedicated ; then + dogamesbin ${PN} + insinto "${GAMES_DATADIR}/${PN}" + doins -r data + domenu ${PN}.desktop + doicon ${PN}.png + fi + doman docs/pokerth.1 + dodoc ChangeLog TODO docs/{gui_styling,server_setup}_howto.txt + prepgamesdirs +} diff --git a/games-board/pouetchess/Manifest b/games-board/pouetchess/Manifest new file mode 100644 index 000000000000..50b4d832e6ac --- /dev/null +++ b/games-board/pouetchess/Manifest @@ -0,0 +1 @@ +DIST pouetchess_src_0.2.0.tar.gz 1055338 SHA256 fe966ff1b0aa2dd6d0ca2b62692f5b788e3a286050a6a374e58ca0612f68b2ef SHA512 20d9b2edc3e3998716eddd38b82226f5c1298b9bf5cabc56a545bee602ce3e7a9106f130265f2b0d31ee56d728da2cc54a79623faa6841732cde0d7d94c33acf WHIRLPOOL d18b69de08fc4b45adbe924e2f859cd8bb9e84f23c02a60c214f3f9823d02152c7c5d073ed85574267558968ce03721485c195bdbe41ccb890f5e3efa438cd5c diff --git a/games-board/pouetchess/files/pouetchess-0.2.0-gcc43.patch b/games-board/pouetchess/files/pouetchess-0.2.0-gcc43.patch new file mode 100644 index 000000000000..0a60c2117da8 --- /dev/null +++ b/games-board/pouetchess/files/pouetchess-0.2.0-gcc43.patch @@ -0,0 +1,12 @@ +--- src/sxmlgui/XMLUtils.h.orig 2008-06-14 14:50:16.000000000 +0000 ++++ src/sxmlgui/XMLUtils.h 2008-06-14 14:50:33.000000000 +0000 +@@ -38,6 +38,8 @@ + #include <stdio.h>
+ #include <assert.h>
+ #include <fstream>
++#include <cstring>
++
+
+ // Help out windows:
+ #if defined( _DEBUG ) && !defined( DEBUG )
+ diff --git a/games-board/pouetchess/files/pouetchess-0.2.0-nvidia_glext.patch b/games-board/pouetchess/files/pouetchess-0.2.0-nvidia_glext.patch new file mode 100644 index 000000000000..952f6dc85add --- /dev/null +++ b/games-board/pouetchess/files/pouetchess-0.2.0-nvidia_glext.patch @@ -0,0 +1,12 @@ +--- src/sxmlgui/GenUtils.h 2006-05-27 03:22:57.000000000 +0200 ++++ src/sxmlgui/GenUtils.h.new 2006-06-12 20:35:32.000000000 +0200 +@@ -5,6 +5,9 @@ + #include <iostream>
+ #include <fstream>
+ #include <vector>
++#ifndef GL_GLEXT_PROTOTYPES
++#define GL_GLEXT_PROTOTYPES 1
++#endif
+ #include <SDL/SDL_opengl.h>
+
+ #define deleteObject(A){ if(A){ delete A; A = NULL; } }
diff --git a/games-board/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch b/games-board/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch new file mode 100644 index 000000000000..cea3a5a451af --- /dev/null +++ b/games-board/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch @@ -0,0 +1,29 @@ +--- SConstruct ++++ SConstruct +@@ -22,14 +22,24 @@ + + + +-import os,glob ++import os,glob,SCons.Util + + ++# http://dev.gentoo.org/~vapier/scons-blows.txt + + # create build environment + ++env = Environment() ++env.SConsignFile() + env = Environment(tools = ['default', 'pouetChess'], toolpath = ['.']) +-env.AppendUnique(CXXFLAGS = ['-Wall']) ++env['CC'] = os.environ['CC'] ++env['CXX'] = os.environ['CXX'] ++if os.environ.has_key('CFLAGS'): ++ env['CCFLAGS'] = SCons.Util.CLVar(os.environ['CFLAGS']) ++if os.environ.has_key('CXXFLAGS'): ++ env['CXXFLAGS'] = SCons.Util.CLVar(os.environ['CXXFLAGS']) ++if os.environ.has_key('LDFLAGS'): ++ env['LINKFLAGS'] = SCons.Util.CLVar(os.environ['LDFLAGS']) + + # gather a list of source files + SOURCES = glob.glob('src/*.cpp') diff --git a/games-board/pouetchess/files/pouetchess-0.2.0-segfaults.patch b/games-board/pouetchess/files/pouetchess-0.2.0-segfaults.patch new file mode 100644 index 000000000000..58780e1b275e --- /dev/null +++ b/games-board/pouetchess/files/pouetchess-0.2.0-segfaults.patch @@ -0,0 +1,57 @@ +--- src/faile/search.c ++++ src/faile/search.c +@@ -805,6 +805,7 @@ + for (j = 0; j < indent; j++) { + fputc (' ', output); + } ++ void print_move (move_s moves[], int m, FILE *stream); + print_move (&moves[0], i, output); + fprintf (output, "\n"); + +--- src/faile/utils.c ++++ src/faile/utils.c +@@ -125,7 +125,7 @@ + rank (target) < 1 || rank (target) > 8 || + file (target) < 1 || file (target) > 8) + { +- sprintf (str, "*** FAILE INTERNAL ERROR ***"); ++ sprintf (str, "xxxx"); + return; + } + +--- src/main.cpp ++++ src/main.cpp +@@ -184,6 +184,9 @@ + // first scene is SCENE_INIT. + pGlobalInfos->SetCurrentScene(GAME_SCENE_INIT); + ++ /* @FB 02/08/06 */ ++ pGlobalInfos->ReleaseKeys(); ++ + // main game loop + while( pGlobalInfos->IsGameRunning() ) + { +--- src/scene_main_game.cpp ++++ src/scene_main_game.cpp +@@ -245,7 +245,7 @@ + + if (pGlobalInfos->OnLeftMouseButtonDown()) + { +- if (chessboard->clickOnChessBoard(mouseX,mouseY,&sqX,&sqY)); ++ if (chessboard->clickOnChessBoard(mouseX,mouseY,&sqX,&sqY)) + { + // if a piece was already selected, this means the player want to move this piece + if (SquareXSelected>-1 && SquareZSelected>-1) +--- src/graphic_chessboard.cpp.old 2011-03-23 08:08:40.000000000 +0100 ++++ src/graphic_chessboard.cpp 2011-03-23 08:33:04.000000000 +0100 +@@ -122,8 +122,8 @@ + + for(int i=0;i<6;i++) + { +- char texture_filename[50]; +- sprintf(texture_filename,PC_DATA_TEXTURE_SKYBOX,i), ++ char texture_filename[256]; ++ snprintf(texture_filename,sizeof(texture_filename),PC_DATA_TEXTURE_SKYBOX,i), + texture_skybox[i] = new CBasicTexture; + if (false==texture_skybox[i]->load(texture_filename,false)) + { diff --git a/games-board/pouetchess/metadata.xml b/games-board/pouetchess/metadata.xml new file mode 100644 index 000000000000..2deafbec1ca3 --- /dev/null +++ b/games-board/pouetchess/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">pouetchess</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/pouetchess/pouetchess-0.2.0-r1.ebuild b/games-board/pouetchess/pouetchess-0.2.0-r1.ebuild new file mode 100644 index 000000000000..65e027e58cba --- /dev/null +++ b/games-board/pouetchess/pouetchess-0.2.0-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils scons-utils games + +MY_PN=${PN/c/C} +DESCRIPTION="3D and open source chess game" +HOMEPAGE="http://pouetchess.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${PN}_src_${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="debug" + +DEPEND="media-libs/libsdl:0[opengl,video] + media-libs/sdl-image[jpeg,png] + virtual/glu + virtual/opengl" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${PN}_src_${PV} + +src_prepare() { + epatch \ + "${FILESDIR}/${P}-sconstruct-sandbox.patch" \ + "${FILESDIR}/${P}-nvidia_glext.patch" \ + "${FILESDIR}/${P}-segfaults.patch" \ + "${FILESDIR}/${P}-gcc43.patch" + # Fix for LibSDL >= 1.2.10 detection + sed -i \ + -e "s:sdlver.split('.') >= \['1','2','8'\]:sdlver.split('.') >= [1,2,8]:" \ + pouetChess.py || die +} + +src_configure() { + # turn off the hackish optimization setting code (bug #230127) + scons configure \ + strip=false \ + optimize=false \ + prefix="${GAMES_PREFIX}" \ + datadir="${GAMES_DATADIR}"/${PN} \ + $(use debug && echo debug=1) || die +} + +src_compile() { + escons +} + +src_install() { + dogamesbin bin/${MY_PN} + + insinto "${GAMES_DATADIR}"/${PN} + doins -r data/* + + dodoc ChangeLog README + + doicon data/icons/${MY_PN}.png + make_desktop_entry ${MY_PN} ${MY_PN} ${MY_PN} "KDE;Qt;Game;BoardGame" + + prepgamesdirs +} diff --git a/games-board/pychess/Manifest b/games-board/pychess/Manifest new file mode 100644 index 000000000000..209e82da2b87 --- /dev/null +++ b/games-board/pychess/Manifest @@ -0,0 +1 @@ +DIST pychess-0.10.1.tar.gz 1939605 SHA256 8a8ac9fc6a4605d189a9728f55183130b6a304cbf2dc5b2e923297303fe4ae8a SHA512 1000c840954b93bd3720fd3265b6cc0ac33df22373eb965d4ac03d16f7589af3b10bf2ebc28a2ff555b5e4101bffbfe96d52051e6c51a084229a3cc1691f1dd8 WHIRLPOOL 7554456eea487cefe3d8303aacdfa5748345b9682a8c557a2ed53090cc9a5beacc5b2e874db222b75fc03bcaf61dd9d7c3e2df23a13a4db820d4bd34c2f7b66e diff --git a/games-board/pychess/files/pychess-0.10.1-python.patch b/games-board/pychess/files/pychess-0.10.1-python.patch new file mode 100644 index 000000000000..11a6cce49c02 --- /dev/null +++ b/games-board/pychess/files/pychess-0.10.1-python.patch @@ -0,0 +1,19 @@ +python binary name is hardcoded, but +we need to sed it in during installation + +https://bugs.gentoo.org/show_bug.cgi?id=487706 + +--- a/lib/pychess/Players/engineNest.py ++++ b/lib/pychess/Players/engineNest.py +@@ -70,9 +70,9 @@ backup = """ + <engines version="%s"> + <engine protocol="cecp" protover="2" binname="PyChess.py"> + <meta><country>dk</country></meta> +- <vm binname="python"><args><arg name='0' value="-u"/></args></vm></engine> ++ <vm binname="@PYTHON@"><args><arg name='0' value="-u"/></args></vm></engine> + <engine protocol="cecp" protover="2" binname="shatranj.py"> +- <vm binname="python"><args><arg name='0' value="-u"/></args></vm> ++ <vm binname="@PYTHON@"><args><arg name='0' value="-u"/></args></vm> + <args><arg name='0' value='-xboard'/></args></engine> + <engine protocol="cecp" protover="2" binname="gnuchess"> + <meta><country>us</country></meta> diff --git a/games-board/pychess/metadata.xml b/games-board/pychess/metadata.xml new file mode 100644 index 000000000000..19399130691b --- /dev/null +++ b/games-board/pychess/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="google-code">pychess</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/pychess/pychess-0.10.1-r2.ebuild b/games-board/pychess/pychess-0.10.1-r2.ebuild new file mode 100644 index 000000000000..5245d16a57ab --- /dev/null +++ b/games-board/pychess/pychess-0.10.1-r2.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="sqlite" + +inherit fdo-mime gnome2-utils distutils-r1 games + +DESCRIPTION="A chess client for Gnome" +HOMEPAGE="http://pychess.googlepages.com/home" +SRC_URI="http://pychess.googlecode.com/files/${P/_/}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="gstreamer" + +DEPEND="dev-python/librsvg-python + dev-python/pycairo[${PYTHON_USEDEP}] + dev-python/pygobject:2[${PYTHON_USEDEP}] + dev-python/pygtk:2[${PYTHON_USEDEP}] + dev-python/pygtksourceview:2[${PYTHON_USEDEP}] + gstreamer? ( dev-python/gst-python:0.10[${PYTHON_USEDEP}] ) + dev-python/gconf-python + x11-themes/gnome-icon-theme" +RDEPEND=${DEPEND} + +PATCHES=( "${FILESDIR}"/${P}-python.patch ) + +S=${WORKDIR}/${P/_/} + +python_install() { + distutils-r1_python_install --install-scripts="${GAMES_BINDIR}" + + # bug 487706 + sed -i \ + -e "s/@PYTHON@/${EPYTHON}/" \ + "${ED%/}/$(python_get_sitedir)"/${PN}/Players/engineNest.py || die +} + +python_install_all() { + distutils-r1_python_install_all + dodoc AUTHORS README + prepgamesdirs +} + +src_prepare() { + distutils-r1_src_prepare +} + +src_compile() { + distutils-r1_src_compile +} + +src_install() { + distutils-r1_src_install +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update + fdo-mime_desktop_database_update +} + +pkg_postrm() { + gnome2_icon_cache_update + fdo-mime_desktop_database_update +} diff --git a/games-board/pysolfc/Manifest b/games-board/pysolfc/Manifest new file mode 100644 index 000000000000..2ce7e1330f7c --- /dev/null +++ b/games-board/pysolfc/Manifest @@ -0,0 +1,2 @@ +DIST PySolFC-2.0.tar.bz2 4208776 SHA256 dbcb8e7e6d0479c230745a2be91c0c9b9e8524407cd2075f2dae144e5d441b6c SHA512 ec5a11565bd43e097cf1854fe246b8f92acd74077c0b3b158c999f9dc45966e8f805c60a2cfbd815137d970e0e6409d0ae437b9807bac9c39353657cf596b6fc WHIRLPOOL 468d595ee1ae0a3a0129f9e822f9985cd0c7c9a00766dc711a5b8d202742bdd26393a676bc7515e39e1ddad71a3ef65d3d27ada0ec339212662126a42a07ad8c +DIST PySolFC-Cardsets-2.0.tar.bz2 30687905 SHA256 c388d6360191b3b7e463d84e5a64260c4e3ed36e791a85227d7e8923f3f47ca7 SHA512 24275cd3656024e268a49487ac75e1e67e61ec20e0a9f88e2d1c287f91314a1a9343856d1202ce468f8863f4e9a9bf27526fbb1979a7d765718b38e64ca0cfc8 WHIRLPOOL ae779f1838d321e727c0661980c7f40ff368aa958a3fd1043448229d5b2a56ce94799f343b8527666081b043a469760f7f3b0a3e2d58263d69c16cb3456d7df5 diff --git a/games-board/pysolfc/files/pysolfc-2.0-gentoo.patch b/games-board/pysolfc/files/pysolfc-2.0-gentoo.patch new file mode 100644 index 000000000000..3af96d9c0c2f --- /dev/null +++ b/games-board/pysolfc/files/pysolfc-2.0-gentoo.patch @@ -0,0 +1,10 @@ +--- pysollib/settings.py.old 2014-04-07 20:05:02.335276008 +0200 ++++ pysollib/settings.py 2014-04-07 20:05:33.099062670 +0200 +@@ -63,6 +63,7 @@ + '/usr/local/share/PySolFC', + '/usr/games/PySolFC', + '/usr/local/games/PySolFC', ++ '@GAMES_DATADIR@', + ] + if os.name == 'nt': + pass diff --git a/games-board/pysolfc/files/pysolfc-PIL-imports.patch b/games-board/pysolfc/files/pysolfc-PIL-imports.patch new file mode 100644 index 000000000000..ed174d8aefe7 --- /dev/null +++ b/games-board/pysolfc/files/pysolfc-PIL-imports.patch @@ -0,0 +1,49 @@ +https://sourceforge.net/p/pysolfc/patches/10/ +https://bugs.gentoo.org/show_bug.cgi?id=471514 + +Index: pysollib/mfxutil.py +=================================================================== +diff --git a/PySolFC/trunk/pysollib/mfxutil.py b/PySolFC/trunk/pysollib/mfxutil.py +--- a/PySolFC/trunk/pysollib/mfxutil.py (revision 279) ++++ b/PySolFC/trunk/pysollib/mfxutil.py (working copy) +@@ -41,18 +41,18 @@ + Image = ImageTk = ImageOps = None + if TOOLKIT == 'tk': + try: # PIL +- import Image +- import ImageTk +- import ImageOps ++ from PIL import Image ++ from PIL import ImageTk ++ from PIL import ImageOps + except ImportError: + Image = None + else: + # for py2exe +- import GifImagePlugin +- import PngImagePlugin +- import JpegImagePlugin +- import BmpImagePlugin +- import PpmImagePlugin ++ from PIL import GifImagePlugin ++ from PIL import PngImagePlugin ++ from PIL import JpegImagePlugin ++ from PIL import BmpImagePlugin ++ from PIL import PpmImagePlugin + Image._initialized = 2 + USE_PIL = False + if TOOLKIT == 'tk' and Image and Image.VERSION >= '1.1.7': +Index: scripts/cardset_viewer.py +=================================================================== +diff --git a/PySolFC/trunk/scripts/cardset_viewer.py b/PySolFC/trunk/scripts/cardset_viewer.py +--- a/PySolFC/trunk/scripts/cardset_viewer.py (revision 279) ++++ b/PySolFC/trunk/scripts/cardset_viewer.py (working copy) +@@ -7,7 +7,7 @@ + from math import sqrt, sin, cos, pi + from Tkinter import * + try: +- import Image, ImageTk ++ from PIL import Image, ImageTk + except ImportError: + Image = None + diff --git a/games-board/pysolfc/metadata.xml b/games-board/pysolfc/metadata.xml new file mode 100644 index 000000000000..a439022fc46c --- /dev/null +++ b/games-board/pysolfc/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name="extra-cardsets">Install extra cardsets</flag> + <flag name="sound">Enable sound support using <pkg>dev-python/pygame</pkg></flag> + </use> + <upstream> + <remote-id type="sourceforge">pysolfc</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/pysolfc/pysolfc-2.0-r3.ebuild b/games-board/pysolfc/pysolfc-2.0-r3.ebuild new file mode 100644 index 000000000000..d3b04dbee02d --- /dev/null +++ b/games-board/pysolfc/pysolfc-2.0-r3.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="tk" +DISTUTILS_SINGLE_IMPL="1" + +inherit eutils python-single-r1 distutils-r1 games + +MY_PN=PySolFC +SOL_URI="mirror://sourceforge/${PN}" + +DESCRIPTION="An exciting collection of more than 1000 solitaire card games" +HOMEPAGE="http://pysolfc.sourceforge.net/" +SRC_URI="${SOL_URI}/${MY_PN}-${PV}.tar.bz2 + extra-cardsets? ( ${SOL_URI}/${MY_PN}-Cardsets-${PV}.tar.bz2 )" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="extra-cardsets minimal +sound" + +S=${WORKDIR}/${MY_PN}-${PV} + +DEPEND="" +RDEPEND="${RDEPEND} + sound? ( dev-python/pygame[${PYTHON_USEDEP}] ) + !minimal? ( dev-python/pillow[tk,${PYTHON_USEDEP}] + dev-tcltk/tktable )" + +python_prepare_all() { + local PATCHES=( + "${FILESDIR}/${PN}-PIL-imports.patch" #471514 + "${FILESDIR}"/${P}-gentoo.patch + ) + + distutils-r1_python_prepare_all +} + +pkg_setup() { + games_pkg_setup + python-single-r1_pkg_setup +} + +src_prepare() { + distutils-r1_src_prepare + + sed -i \ + -e "/pysol.desktop/d" \ + -e "s:share/icons:share/pixmaps:" \ + -e "s:data_dir =.*:data_dir = \'${GAMES_DATADIR}/${PN}\':" \ + setup.py || die + + sed -i \ + -e "s:@GAMES_DATADIR@:${GAMES_DATADIR}/${PN}:" \ + pysollib/settings.py || die "fixing settings" + + mv docs/README{,.txt} +} + +src_compile() { + distutils-r1_src_compile +} + +python_install_all() { + make_desktop_entry pysol.py "PySol Fan Club Edition" pysol02 + + if use extra-cardsets; then + insinto "${GAMES_DATADIR}"/${PN} + doins -r "${WORKDIR}"/${MY_PN}-Cardsets-${PV}/* + fi + + doman docs/*.6 + + DOCS=( README AUTHORS docs/README.txt docs/README.SOURCE ) + HTML_DOCS=( docs/*html ) + + distutils-r1_python_install_all + + dodir "${GAMES_BINDIR}" + + mv "${D}"/usr/bin/pysol.py "${D}""${GAMES_BINDIR}"/ + + prepgamesdirs +} + +src_install() { + distutils-r1_src_install +} diff --git a/games-board/qcheckers/Manifest b/games-board/qcheckers/Manifest new file mode 100644 index 000000000000..d6573d131b85 --- /dev/null +++ b/games-board/qcheckers/Manifest @@ -0,0 +1 @@ +DIST QCheckers-20091230.tar.gz 45259 SHA256 a98946a26237ea267fe218f5edb06378a432c8f46a22a17463ed2e5c39559fe1 SHA512 c2cdb679a13804723064e87be1879185d14618e5147ead93b65a65d02100f3c47bed9243d845754b3aa862a0d4f7c803e5df42fa3bc3513b08a9a08b611a3d90 WHIRLPOOL 1bd77aa93df40c6fe27378ecce0c17e35e3919e0579942b07ea33eac1aab815413e8cc76feb34940b8ef9cfd76de051f39c114a8247d1f6f392649c0c7aea02f diff --git a/games-board/qcheckers/metadata.xml b/games-board/qcheckers/metadata.xml new file mode 100644 index 000000000000..3b41977892d3 --- /dev/null +++ b/games-board/qcheckers/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="google-code">qcheckers</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/qcheckers/qcheckers-20091230.ebuild b/games-board/qcheckers/qcheckers-20091230.ebuild new file mode 100644 index 000000000000..ef7526b76912 --- /dev/null +++ b/games-board/qcheckers/qcheckers-20091230.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils qt4-r2 games + +MY_PN=${PN/qc/QC} + +DESCRIPTION="Qt4 based checkers game" +HOMEPAGE="http://code.google.com/p/qcheckers/" +SRC_URI="http://qcheckers.googlecode.com/files/${MY_PN}-${PV}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="dev-qt/qtgui:4" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${MY_PN} + +src_configure() { + eqmake4 ${MY_PN}.pro +} + +src_install() { + dogamesbin ${MY_PN} + newicon icons/help-about.png ${PN}.png + make_desktop_entry ${MY_PN} ${MY_PN} + dodoc README + prepgamesdirs +} diff --git a/games-board/qgo/Manifest b/games-board/qgo/Manifest new file mode 100644 index 000000000000..43bab980b005 --- /dev/null +++ b/games-board/qgo/Manifest @@ -0,0 +1 @@ +DIST qgo-1.5.4_p20100322.tar.bz2 2486631 SHA256 08848ef8fc05b0f32ec730f0ac0e7123224e8b69f251ef9aeb711c9a2fceefa9 SHA512 bdb6e5147cc0847ca0cf776ecce5a00af9ebc7bb06d148b79bf073d15fdcfe494a2d71d3fd1c2aa29ea70735fb3208b9b9be42adcb84c894c9d419c12d60f2a6 WHIRLPOOL 9b3320c97eef5bf4e75b3d21fcade76e16d37d6061280de56ceba43bf9e3d4b81a4124288bbe86dbe568a09c7f3ac3533df5ac836477e5adfb9f9941622dcc8c diff --git a/games-board/qgo/files/qgo-1.5.4_p20100322-buffer.patch b/games-board/qgo/files/qgo-1.5.4_p20100322-buffer.patch new file mode 100644 index 000000000000..cb0f0156dd3b --- /dev/null +++ b/games-board/qgo/files/qgo-1.5.4_p20100322-buffer.patch @@ -0,0 +1,11 @@ +--- src/network/tygemconnection.cpp.orig 2014-10-29 23:49:21.436929924 -0400 ++++ src/network/tygemconnection.cpp 2014-10-29 23:50:43.481183852 -0400 +@@ -4768,7 +4768,7 @@ + unsigned int i; + + QString encoded_name; +- name[15] = 0x00; ++ name[14] = 0x00; + int records = (msg[0] << 8) + msg[1]; + if((records * 16) + 4 != (int)size) + { diff --git a/games-board/qgo/files/qgo-1.5.4_p20100322-gcc45.patch b/games-board/qgo/files/qgo-1.5.4_p20100322-gcc45.patch new file mode 100644 index 000000000000..53c8509bc255 --- /dev/null +++ b/games-board/qgo/files/qgo-1.5.4_p20100322-gcc45.patch @@ -0,0 +1,77 @@ +--- src/board/board.cpp.old 2010-06-01 08:20:32.000000000 +0200 ++++ src/board/board.cpp 2010-06-01 08:20:54.000000000 +0200 +@@ -347,7 +347,7 @@ + } + + //redraws the image on a brush to set the background +- canvas->setBackgroundBrush ( QBrush::QBrush(image)); ++ canvas->setBackgroundBrush ( QBrush(image)); + + } + +--- src/board/clockdisplay.cpp.old 2010-06-01 08:31:10.000000000 +0200 ++++ src/board/clockdisplay.cpp 2010-06-01 08:31:38.000000000 +0200 +@@ -274,13 +274,13 @@ + + if(b_time > 3600 || w_time > 3600) + { +- bt = QTime::QTime(0,0).addSecs(abs(b_time)).toString("h:mm:ss") ; +- wt = QTime::QTime(0,0).addSecs(abs(w_time)).toString("h:mm:ss") ; ++ bt = QTime(0,0).addSecs(abs(b_time)).toString("h:mm:ss") ; ++ wt = QTime(0,0).addSecs(abs(w_time)).toString("h:mm:ss") ; + } + else + { +- bt = QTime::QTime(0,0).addSecs(abs(b_time)).toString("m:ss") ; +- wt = QTime::QTime(0,0).addSecs(abs(w_time)).toString("m:ss") ; ++ bt = QTime(0,0).addSecs(abs(b_time)).toString("m:ss") ; ++ wt = QTime(0,0).addSecs(abs(w_time)).toString("m:ss") ; + } + + switch(timeSystem) +--- src/gtp/qgtp.cpp.old 2010-06-01 08:34:09.000000000 +0200 ++++ src/gtp/qgtp.cpp 2010-06-01 08:34:28.000000000 +0200 +@@ -341,7 +341,7 @@ + _cpt++; + + qDebug("flush -> %s",s); +- uint i= programProcess->write(QByteArray::QByteArray(s)); ++ uint i= programProcess->write(QByteArray(s)); + + // int j= programProcess->waitForBytesWritten ( 100 ); + +--- src/board/imagehandler.cpp.old 2010-06-01 08:34:55.000000000 +0200 ++++ src/board/imagehandler.cpp 2010-06-01 08:35:17.000000000 +0200 +@@ -93,8 +93,8 @@ + { + altGhostPixmaps = new QList<QPixmap>();//::QList(); + +- QPixmap alt1 = QPixmap::QPixmap(":/new/prefix1/ressources/pics/alt_ghost_black.png"); +- QPixmap alt2 = QPixmap:: QPixmap(":/new/prefix1/ressources/pics/alt_ghost_white.png"); ++ QPixmap alt1 = QPixmap(":/new/prefix1/ressources/pics/alt_ghost_black.png"); ++ QPixmap alt2 = QPixmap(":/new/prefix1/ressources/pics/alt_ghost_white.png"); + + if (alt1.isNull() || alt2.isNull()) + qFatal("Could not load alt_ghost pixmaps."); +--- src/board/mark.cpp.old 2010-06-01 08:36:39.000000000 +0200 ++++ src/board/mark.cpp 2010-06-01 08:36:51.000000000 +0200 +@@ -109,7 +109,7 @@ + setPen(QPen(col, 2)); + // else + +- pa = QPolygon::QPolygon(3); ++ pa = QPolygon(3); + + // setPen(QPen(col, 1)); + setSize(s, s); +--- src/network/gamedialog.cpp.old 2010-06-01 08:45:26.000000000 +0200 ++++ src/network/gamedialog.cpp 2010-06-01 08:45:40.000000000 +0200 +@@ -1123,7 +1123,7 @@ + * probably FIXME, I just wonder why its like that in the first place */ + + QPalette p(QApplication::palette()); +- p.setColor( QPalette::Base , QColor::QColor("cyan")); ++ p.setColor( QPalette::Base , QColor("cyan")); + + qDebug("GameDialog::recvRequest"); + /* If there's no existing request, then nothing should have changed diff --git a/games-board/qgo/files/qgo-1.5.4_p20100322-qt47.patch b/games-board/qgo/files/qgo-1.5.4_p20100322-qt47.patch new file mode 100644 index 000000000000..bf8bfee3cce2 --- /dev/null +++ b/games-board/qgo/files/qgo-1.5.4_p20100322-qt47.patch @@ -0,0 +1,74 @@ +--- src/network/playergamelistings.h.old 2010-11-08 13:49:25.000000000 +0100 ++++ src/network/playergamelistings.h 2010-11-08 13:52:24.000000000 +0100 +@@ -66,21 +66,21 @@ + bool hidden; + PlayerListing() : id(0), + online(0), +- name(0), +- notnickname(0), +- info(0), +- idletime(0), ++ name(QString::null), ++ notnickname(QString::null), ++ info(QString::null), ++ idletime(QString::null), + seconds_idle(0), +- rank(0), ++ rank(QString::null), + rank_score(0), +- country(0), ++ country(QString::null), + wins(0), + losses(0), + rated_games(0), + observing(0), + playing(0), +- extInfo(0), +- email_address(0), ++ extInfo(QString::null), ++ email_address(QString::null), + nmatch(0), + nmatch_handicapMin(0), + specialbyte(0), +@@ -189,7 +189,7 @@ + _white_rank_score(0), + _black_rank_score(0), + observers(0), +- result(0), ++ result(QString::null), + flags(IN_PROGRESS), + rated(0), + owner_id(0), +--- src/board/board.h.old 2010-11-08 13:57:26.000000000 +0100 ++++ src/board/board.h 2010-11-08 13:58:17.000000000 +0100 +@@ -50,7 +50,7 @@ + + void removeGhosts(); + void setVarGhost(StoneColor c, int x, int y); +- void setMark(int x, int y, MarkType t, bool update=true, QString txt=0, bool overlay=true); ++ void setMark(int x, int y, MarkType t, bool update=true, QString txt=QString::null, bool overlay=true); + Mark* hasMark(int x, int y); + void removeMark(int x, int y, bool update = false); + void removeDeadMarks(); +--- src/board/boardwindow.h.old 2010-11-08 14:21:19.000000000 +0100 ++++ src/board/boardwindow.h 2010-11-08 14:21:39.000000000 +0100 +@@ -45,7 +45,7 @@ + ~BoardWindow(); + + void init(); +- bool loadSGF(const QString fileName, const QString SGFLoaded=0); ++ bool loadSGF(const QString fileName, const QString SGFLoaded=QString::null); + bool doSave(QString fileName, bool force); + QString getCandidateFileName(); + +--- src/sgf/sgfparser.h.old 2010-11-08 14:29:05.000000000 +0100 ++++ src/sgf/sgfparser.h 2010-11-08 14:29:27.000000000 +0100 +@@ -51,7 +51,7 @@ + */ + protected: + int minPos(int n1, int n2, int n3); +- bool corruptSgf(int where=0, QString reason=NULL); ++ bool corruptSgf(int where=0, QString reason=QString::null); + + bool parseProperty(const QString &toParse, const QString &prop, QString &result); + diff --git a/games-board/qgo/metadata.xml b/games-board/qgo/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/qgo/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/qgo/qgo-1.5.4_p20100322.ebuild b/games-board/qgo/qgo-1.5.4_p20100322.ebuild new file mode 100644 index 000000000000..b01bff68b3f0 --- /dev/null +++ b/games-board/qgo/qgo-1.5.4_p20100322.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils qt4-r2 games + +DESCRIPTION="An ancient boardgame, very common in Japan, China and Korea" +HOMEPAGE="http://qgo.sourceforge.net/" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="media-libs/alsa-lib + dev-qt/qtcore:4 + dev-qt/qtgui:4 + dev-qt/qttest:4" +RDEPEND="${DEPEND}" + +src_prepare() { + sed -i \ + -e "/QGO_INSTALL_PATH/s:/usr/share:${GAMES_DATADIR}:" \ + -e "/QGO_INSTALL_BIN_PATH/s:/usr/bin:${GAMES_BINDIR}:" \ + -e 's:$(QTDIR)/bin/lrelease:lrelease:' \ + src/src.pro || die + + sed -i \ + -e "/TRANSLATIONS_PATH_PREFIX/s:/usr/share:${GAMES_DATADIR}:" \ + src/defines.h || die + + epatch \ + "${FILESDIR}"/${P}-gcc45.patch \ + "${FILESDIR}"/${P}-qt47.patch \ + "${FILESDIR}"/${P}-buffer.patch +} + +src_configure() { + eqmake4 qgo2.pro +} + +src_install() { + qt4-r2_src_install + + dodoc AUTHORS + + insinto "${GAMES_DATADIR}"/qgo/languages + doins src/translations/*.qm + + prepgamesdirs +} diff --git a/games-board/scid/Manifest b/games-board/scid/Manifest new file mode 100644 index 000000000000..08c955dc2969 --- /dev/null +++ b/games-board/scid/Manifest @@ -0,0 +1,7 @@ +DIST Scid-4.5.2.zip 10271344 SHA256 9e371e78c9fa43cbda4d5851b6bad35f72f3f4f538c4bb9b28667d8ba59bbf43 SHA512 161c2ff1b1808c7e6d4ee02b527251d935b4554546385e336c3f7370a1c47891e31b975d59f5da0ed39175365f53b3400c1fffd550ea40caa090f87fbfbe62b7 WHIRLPOOL 7a362d22588542ce96e4b0d9df03a810bfe4c618329958838261eec5dca9431534dedbd58626e335c7c6d266beec1f1e2e1c695f4f903b3d739ecdb7a92cbb3d +DIST photos.zip 1007488 SHA256 21aca2673df908a5960875872f127e0393bda0ef1db31003dd1c0d31583ff5a4 SHA512 c04fc810b457d4dbd9a9cfaac90feaa8c32a2abee05e28a79042ae81cb01e8580e2a1cf0abeff230ec2928da883f862b8901d679cb1448fd9ca0923323fbddd6 WHIRLPOOL dbbb8dd4ae37f0d84be929f09e6b583553b6c1cb6e866806388c61c54c09fb31b2a82baa6119b614416aa36dfc5250e63ac9afabbe6c561dcad8e71fe13caa99 +DIST ratings.zip 969347 SHA256 bb41a1bf35314231201d2f7d635497002b9dbc6d0f896a611239587a8c1b2830 SHA512 9b2a7280a7e72e2b464cc3da6be82ec9825b11d3c7e2219ab03a711c69f185f7d954eb3acdd441bff210e9296613df79a7e147a2ccbb4ed37b50af762abbd243 WHIRLPOOL a2b9ece83e167f0e1b330e1aa31cc46aa2cc79c3d124f1bcbd0f0edc7f9d434d210fdc78467efd1b7acb6f299a6f3440bc8599c5d7c62a55e5dc694685e56575 +DIST scid-4.6.0.zip 9868031 SHA256 09b46a262aba51b70d51efdca83b98ce2995ff0a27313c2d811be71443a2db4e SHA512 f05efa64df96c6fe0c2569ce69b30a1527ec97ea27e9207785e6ccfa3a9cd2bebea7837e5f1eddbafb826e17b3c464f8f5ec692f990614bb60f427c8530d89c4 WHIRLPOOL 7286e6de5686041fcfaed35f38d1afecdc795a50d3d2faa4b07fab36f1b7b714cb18e08c69e59e40b5fc0d75b474e1e3e119f24f3e489c23435618577e5ff824 +DIST scid-4.6.2.zip 9768139 SHA256 4c04a7ce8fb44ded1af17aacf7950d8aeab4eb962dd76486dbf4a69307743af7 SHA512 d33f730857362dfefe55aaf395b0fc42087e190743ed63072128509fc6ac33791a4c2f67f89f03ec39170660fc6b7a6804fea084b383cf97cbb21661ce0569b2 WHIRLPOOL a8024ecab40aaf461b33237b362d9efb86c513bf5a49f8b2a64965cdbd1cce5b1f984636779dcab330efdf0adea958b4e45f051093d8c9c446288602951f987f +DIST scidlet40k.zip 242632 SHA256 fbab2a31e37f2d606140144ac1086ece035b991a756eef804a660c8ecb0f56bb SHA512 e8cb4ca276ca94378f224fad972b0659f3e8159668fa395dcae4be1de6cdd9d29082fdddba393bbea6c909bab4f388042ea05c7dff41edf850d731bc7479850d WHIRLPOOL f0965d6197518c5dda62d5ff73e1052ced68487a738d288522fdb649aab8a63de1b34e0392c7479885164f4245bc8c33618d0206905ba9d2a9cf0ce2e46f9d54 +DIST spelling.zip 3147998 SHA256 63d8c8f7b99f6b6d5a4b6d4b0cd0a8e279f19173c98de3a989d7b05ee7dde624 SHA512 394a8835f23336b6f4bebe4e33ab9f64ffa505e9d9bb984de82396e671df0b57b088aab28c5cf648c1a11bc28370b431cb6db54765ac4ab6056a707276ba8f42 WHIRLPOOL f83ecfa03a817f491f25d48fc461156d1b8aea86e800e4ff7dcaa2a233958c7b4b9979d330fe71ba39028554206ec51f7e39344b7ff01194b3ed3fc949fbfbac diff --git a/games-board/scid/files/scid-4.5.2-gentoo.patch b/games-board/scid/files/scid-4.5.2-gentoo.patch new file mode 100644 index 000000000000..ce388e73a1f6 --- /dev/null +++ b/games-board/scid/files/scid-4.5.2-gentoo.patch @@ -0,0 +1,160 @@ +--- engines/togaII1.2.1a/src/Makefile.old ++++ engines/togaII1.2.1a/src/Makefile +@@ -18,23 +18,16 @@ + + # general + +-CXX = g++ +-CXXFLAGS = -pipe -Wall +-LDFLAGS = -lm + + # C++ + +-CXXFLAGS += -fno-exceptions -fno-rtti + + # optimisation + +-CXXFLAGS += -O3 -fstrict-aliasing +-CXXFLAGS += -fomit-frame-pointer + # CXXFLAGS += -march=athlon-xp # SELECT ME + + # strip + +-LDFLAGS += -s + + # dependencies + +--- tcl/utils/sound.tcl.old ++++ tcl/utils/sound.tcl +@@ -41,7 +41,7 @@ + variable soundFolder + + ::splash::add "Setting up audio move announcement..." +- if {[catch {package require snack 2.0}]} { ++ if {[catch {package require snack}]} { + set hasSnackPackage 0 + ::splash::add " Move speech disabled - Snack sound package not found" + return +--- Makefile.conf.old ++++ Makefile.conf +@@ -193,7 +193,7 @@ + # Small extra programs. Most are written in Tcl using tkscid, but + # a few contributed ones may be in Python or other languages. + # +-SCRIPTS= sc_addmove sc_epgn sc_spell sc_eco sc_import sc_remote sc_tree scidpgn pgnfix spliteco spf2spi ++SCRIPTS= sc_addmove sc_epgn sc_spell sc_eco sc_import sc_remote sc_tree scidpgn pgnfix eco2pgn spliteco spf2spi + + #################### + +@@ -218,25 +218,25 @@ + install: $(INSTALL) + + install_scid: all_scid +- install -m 755 -d $(SHAREDIR) +- install -m 755 -d $(BINDIR) +- install -m 755 scid $(SCRIPTS) $(EXECS) $(BINDIR) +- install -m 644 -p scid.eco $(SHAREDIR) +- install -m 755 -d $(SHAREDIR)/books +- install -m 666 ./books/*.* $(SHAREDIR)/books/ +- install -m 755 -d $(SHAREDIR)/bases +- if test -d ./bases; then install -m 666 ./bases/*.* $(SHAREDIR)/bases/ ; fi +- install -m 755 -d $(SHAREDIR)/html +- cp -r ./html/* $(SHAREDIR)/html/ +- install -m 755 -d $(SHAREDIR)/img/ +- cp -r ./img/* $(SHAREDIR)/img/ ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)" ++ install -m 755 -d "$(DESTDIR)$(BINDIR)" ++ install -m 755 scid $(SCRIPTS) $(EXECS) "$(DESTDIR)$(BINDIR)" ++ install -m 644 -p scid.eco "$(DESTDIR)$(SHAREDIR)" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/books" ++ install -m 666 ./books/*.* "$(DESTDIR)$(SHAREDIR)/books/" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/bases" ++ if test -d ./bases; then install -m 666 ./bases/*.* "$(DESTDIR)$(SHAREDIR)/bases/" ; fi ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/html" ++ cp -r ./html/* "$(DESTDIR)$(SHAREDIR)/html/" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/img/" ++ cp -r ./img/* "$(DESTDIR)$(SHAREDIR)/img/" + + install_engines: all_engines +- install -m 755 -d $(SHAREDIR)/engines +- install -m 755 -d $(SHAREDIR)/engines/phalanx-scid +- install ./engines/phalanx-scid/phalanx-scid $(SHAREDIR)/engines/phalanx-scid +- install -m 755 -d $(SHAREDIR)/engines/togaII1.2.1a +- install ./engines/togaII1.2.1a/src/togaII $(SHAREDIR)/engines/togaII1.2.1a/ ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/engines" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/engines/phalanx-scid" ++ install ./engines/phalanx-scid/phalanx-scid "$(DESTDIR)$(SHAREDIR)/engines/phalanx-scid" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/engines/togaII1.2.1a" ++ install ./engines/togaII1.2.1a/src/togaII "$(DESTDIR)$(SHAREDIR)/engines/togaII1.2.1a/" + + install_mac: all + install -m 755 -d dist/Scid.app/Contents/MacOS +@@ -288,25 +288,25 @@ + hdiutil create -fs "HFS+" -volname Scid -srcfolder dist "Scid $(SCID_VERSION) (`sw_vers -productName` `sw_vers -productVersion` `uname -p`).dmg" + + uninstall: +- rm -rf $(SHAREDIR)/engines +- rm -rf $(SHAREDIR)/books +- rm -rf $(SHAREDIR)/bases +- rm -rf $(SHAREDIR)/data/ +- rm -f $(SHAREDIR)/data/scid.eco +- rm -f $(BINDIR)/scid $(BINDIR)/sc_addmove $(BINDIR)/sc_epgn +- rm -f $(BINDIR)/sc_spell $(BINDIR)/sc_eco $(BINDIR)/sc_import +- rm -f $(BINDIR)/sc_remote $(BINDIR)/sc_tree $(BINDIR)/scidpgn +- rm -f $(BINDIR)/pgnfix $(BINDIR)/spliteco +- rm -f $(BINDIR)/pgnscid $(BINDIR)/tkscid +- rm -f $(BINDIR)/scmerge $(BINDIR)/scidlet +- rm -rf $(SHAREDIR)/html ++ rm -rf "$(DESTDIR)$(SHAREDIR)/engines" ++ rm -rf "$(DESTDIR)$(SHAREDIR)/books" ++ rm -rf "$(DESTDIR)$(SHAREDIR)/bases" ++ rm -rf "$(DESTDIR)$(SHAREDIR)/data/" ++ rm -f "$(DESTDIR)$(SHAREDIR)/data/scid.eco" ++ rm -f "$(DESTDIR)$(BINDIR)/scid $(BINDIR)/sc_addmove" "$(DESTDIR)$(BINDIR)/sc_epgn" ++ rm -f "$(DESTDIR)$(BINDIR)/sc_spell" "$(DESTDIR)$(BINDIR)/sc_eco" "$(DESTDIR)$(BINDIR)/sc_import" ++ rm -f "$(DESTDIR)$(BINDIR)/sc_remote" "$(DESTDIR)$(BINDIR)/sc_tree" "$(DESTDIR)$(BINDIR)/scidpgn" ++ rm -f "$(DESTDIR)$(BINDIR)/pgnfix" "$(DESTDIR)$(BINDIR)/spliteco" ++ rm -f "$(DESTDIR)$(BINDIR)/pgnscid" "$(DESTDIR)$(BINDIR)/tkscid" ++ rm -f "$(DESTDIR)$(BINDIR)/scmerge" "$(DESTDIR)$(BINDIR)/scidlet" ++ rm -rf "$(DESTDIR)$(SHAREDIR)/html" + + ### To remove Scid files placed in the BINDIR and SHAREDIR directories, + # type "make distclean". + # + distclean: +- cd $(BINDIR) && rm -f $(EXECS) $(SCRIPTS) +- -rm -f $(SHAREDIR)/scid.eco ++ cd $(DESTDIR)$(BINDIR) && rm -f "$(EXECS)" "$(SCRIPTS)" ++ -rm -f "$(DESTDIR)$(SHAREDIR)/scid.eco" + + ### To remove object and executable files: type "make clean". + # +--- tcl/start.tcl.old ++++ tcl/start.tcl +@@ -186,7 +186,7 @@ + + # scidShareDir, scidImgDir, scidBooksDir, scidBasesDir, ecoFile: + # Location of Scid resources +- set scidShareDir [file normalize [file join $scidExeDir "../share/scid"]] ++ set scidShareDir "@GENTOO_DATADIR@" + if {! [file isdirectory $::scidShareDir]} { + set scidShareDir $::scidExeDir + } +@@ -849,7 +849,7 @@ + + ### Audio move announcement options: + +-set ::utils::sound::soundFolder [file nativename [file join $::scidExeDir sounds]] ++set ::utils::sound::soundFolder "@GENTOO_DATADIR@/sounds" + set ::utils::sound::announceNew 0 + set ::utils::sound::announceForward 0 + set ::utils::sound::announceBack 0 +@@ -858,7 +858,7 @@ + if {$windowsOS} { + set spellCheckFile [file join $scidDataDir "spelling.ssp"] + } else { +- set spellCheckFile "/usr/local/share/scid/spelling.ssp" ++ set spellCheckFile "@GENTOO_DATADIR@/spelling.ssp" + } + + # book configuration diff --git a/games-board/scid/files/scid-4.6.0-gentoo.patch b/games-board/scid/files/scid-4.6.0-gentoo.patch new file mode 100644 index 000000000000..a6f525ad8c3a --- /dev/null +++ b/games-board/scid/files/scid-4.6.0-gentoo.patch @@ -0,0 +1,124 @@ +--- scid-4.6.0.orig/engines/togaII1.2.1a/src/Makefile ++++ scid-4.6.0/engines/togaII1.2.1a/src/Makefile +@@ -18,23 +18,16 @@ +
+ # general
+
+-CXX = g++
+-CXXFLAGS = -pipe -Wall
+-LDFLAGS = -lm
+
+ # C++
+
+-CXXFLAGS += -fno-exceptions -fno-rtti
+
+ # optimisation
+
+-CXXFLAGS += -O3 -fstrict-aliasing
+-CXXFLAGS += -fomit-frame-pointer
+ # CXXFLAGS += -march=athlon-xp # SELECT ME
+
+ # strip
+
+-LDFLAGS += -s
+
+ # dependencies
+
+--- scid-4.6.0.orig/Makefile.conf ++++ scid-4.6.0/Makefile.conf +@@ -157,32 +157,31 @@ + install: $(INSTALL) + + install_scid: all_scid +- install -m 755 -d "$(SHAREDIR)" +- install -m 755 -d "$(BINDIR)" +- install -m 755 $(SCRIPTS) $(EXECS) "$(BINDIR)" +- rm -f "$(BINDIR)/scid" +- @echo "#!/bin/sh" > "$(BINDIR)/scid" +- @echo 'exec "$(BINDIR)/tkscid" "$(SHAREDIR)/tcl/start.tcl" "$$@"' >> "$(BINDIR)/scid" +- chmod 755 "$(BINDIR)/scid" +- chmod +x "$(BINDIR)/scid" +- install -m 644 -p scid.eco "$(SHAREDIR)" +- install -m 755 -d "$(SHAREDIR)/books" +- install -m 666 ./books/*.* "$(SHAREDIR)/books/" +- install -m 755 -d "$(SHAREDIR)/bases" +- if test -d ./bases; then install -m 666 ./bases/*.* "$(SHAREDIR)/bases/" ; fi +- install -m 755 -d "$(SHAREDIR)/html" +- cp -r ./html/* "$(SHAREDIR)/html/" +- install -m 755 -d "$(SHAREDIR)/img/" +- cp -r ./img/* "$(SHAREDIR)/img/" +- install -m 755 -d "$(SHAREDIR)/tcl/" +- cp -r ./tcl/* "$(SHAREDIR)/tcl/" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)" ++ install -m 755 -d "$(DESTDIR)$(BINDIR)" ++ install -m 755 $(SCRIPTS) $(EXECS) "$(DESTDIR)$(BINDIR)" ++ @echo "#!/bin/sh" > "$(DESTDIR)$(BINDIR)/scid" ++ @echo 'exec "$(BINDIR)/tkscid" "$(SHAREDIR)/tcl/start.tcl" "$$@"' >> "$(DESTDIR)$(BINDIR)/scid" ++ chmod 755 "$(DESTDIR)$(BINDIR)/scid" ++ chmod +x "$(DESTDIR)$(BINDIR)/scid" ++ install -m 644 -p scid.eco "$(DESTDIR)$(SHAREDIR)" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/books" ++ install -m 666 ./books/*.* "$(DESTDIR)$(SHAREDIR)/books/" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/bases" ++ if test -d ./bases; then install -m 666 ./bases/*.* "$(DESTDIR)$(SHAREDIR)/bases/" ; fi ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/html" ++ cp -r ./html/* "$(DESTDIR)$(SHAREDIR)/html/" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/img/" ++ cp -r ./img/* "$(DESTDIR)$(SHAREDIR)/img/" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/tcl/" ++ cp -r ./tcl/* "$(DESTDIR)$(SHAREDIR)/tcl/" + + install_engines: all_engines +- install -m 755 -d "$(SHAREDIR)/engines" +- install -m 755 -d "$(SHAREDIR)/engines/phalanx-scid" +- install ./engines/phalanx-scid/phalanx-scid "$(SHAREDIR)/engines/phalanx-scid" +- install -m 755 -d "$(SHAREDIR)/engines/togaII1.2.1a" +- install ./engines/togaII1.2.1a/src/togaII "$(SHAREDIR)/engines/togaII1.2.1a/" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/engines" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/engines/phalanx-scid" ++ install ./engines/phalanx-scid/phalanx-scid "$(DESTDIR)$(SHAREDIR)/engines/phalanx-scid" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/engines/togaII1.2.1a" ++ install ./engines/togaII1.2.1a/src/togaII "$(DESTDIR)$(SHAREDIR)/engines/togaII1.2.1a/" + + install_mac: all + install -m 755 -d dist/Scid.app/Contents/MacOS +--- scid-4.6.0.orig/tcl/start.tcl ++++ scid-4.6.0/tcl/start.tcl +@@ -93,7 +93,7 @@ + + # scidShareDir, scidImgDir, scidTclDir, scidBooksDir, scidBasesDir, ecoFile: + # Location of Scid resources +- set scidShareDir [file normalize [file join $scidExeDir "../share/scid"]] ++ set scidShareDir "@GENTOO_DATADIR@" + if {! [file isdirectory $::scidShareDir]} { + set scidShareDir $::scidExeDir + } +@@ -785,7 +785,7 @@ + } + + ### Audio move announcement options: +-set ::utils::sound::soundFolder [file nativename [file join $::scidExeDir sounds]] ++set ::utils::sound::soundFolder "@GENTOO_DATADIR@/sounds" + set ::utils::sound::announceNew 0 + set ::utils::sound::announceForward 0 + set ::utils::sound::announceBack 0 +@@ -794,7 +794,7 @@ + if {$windowsOS} { + set spellCheckFile [file join $scidDataDir "spelling.ssp"] + } else { +- set spellCheckFile "/usr/local/share/scid/spelling.ssp" ++ set spellCheckFile "@GENTOO_DATADIR@//spelling.ssp" + } + + # book configuration +--- scid-4.6.0.orig/tcl/utils/sound.tcl ++++ scid-4.6.0/tcl/utils/sound.tcl +@@ -43,7 +43,7 @@ + variable soundFolder + + set hasSound 1 +- if {[catch {package require snack 2.0}]} { ++ if {[catch {package require snack}]} { + if {$::windowsOS} { + catch { + set ::utils::sound::pipe [open "| scidsnd.exe" "r+"] diff --git a/games-board/scid/files/scid-4.6.2-gentoo.patch b/games-board/scid/files/scid-4.6.2-gentoo.patch new file mode 100644 index 000000000000..6afd56b5badf --- /dev/null +++ b/games-board/scid/files/scid-4.6.2-gentoo.patch @@ -0,0 +1,127 @@ +--- scid-4.6.1.orig/engines/togaII1.2.1a/src/Makefile ++++ scid-4.6.1/engines/togaII1.2.1a/src/Makefile +@@ -18,23 +18,16 @@ +
+ # general
+
+-CXX = g++
+-CXXFLAGS = -pipe -Wall
+-LDFLAGS = -lm
+
+ # C++
+
+-CXXFLAGS += -fno-exceptions -fno-rtti
+
+ # optimisation
+
+-CXXFLAGS += -O3 -fstrict-aliasing
+-CXXFLAGS += -fomit-frame-pointer
+ # CXXFLAGS += -march=athlon-xp # SELECT ME
+
+ # strip
+
+-LDFLAGS += -s
+
+ # dependencies
+
+--- scid-4.6.1.orig/Makefile.conf ++++ scid-4.6.1/Makefile.conf +@@ -157,32 +157,32 @@ + install: $(INSTALL) + + install_scid: all_scid +- install -m 755 -d "$(SHAREDIR)" +- install -m 755 -d "$(BINDIR)" +- install -m 755 $(SCRIPTS) $(EXECS) "$(BINDIR)" +- rm -f "$(BINDIR)/scid" +- @echo "#!/bin/sh" > "$(BINDIR)/scid" +- @echo 'exec "$(BINDIR)/tkscid" "$(SHAREDIR)/tcl/start.tcl" "$$@"' >> "$(BINDIR)/scid" +- chmod 755 "$(BINDIR)/scid" +- chmod +x "$(BINDIR)/scid" +- install -m 644 -p scid.eco "$(SHAREDIR)" +- install -m 755 -d "$(SHAREDIR)/books" +- install -m 666 ./books/*.* "$(SHAREDIR)/books/" +- install -m 755 -d "$(SHAREDIR)/bases" +- if test -d ./bases; then install -m 666 ./bases/*.* "$(SHAREDIR)/bases/" ; fi +- install -m 755 -d "$(SHAREDIR)/html" +- cp -r ./html/* "$(SHAREDIR)/html/" +- install -m 755 -d "$(SHAREDIR)/img/" +- cp -r ./img/* "$(SHAREDIR)/img/" +- install -m 755 -d "$(SHAREDIR)/tcl/" +- cp -r ./tcl/* "$(SHAREDIR)/tcl/" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)" ++ install -m 755 -d "$(DESTDIR)$(BINDIR)" ++ install -m 755 $(SCRIPTS) $(EXECS) "$(DESTDIR)$(BINDIR)" ++ rm -f "$(DESTDIR)$(BINDIR)/scid" ++ @echo "#!/bin/sh" > "$(DESTDIR)$(BINDIR)/scid" ++ @echo 'exec "$(BINDIR)/tkscid" "$(SHAREDIR)/tcl/start.tcl" "$$@"' >> "$(DESTDIR)$(BINDIR)/scid" ++ chmod 755 "$(DESTDIR)$(BINDIR)/scid" ++ chmod +x "$(DESTDIR)$(BINDIR)/scid" ++ install -m 644 -p scid.eco "$(DESTDIR)$(SHAREDIR)" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/books" ++ install -m 666 ./books/*.* "$(DESTDIR)$(SHAREDIR)/books/" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/bases" ++ if test -d ./bases; then install -m 666 ./bases/*.* "$(DESTDIR)$(SHAREDIR)/bases/" ; fi ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/html" ++ cp -r ./html/* "$(DESTDIR)$(SHAREDIR)/html/" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/img/" ++ cp -r ./img/* "$(DESTDIR)$(SHAREDIR)/img/" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/tcl/" ++ cp -r ./tcl/* "$(DESTDIR)$(SHAREDIR)/tcl/" + + install_engines: all_engines +- install -m 755 -d "$(SHAREDIR)/engines" +- install -m 755 -d "$(SHAREDIR)/engines/phalanx-scid" +- install ./engines/phalanx-scid/phalanx-scid "$(SHAREDIR)/engines/phalanx-scid" +- install -m 755 -d "$(SHAREDIR)/engines/togaII1.2.1a" +- install ./engines/togaII1.2.1a/src/togaII "$(SHAREDIR)/engines/togaII1.2.1a/" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/engines" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/engines/phalanx-scid" ++ install ./engines/phalanx-scid/phalanx-scid "$(DESTDIR)$(SHAREDIR)/engines/phalanx-scid" ++ install -m 755 -d "$(DESTDIR)$(SHAREDIR)/engines/togaII1.2.1a" ++ install ./engines/togaII1.2.1a/src/togaII "$(DESTDIR)$(SHAREDIR)/engines/togaII1.2.1a/" + + install_mac: all + install -m 755 -d dist/Scid.app/Contents/MacOS +--- scid-4.6.1.orig/tcl/options.tcl ++++ scid-4.6.1/tcl/options.tcl +@@ -598,7 +598,7 @@ + } + + ### Audio move announcement options: +-set ::utils::sound::soundFolder [file nativename [file join $::scidExeDir sounds]] ++set ::utils::sound::soundFolder "@GENTOO_DATADIR@/sounds" + set ::utils::sound::announceNew 0 + set ::utils::sound::announceForward 0 + set ::utils::sound::announceBack 0 +@@ -607,7 +607,7 @@ + if {$windowsOS} { + set spellCheckFile [file join $scidExeDir "spelling.ssp"] + } else { +- set spellCheckFile "/usr/local/share/scid/spelling.ssp" ++ set spellCheckFile "@GENTOO_DATADIR@/spelling.ssp" + } + + # book configuration +--- scid-4.6.1.orig/tcl/start.tcl ++++ scid-4.6.1/tcl/start.tcl +@@ -93,7 +93,7 @@ + + # scidShareDir, scidImgDir, scidTclDir, scidBooksDir, scidBasesDir, ecoFile: + # Location of Scid resources +- set scidShareDir [file normalize [file join $scidExeDir "../share/scid"]] ++ set scidShareDir "@GENTOO_DATADIR@" + if {! [file isdirectory $::scidShareDir]} { + set scidShareDir $::scidExeDir + } +--- scid-4.6.1.orig/tcl/utils/sound.tcl ++++ scid-4.6.1/tcl/utils/sound.tcl +@@ -43,7 +43,7 @@ + variable soundFolder + + set hasSound 1 +- if {[catch {package require snack 2.0}]} { ++ if {[catch {package require snack}]} { + if {$::windowsOS} { + catch { + set ::utils::sound::pipe [open "| scidsnd.exe" "r+"] diff --git a/games-board/scid/metadata.xml b/games-board/scid/metadata.xml new file mode 100644 index 000000000000..031fb161aca2 --- /dev/null +++ b/games-board/scid/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">scid</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/scid/scid-4.5.2.ebuild b/games-board/scid/scid-4.5.2.ebuild new file mode 100644 index 000000000000..57ac9484fba0 --- /dev/null +++ b/games-board/scid/scid-4.5.2.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit eutils toolchain-funcs gnome2-utils python-any-r1 games + +DESCRIPTION="a free chess database application" +HOMEPAGE="http://scid.sourceforge.net/" +SRC_URI="mirror://sourceforge/scid/Scid-${PV}.zip + mirror://sourceforge/scid/spelling.zip + mirror://sourceforge/scid/ratings.zip + mirror://sourceforge/scid/photos.zip + mirror://sourceforge/scid/scidlet40k.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +CDEPEND="dev-lang/tk:0 + >=sys-libs/zlib-1.1.3" +RDEPEND="${CDEPEND} + !games-board/chessdb" +DEPEND="${CDEPEND} + ${PYTHON_DEPS} + app-arch/unzip" + +pkg_setup() { + python-any-r1_pkg_setup + games_pkg_setup +} + +src_unpack() { + default + mv scid-code-* ${P} || die +} + +src_prepare() { + edos2unix engines/togaII1.2.1a/src/Makefile + epatch "${FILESDIR}"/${P}-gentoo.patch + sed -i \ + -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \ + tcl/start.tcl \ + src/scidlet.cpp \ + || die "sed failed" + gzip ../ratings.ssp + python_fix_shebang . +} + +src_configure() { + # configure is not an autotools script + ./configure \ + COMPILE="$(tc-getCXX)" \ + LINK="$(tc-getCXX) ${CXXFLAGS} ${LDFLAGS}" \ + CC="$(tc-getCC)" \ + OPTIMIZE="${CXXFLAGS}" \ + TCL_INCLUDE="" \ + BINDIR="${GAMES_BINDIR}" \ + SHAREDIR="${GAMES_DATADIR}/${PN}" \ + || die "configure failed" +} + +src_compile() { + emake all_scid +} + +src_install() { + emake DESTDIR="${D}" install_scid + insinto "${GAMES_DATADIR}"/${PN} + doins -r sounds + + dodoc ChangeLog TODO + dohtml help/*.html + + newicon -s scalable svg/scid_app.svg ${PN}.svg + make_desktop_entry scid Scid + + cd .. || die + doins spelling.ssp ratings.ssp.gz *.spf + newins scidlet40k.sbk scidlet.sbk + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update + elog "To enable speech, emerge dev-tcltk/snack" + elog "To enable some piece sets, emerge dev-tcltk/tkimg" + elog "To enable Xfcc support, emerge dev-tcltk/tdom" +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-board/scid/scid-4.6.0.ebuild b/games-board/scid/scid-4.6.0.ebuild new file mode 100644 index 000000000000..d2d271f35648 --- /dev/null +++ b/games-board/scid/scid-4.6.0.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit eutils toolchain-funcs gnome2-utils python-any-r1 games + +DESCRIPTION="a free chess database application" +HOMEPAGE="http://scid.sourceforge.net/" +SRC_URI="mirror://sourceforge/scid/${P}-ae199eb3496714b50d2cbd204492d61022b2da76.zip -> ${P}.zip + mirror://sourceforge/scid/spelling.zip + mirror://sourceforge/scid/ratings.zip + mirror://sourceforge/scid/photos.zip + mirror://sourceforge/scid/scidlet40k.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +CDEPEND="dev-lang/tk:0 + dev-tcltk/tkimg + >=sys-libs/zlib-1.1.3" +RDEPEND="${CDEPEND} + !games-board/chessdb" +DEPEND="${CDEPEND} + ${PYTHON_DEPS} + app-arch/unzip" + +pkg_setup() { + python-any-r1_pkg_setup + games_pkg_setup +} + +src_unpack() { + default + mv scid-code-* ${P} || die +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch + edos2unix engines/togaII1.2.1a/src/Makefile + sed -i \ + -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \ + tcl/start.tcl || die + sed -i \ + -e "/COMPILE.*testzlib/s:\$var(COMPILE):$(tc-getCXX):" \ + configure || die + gzip ../ratings.ssp || die + python_fix_shebang . +} + +src_configure() { + # configure is not an autotools script + ./configure \ + COMPILE="$(tc-getCXX)" \ + LINK="$(tc-getCXX) ${CXXFLAGS} ${LDFLAGS}" \ + CC="$(tc-getCC)" \ + OPTIMIZE="${CXXFLAGS}" \ + TCL_INCLUDE="" \ + BINDIR="${GAMES_BINDIR}" \ + SHAREDIR="${GAMES_DATADIR}/${PN}" || die +} + +src_compile() { + emake all_scid +} + +src_install() { + emake DESTDIR="${D}" install_scid + insinto "${GAMES_DATADIR}"/${PN} + doins -r sounds + + dodoc ChangeLog TODO + dohtml help/*.html + + newicon -s scalable svg/scid_app.svg ${PN}.svg + make_desktop_entry scid Scid + + doins ../spelling.ssp ../ratings.ssp.gz ../*.spf + newins ../scidlet40k.sbk scidlet.sbk + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update + elog "To enable speech, emerge dev-tcltk/snack" + elog "To enable Xfcc support, emerge dev-tcltk/tdom" +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-board/scid/scid-4.6.2.ebuild b/games-board/scid/scid-4.6.2.ebuild new file mode 100644 index 000000000000..45c9e22a21fb --- /dev/null +++ b/games-board/scid/scid-4.6.2.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit eutils toolchain-funcs gnome2-utils python-any-r1 games + +DESCRIPTION="a free chess database application" +HOMEPAGE="http://scid.sourceforge.net/" +SRC_URI="mirror://sourceforge/scid/${P}.zip + mirror://sourceforge/scid/spelling.zip + mirror://sourceforge/scid/ratings.zip + mirror://sourceforge/scid/photos.zip + mirror://sourceforge/scid/scidlet40k.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +CDEPEND="dev-lang/tk:0 + dev-tcltk/tkimg + >=sys-libs/zlib-1.1.3" +RDEPEND="${CDEPEND} + !games-board/chessdb" +DEPEND="${CDEPEND} + ${PYTHON_DEPS} + app-arch/unzip" + +pkg_setup() { + python-any-r1_pkg_setup + games_pkg_setup +} + +src_unpack() { + default + mv scid-src ${P} || die +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch + edos2unix engines/togaII1.2.1a/src/Makefile + sed -i \ + -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \ + tcl/start.tcl || die + sed -i \ + -e "/COMPILE.*testzlib/s:\$var(COMPILE):$(tc-getCXX):" \ + configure || die + gzip ../ratings.ssp || die + python_fix_shebang . +} + +src_configure() { + # configure is not an autotools script + ./configure \ + COMPILE="$(tc-getCXX)" \ + LINK="$(tc-getCXX) ${CXXFLAGS} ${LDFLAGS}" \ + CC="$(tc-getCC)" \ + OPTIMIZE="${CXXFLAGS}" \ + TCL_INCLUDE="" \ + BINDIR="${GAMES_BINDIR}" \ + SHAREDIR="${GAMES_DATADIR}/${PN}" || die +} + +src_compile() { + emake all_scid +} + +src_install() { + emake DESTDIR="${D}" install_scid + insinto "${GAMES_DATADIR}"/${PN} + doins -r sounds + + dodoc ChangeLog TODO + dohtml help/*.html + + newicon -s scalable svg/scid_app.svg ${PN}.svg + make_desktop_entry scid Scid + + doins ../spelling.ssp ../ratings.ssp.gz ../*.spf + newins ../scidlet40k.sbk scidlet.sbk + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update + elog "To enable speech, emerge dev-tcltk/snack" + elog "To enable Xfcc support, emerge dev-tcltk/tdom" +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-board/simsu/Manifest b/games-board/simsu/Manifest new file mode 100644 index 000000000000..ac39f94e7f47 --- /dev/null +++ b/games-board/simsu/Manifest @@ -0,0 +1 @@ +DIST simsu-1.2.3-src.tar.bz2 328020 SHA256 623a27e487bd360bee58430b6530f3371f915a868910615572559a3e055a5da4 SHA512 52e19c9f7de5d8d2d2c986cbcaefa61a21ee1d8eca8a8315e9689034e9d4a9e63db02cb163daa7354a368d8e34789c1f623f0482ad9fbb52fdb447cce7505b44 WHIRLPOOL daf5e28fd35b884a751a4df9485a70538fb29813bfcf00203057c0a67291139145795866af5ddd70fa307e7dd511a5f69b1f201df48ce6c118b5bd6b434018b3 diff --git a/games-board/simsu/files/simsu-1.2.3-langs.patch b/games-board/simsu/files/simsu-1.2.3-langs.patch new file mode 100644 index 000000000000..118c33bea499 --- /dev/null +++ b/games-board/simsu/files/simsu-1.2.3-langs.patch @@ -0,0 +1,11 @@ +diff -ru simsu-1.2.3.orig/src/locale_dialog.cpp simsu-1.2.3/src/locale_dialog.cpp +--- simsu-1.2.3.orig/src/locale_dialog.cpp 2013-02-14 13:17:54.000000000 -0500 ++++ simsu-1.2.3/src/locale_dialog.cpp 2013-09-09 16:00:09.449992139 -0400 +@@ -85,6 +85,7 @@ + if (paths.isEmpty()) { + QString appdir = QCoreApplication::applicationDirPath(); + paths.append(appdir); ++ paths.append("GENTOODATADIR"); + paths.append(appdir + "/../share/" + QCoreApplication::applicationName().toLower()); + paths.append(appdir + "/../Resources"); + } diff --git a/games-board/simsu/metadata.xml b/games-board/simsu/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/simsu/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/simsu/simsu-1.2.3.ebuild b/games-board/simsu/simsu-1.2.3.ebuild new file mode 100644 index 000000000000..3a2e5e0085e7 --- /dev/null +++ b/games-board/simsu/simsu-1.2.3.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils gnome2-utils qt4-r2 games + +DESCRIPTION="A basic sudoku game" +HOMEPAGE="http://gottcode.org/simsu/" +SRC_URI="http://gottcode.org/${PN}/${P}-src.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="dev-qt/qtgui:4" +RDEPEND=${DEPEND} + +src_prepare() { + epatch "${FILESDIR}"/${P}-langs.patch + + sed -i \ + -e "s:GENTOODATADIR:${GAMES_DATADIR}/${PN}:" \ + src/locale_dialog.cpp || die +} + +src_configure() { + eqmake4 +} + +src_install() { + dogamesbin ${PN} + insinto "${GAMES_DATADIR}"/${PN}/translations + doins translations/*qm + dodoc ChangeLog + doicon -s scalable icons/hicolor/scalable/apps/${PN}.svg + domenu icons/${PN}.desktop + prepgamesdirs +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-board/sirius/Manifest b/games-board/sirius/Manifest new file mode 100644 index 000000000000..caef65dc02f6 --- /dev/null +++ b/games-board/sirius/Manifest @@ -0,0 +1 @@ +DIST sirius-0.8.0.tar.gz 1623435 SHA256 6e512fccaf276a818f96072898576fb9bdd8905de95e6d23aa3277e2b04332ae SHA512 ffe5cb3354f30b8cb916b83b8fce1cbf7f7b37fad232ddb77a918eaf149d6b3e47488ff900301970e0d9240edfe483d57c434b1af35b87a9f50bcbd0e3aed3d8 WHIRLPOOL 6fabeb4acbced1469b3ea6b15e5045cbc54207b99d0f283a656cde23ac1761494a73605f4e9db1790e32744317616b51f9d4f8a2260fd499fc254a28a1b77262 diff --git a/games-board/sirius/metadata.xml b/games-board/sirius/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/sirius/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/sirius/sirius-0.8.0.ebuild b/games-board/sirius/sirius-0.8.0.ebuild new file mode 100644 index 000000000000..1396a940df92 --- /dev/null +++ b/games-board/sirius/sirius-0.8.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools games + +DESCRIPTION="A program for playing the game of othello/reversi" +HOMEPAGE="http://sirius.bitvis.nu/" +SRC_URI="http://sirius.bitvis.nu/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="nls" + +RDEPEND="x11-libs/gtk+:2 + gnome-base/gconf:2 + gnome-base/libgnomeui + gnome-base/libgnomecanvas + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +src_prepare() { + sed -i -e '/-g -O3/d' configure.in || die + sed -i \ + -e '/Icon/s/\.png//' \ + -e '/Categories/s/Application;//' \ + sirius.desktop.in || die + mv configure.in configure.ac || die + eautoreconf +} + +src_configure() { + egamesconf \ + --datadir=/usr/share \ + $(use_enable nls) +} + +src_install() { + default + prepgamesdirs +} diff --git a/games-board/sjeng/Manifest b/games-board/sjeng/Manifest new file mode 100644 index 000000000000..8d699b0274db --- /dev/null +++ b/games-board/sjeng/Manifest @@ -0,0 +1 @@ +DIST Sjeng-Free-11.2.tar.gz 174019 SHA256 aaf584d12e79f8e366710d40cc02a27a7927dd924234421107b2fb8e84cfd727 SHA512 cda3409d732ac1b07e83ccc0d3063d24497651097c633500dfca66fbb3021532053082ac57a5e23909dd1016a2bae07f166e56b82c4ce834749a101c9ee444b8 WHIRLPOOL 72d9e200c505d01696b9f4588f6aedde40b6f419e653218f890eb1faf855addc35a2990c22959e4f84c5dd3e11756500655bfae883e732141ef6879c4e706ea9 diff --git a/games-board/sjeng/metadata.xml b/games-board/sjeng/metadata.xml new file mode 100644 index 000000000000..1ce68b074d11 --- /dev/null +++ b/games-board/sjeng/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">sjeng</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/sjeng/sjeng-11.2-r1.ebuild b/games-board/sjeng/sjeng-11.2-r1.ebuild new file mode 100644 index 000000000000..1ca7a3c34086 --- /dev/null +++ b/games-board/sjeng/sjeng-11.2-r1.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit games + +DESCRIPTION="Console based chess interface" +HOMEPAGE="http://sjeng.sourceforge.net/" +SRC_URI="mirror://sourceforge/sjeng/Sjeng-Free-${PV}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="amd64 x86" +SLOT="0" +IUSE="" + +DEPEND="sys-libs/gdbm" +RDEPEND=${DEPEND} + +S=${WORKDIR}/Sjeng-Free-${PV} + +src_install () { + default + prepgamesdirs +} diff --git a/games-board/spider/Manifest b/games-board/spider/Manifest new file mode 100644 index 000000000000..efca0d60764d --- /dev/null +++ b/games-board/spider/Manifest @@ -0,0 +1,2 @@ +DIST spider_1.2-4.diff.gz 2882 SHA256 d4135ae12f39a1f8aa4286fda607e61751d4c5898d22b962e62bc2f73bc71bbd SHA512 e1e6eb4d5b14de7c32e1537877a3d26470c032bea567aa679c8a3744d62ab6b12d81bf05120679a273d98b6fd976c32d24ce9c54b720d006c51464f7ff6d5e75 WHIRLPOOL f0932d0f3abbfd93240d05b739addd49b5c0d4e0d9cec7ec65149e088494c29698e0737db4a895347722ca9ac7bb4427a3276e91e5237fdd3aacaeed8590dd25 +DIST spider_1.2.orig.tar.gz 168209 SHA256 0c5a813a967b9f5ca8c799c05b2583481a292fbcca57293055c243566a7f03b3 SHA512 a1d01f15ca37c8abdcc9f7c3dac925b1726f9b58ce51eb4096a9248abe0a55086ccdd5cc5ec358c2ee609ff089978676a3e3c669062a522ed7f1d4ea1ce33ab0 WHIRLPOOL bec06ca75c28416a5359022e24948c6c1e06e7f37e857f657e00b41a2bf69ee76f31061bec5734657e755134c9197d59b2ee78447c142c97cace8b65e74e09af diff --git a/games-board/spider/metadata.xml b/games-board/spider/metadata.xml new file mode 100644 index 000000000000..84627512f9ba --- /dev/null +++ b/games-board/spider/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> + <use> + <flag name="athena">Enable athena widgets</flag> + </use> +</pkgmetadata> diff --git a/games-board/spider/spider-1.2_p4-r1.ebuild b/games-board/spider/spider-1.2_p4-r1.ebuild new file mode 100644 index 000000000000..58a7981b0605 --- /dev/null +++ b/games-board/spider/spider-1.2_p4-r1.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils gnome2-utils games + +MY_P="${P%%_*}" +MY_P="${MY_P/-/_}" +DEB_V="${P##*_p}" + +DESCRIPTION="Spider Solitaire" +HOMEPAGE="http://packages.debian.org/stable/games/spider" +SRC_URI="mirror://debian/pool/main/s/spider/${MY_P}.orig.tar.gz + mirror://debian/pool/main/s/spider/${MY_P}-${DEB_V}.diff.gz" + +LICENSE="HPND" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="athena" + +RDEPEND="x11-libs/libXext + athena? ( x11-libs/libXaw ) + x11-libs/libXmu + x11-libs/libXt" +DEPEND="${RDEPEND} + x11-misc/imake + x11-proto/xproto" + +S=${WORKDIR}/${MY_P/_/-}.orig + +src_prepare() { + epatch "${WORKDIR}"/${MY_P}-${DEB_V}.diff + sed -i \ + -e '/MKDIRHIER/s:/X11::' \ + *Imakefile \ + || die "sed failed" + rm Makefile +} + +src_configure() { + imake \ + -DUseInstalled \ + -DSmallCards=NO \ + -DRoundCards \ + $(use athena && echo "-DCompileXAW=YES" || echo "-DCompileXlibOnly=YES") \ + -I/usr/lib/X11/config \ + || die "imake failed" + sed -i \ + -e '/CC = /d' \ + -e "s/CDEBUGFLAGS = .*$/CDEBUGFLAGS = ${CFLAGS}/" \ + -e '/LDOPTIONS = /s/$/$(LDFLAGS)/' \ + Makefile \ + || die "sed failed" +} + +src_install() { + emake \ + DESTDIR="${D}" \ + BINDIR="${GAMES_BINDIR}" \ + MANSUFFIX="6" \ + MANDIR="/usr/share/man/man6" \ + HELPDIR="/usr/share/doc/${PF}" \ + install install.doc install.man + + dodoc README* ChangeLog + newicon icons/Spider.png ${PN}.png + newicon -s 32 icons/Spider32x32.png ${PN}.png + make_desktop_entry spider Spider + 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/stockfish/Manifest b/games-board/stockfish/Manifest new file mode 100644 index 000000000000..9142b4d6d98b --- /dev/null +++ b/games-board/stockfish/Manifest @@ -0,0 +1 @@ +DIST stockfish-6-src.zip 161183 SHA256 a69a371d3f84338cefde4575669bd930d186b046a10fa5ab0f8d1aed6cb204c3 SHA512 8381b7a8616281629f04c6dc4cbe5a279b06067f7af3faff271461f694122eeba9d83a0c4a295b9064142bcaa3b31eca8139b58eb9441684845aad45888402dc WHIRLPOOL 56672a5730ce1f9adef13b658e960f808a990752b749ab3c658e1dbdd54e81bbee9c32ab91c892cd6f8b91ad4d8fe5bcff2c5d0942616b5dda5e77c196ad5092 diff --git a/games-board/stockfish/metadata.xml b/games-board/stockfish/metadata.xml new file mode 100644 index 000000000000..1f5c48a54c2b --- /dev/null +++ b/games-board/stockfish/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>yngwin@gentoo.org</email> + <name>Ben de Groot</name> + </maintainer> + <use> + <flag name='armv7'>Build for armv7; enables PIE</flag> + <flag name='general-32'>Generic unoptimized 32-bits build</flag> + <flag name='general-64'>Generic unoptimized 64-bits build</flag> + <flag name='optimize'>Enable upstream -O3 optimizations (default enabled)</flag> + </use> +</pkgmetadata> diff --git a/games-board/stockfish/stockfish-6-r1.ebuild b/games-board/stockfish/stockfish-6-r1.ebuild new file mode 100644 index 000000000000..df819ce36600 --- /dev/null +++ b/games-board/stockfish/stockfish-6-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="git://github.com/official-stockfish/Stockfish.git" + KEYWORDS="" + S=${WORKDIR}/${P}/src +else + SRC_URI="https://stockfish.s3.amazonaws.com/${P}-src.zip" + KEYWORDS="~amd64 ~x86" + S=${WORKDIR}/${P}-src/src +fi + +DESCRIPTION="Free UCI chess engine, claimed to be the strongest in the world" +HOMEPAGE="http://stockfishchess.org/" + +LICENSE="GPL-3" +SLOT="0" +IUSE="armv7 cpu_flags_x86_avx2 cpu_flags_x86_popcnt cpu_flags_x86_sse debug + general-32 general-64 +optimize" + +DEPEND="|| ( app-arch/unzip + app-arch/zip )" +RDEPEND="" + +src_prepare() { + # prevent pre-stripping + sed -e 's:-strip $(BINDIR)/$(EXE)::' -i Makefile || die +} + +src_compile() { + local my_arch + # generic unoptimized first + use general-32 && my_arch=general-32 + use general-64 && my_arch=general-64 + # x86 + use x86 && my_arch=x86-32-old + use cpu_flags_x86_sse && my_arch=x86-32 + # amd64 + use amd64 && my_arch=x86-64 + use cpu_flags_x86_popcnt && my_arch=x86-64-modern + # both bmi2 and avx2 are part of hni (haswell new instructions) + use cpu_flags_x86_avx2 && my_arch=x86-64-bmi2 + # other architectures + use armv7 && my_arch=armv7 + use ppc && my_arch=ppc + use ppc64 && my_arch=ppc64 + + emake build ARCH=${my_arch} \ + debug=$(usex debug "yes" "no") \ + optimize=$(usex optimize "yes" "no") +} + +src_install() { + emake PREFIX="${D}/usr" install + dodoc ../AUTHORS ../Readme.md +} diff --git a/games-board/tali/Manifest b/games-board/tali/Manifest new file mode 100644 index 000000000000..a9f2d926a683 --- /dev/null +++ b/games-board/tali/Manifest @@ -0,0 +1,2 @@ +DIST tali-3.14.0.tar.xz 2835264 SHA256 81f15fcab820d384d02cd39033f2931cd15926f5a39d8c02766584d3b1b2f939 SHA512 4f63915181f217b914fe0efd32683c2ab8dc923d1e3ae28bddc3dba557cd77512c67edf695877ea7db0efe005e8074efbc88ac900868ba39c3186e7f3e38d731 WHIRLPOOL 2bd451a1dce734223c956297090f74138a0f914604e0701ddfe588ec15760f2340b13297ed054ac522b6d460dcbf2c4b60c8dc184711a32e352d1255a1d24849 +DIST tali-3.16.1.tar.xz 1503552 SHA256 af99dc362bd1031625948b70b76515a584fa64a7cffe389f2d1f8d87637f8e81 SHA512 330ea6430b6b4dc085f78a2d2f44104d3690acb4f365a69cb207b4c027de376fea0ac3532fbcda67ef091121e79bfa9f7bb859ebb93def51796bd2d4ac0768be WHIRLPOOL a2421a41e2c2098dd32bce819e869364879ee65bd44fa6452f53147ac22e321a2dc34da52820dc458a68e60770569ee8a0917aec3616d8a43288ffa622014e58 diff --git a/games-board/tali/metadata.xml b/games-board/tali/metadata.xml new file mode 100644 index 000000000000..da6fd63d0085 --- /dev/null +++ b/games-board/tali/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +</pkgmetadata> diff --git a/games-board/tali/tali-3.14.0.ebuild b/games-board/tali/tali-3.14.0.ebuild new file mode 100644 index 000000000000..b8da9cc27653 --- /dev/null +++ b/games-board/tali/tali-3.14.0.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" + +inherit gnome-games + +DESCRIPTION="Beat the odds in a poker-style dice game" +HOMEPAGE="https://wiki.gnome.org/Apps/Tali" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 ~arm x86" +IUSE="" + +RDEPEND=" + dev-libs/glib:2 + >=gnome-base/librsvg-2.32:2 + >=x11-libs/gtk+-3.12:3 +" +DEPEND="${RDEPEND} + app-text/yelp-tools + >=dev-util/intltool-0.50 + sys-devel/gettext + virtual/pkgconfig +" diff --git a/games-board/tali/tali-3.16.1.ebuild b/games-board/tali/tali-3.16.1.ebuild new file mode 100644 index 000000000000..a506ced19196 --- /dev/null +++ b/games-board/tali/tali-3.16.1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" + +inherit gnome-games + +DESCRIPTION="Beat the odds in a poker-style dice game" +HOMEPAGE="https://wiki.gnome.org/Apps/Tali" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +RDEPEND=" + dev-libs/glib:2 + >=gnome-base/librsvg-2.32:2 + >=x11-libs/gtk+-3.15:3 +" +DEPEND="${RDEPEND} + app-text/yelp-tools + dev-libs/appstream-glib + >=dev-util/intltool-0.50 + sys-devel/gettext + virtual/pkgconfig +" diff --git a/games-board/teg/Manifest b/games-board/teg/Manifest new file mode 100644 index 000000000000..2ddaeb43f583 --- /dev/null +++ b/games-board/teg/Manifest @@ -0,0 +1 @@ +DIST teg-0.11.2.tar.gz 5790172 SHA256 9a0135870c01ff70b63a95f7224556fdf70f21d977c369085ef3c2cf7697ddf9 SHA512 ac31b074eb0ff007ba34fc62043200701d6a481e8ad5eb323a111d0a93b998aa69ce3972780ce3bd212729ffd72229eb1a3ef3e73a9c0c6ceedd16c16107f4f2 WHIRLPOOL a7a46ee3ed5f5160d84995454c8da2f963781ad4f2025f9dff7d6fcb359261b7faf9449bb41d7078e25f9cded8fb0d8a141e09be12c9b9bfbfcda4b0f12126a4 diff --git a/games-board/teg/metadata.xml b/games-board/teg/metadata.xml new file mode 100644 index 000000000000..750d71aa16e8 --- /dev/null +++ b/games-board/teg/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">teg</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/teg/teg-0.11.2.ebuild b/games-board/teg/teg-0.11.2.ebuild new file mode 100644 index 000000000000..3378f8802cd8 --- /dev/null +++ b/games-board/teg/teg-0.11.2.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit gnome2 + +DESCRIPTION="Gnome Risk Clone" +HOMEPAGE="http://teg.sourceforge.net/" +SRC_URI="mirror://sourceforge/teg/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 sparc x86" +IUSE="nls" + +RDEPEND="dev-libs/glib:2 + gnome-base/libgnomeui + gnome-base/libgnome + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + app-text/htmltidy + nls? ( sys-devel/gettext )" diff --git a/games-board/tetzle/Manifest b/games-board/tetzle/Manifest new file mode 100644 index 000000000000..c688a8c47982 --- /dev/null +++ b/games-board/tetzle/Manifest @@ -0,0 +1 @@ +DIST tetzle-2.0.3-src.tar.bz2 641065 SHA256 6c29ea61501dcc0149ece879217df5710d1169bfae940a667af2a19605415b51 SHA512 39853cc37b0bae676fc516e56c2bb6a54d5cacccd5978d5bd9cd735bf9fcb09948871af06cdb3b3d1a510c51ea71ac3720bbfe2558c2effaa00e00708a70f7d9 WHIRLPOOL 7bc9d4973deb2b9d1b32316c40b13203d0dcab244d1805639c640331b4b582e0a81d821987a8e0275cd28edc59d9e419b03b7280efb0d7e55d5057398c94d4c9 diff --git a/games-board/tetzle/metadata.xml b/games-board/tetzle/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/tetzle/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/tetzle/tetzle-2.0.3.ebuild b/games-board/tetzle/tetzle-2.0.3.ebuild new file mode 100644 index 000000000000..b211cd3cff09 --- /dev/null +++ b/games-board/tetzle/tetzle-2.0.3.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit qt4-r2 gnome2-utils games + +DESCRIPTION="A jigsaw puzzle game that uses tetrominoes for the pieces" +HOMEPAGE="http://gottcode.org/tetzle/" +SRC_URI="http://gottcode.org/${PN}/${P}-src.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND=">=dev-qt/qtgui-4.7:4 + >=dev-qt/qtopengl-4.7:4" +RDEPEND="${DEPEND}" + +DOCS="ChangeLog CREDITS" + +src_prepare() { + sed -i \ + -e "s:appdir + \"/../share/\":\"${GAMES_DATADIR}/\":" \ + src/locale_dialog.cpp || die + sed -i \ + -e "/qm.path/s:\$\$PREFIX/share:${GAMES_DATADIR}:" \ + ${PN}.pro || die +} + +src_configure() { + eqmake4 BINDIR="${GAMES_BINDIR/\/usr}" PREFIX="/usr" +} + +src_install() { + qt4-r2_src_install + 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/xboard/Manifest b/games-board/xboard/Manifest new file mode 100644 index 000000000000..25be574674a9 --- /dev/null +++ b/games-board/xboard/Manifest @@ -0,0 +1 @@ +DIST xboard-4.8.0.tar.gz 3691531 SHA256 c88f48fc7fe067be0a13b8d121c38551145f889719c212717884e5e82d902d17 SHA512 fc3231f170baacdf97df5d08488f5a1fb9a144810f7b0eb72e3e95d345ce47aa2ff67a586ef45b6a9e45932300babc59c161a29e055dd0d19b133ba986985c81 WHIRLPOOL 8f5d66720072846fbed06b004a6cb27510500d2c768c6b923e5dfe7444218b2e59a0bf823b953ccf5ecc41f464f51d4e3303932a947071e5581b783883afd1a6 diff --git a/games-board/xboard/files/xboard-4.8.0-gettext.patch b/games-board/xboard/files/xboard-4.8.0-gettext.patch new file mode 100644 index 000000000000..a50009a70efa --- /dev/null +++ b/games-board/xboard/files/xboard-4.8.0-gettext.patch @@ -0,0 +1,20 @@ +commit 7688073f2967bb3438d1a2d8ccffc53f697219fb +Author: hasufell <hasufell@gentoo.org> +Date: Fri Sep 6 16:37:22 2013 +0200 + + BUILD: fix gettext version + + https://bugs.gentoo.org/show_bug.cgi?id=418267 + https://savannah.gnu.org/bugs/index.php?39970 + +--- a/configure.ac ++++ b/configure.ac +@@ -76,7 +76,7 @@ AC_ISC_POSIX + AC_PROG_INSTALL + + dnl| add gettext support +-AM_GNU_GETTEXT_VERSION(0.17) ++AM_GNU_GETTEXT_VERSION(0.18) + AM_GNU_GETTEXT([external]) + + AC_CHECK_PROGS(RSH, remsh rsh, rsh) diff --git a/games-board/xboard/files/xboard-4.8.0-gnuchess-default.patch b/games-board/xboard/files/xboard-4.8.0-gnuchess-default.patch new file mode 100644 index 000000000000..772a887493c7 --- /dev/null +++ b/games-board/xboard/files/xboard-4.8.0-gnuchess-default.patch @@ -0,0 +1,53 @@ +From 6b40739a29b99fbed7a9622c8cbe1c423e397b48 Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping <sebastian@pipping.org> +Date: Mon, 3 Nov 2014 19:53:24 +0100 +Subject: [PATCH] Make "gnuchess" the default engine + +--- + gtk/xboard.h | 2 +- + xaw/xboard.h | 2 +- + xboard.conf | 2 +- + 3 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/gtk/xboard.h b/gtk/xboard.h +index 234692d..dfa42ac 100644 +--- a/gtk/xboard.h ++++ b/gtk/xboard.h +@@ -108,7 +108,7 @@ typedef struct { + + #define BORDER_X_OFFSET 3 + #define BORDER_Y_OFFSET 27 +-#define FIRST_CHESS_PROGRAM "fairymax" ++#define FIRST_CHESS_PROGRAM "gnuchess" + #define SECOND_CHESS_PROGRAM "" + #define FIRST_DIRECTORY "." + #define SECOND_DIRECTORY "." +diff --git a/xaw/xboard.h b/xaw/xboard.h +index bcfafb2..d4b3407 100644 +--- a/xaw/xboard.h ++++ b/xaw/xboard.h +@@ -118,7 +118,7 @@ typedef struct { + + #define BORDER_X_OFFSET 3 + #define BORDER_Y_OFFSET 27 +-#define FIRST_CHESS_PROGRAM "fairymax" ++#define FIRST_CHESS_PROGRAM "gnuchess" + #define SECOND_CHESS_PROGRAM "" + #define FIRST_DIRECTORY "." + #define SECOND_DIRECTORY "." +diff --git a/xboard.conf b/xboard.conf +index 6c43b97..90fc680 100644 +--- a/xboard.conf ++++ b/xboard.conf +@@ -73,7 +73,7 @@ + ; + ; Engines & adjudicatons in engine-engine games + ; +--firstChessProgram fairymax ++-firstChessProgram gnuchess + -firstChessProgramNames {fairymax + "Fruit 2.1" -fcp fruit -fUCI + "Crafty" -fcp crafty +-- +2.1.3 + diff --git a/games-board/xboard/metadata.xml b/games-board/xboard/metadata.xml new file mode 100644 index 000000000000..8ad0acd7e3a8 --- /dev/null +++ b/games-board/xboard/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name="zippy">Enable experimental zippy client</flag> + <flag name="default-font">Install the default font that xboard uses</flag> + </use> +</pkgmetadata> diff --git a/games-board/xboard/xboard-4.8.0.ebuild b/games-board/xboard/xboard-4.8.0.ebuild new file mode 100644 index 000000000000..a5c9ca1350d1 --- /dev/null +++ b/games-board/xboard/xboard-4.8.0.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils fdo-mime gnome2-utils games + +DESCRIPTION="GUI for gnuchess and for internet chess servers" +HOMEPAGE="http://www.gnu.org/software/xboard/" +SRC_URI="mirror://gnu/xboard/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ~ppc ~ppc64 x86" +IUSE="Xaw3d +default-font gtk nls zippy" +RESTRICT="test" #124112 + +RDEPEND=" + dev-libs/glib:2 + gnome-base/librsvg:2 + virtual/libintl + x11-libs/cairo[X] + x11-libs/libXpm + default-font? ( + media-fonts/font-adobe-100dpi[nls?] + media-fonts/font-misc-misc[nls?] + ) + !gtk? ( + x11-libs/libX11 + x11-libs/libXt + x11-libs/libXmu + Xaw3d? ( x11-libs/libXaw3d ) + !Xaw3d? ( x11-libs/libXaw ) + ) + gtk? ( x11-libs/gtk+:2 )" +DEPEND="${RDEPEND} + x11-proto/xproto + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-gettext.patch \ + "${FILESDIR}"/${P}-gnuchess-default.patch + eautoreconf +} + +src_configure() { + egamesconf \ + --disable-update-mimedb \ + --datadir=/usr/share \ + $(use_enable nls) \ + $(use_enable zippy) \ + --disable-update-mimedb \ + $(use_with gtk) \ + $(use_with Xaw3d) \ + $(usex gtk "--without-Xaw" "$(use_with !Xaw3d Xaw)") \ + --with-gamedatadir="${GAMES_DATADIR}"/${PN} +} + +src_install() { + emake DESTDIR="${D}" install + dodoc AUTHORS COPYRIGHT ChangeLog NEWS README TODO ics-parsing.txt + use zippy && dodoc zippy.README + dohtml FAQ.html + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + fdo-mime_mime_database_update + fdo-mime_desktop_database_update + gnome2_icon_cache_update + elog "No chess engines are emerged by default! If you want a chess engine" + elog "to play with, you can emerge gnuchess or crafty." + elog "Read xboard FAQ for information." + if ! use default-font ; then + ewarn "Read the xboard(6) man page for specifying the font for xboard to use." + fi +} + +pkg_postrm() { + fdo-mime_mime_database_update + fdo-mime_desktop_database_update + gnome2_icon_cache_update +} diff --git a/games-board/xfreecell/Manifest b/games-board/xfreecell/Manifest new file mode 100644 index 000000000000..a16a611cfb8e --- /dev/null +++ b/games-board/xfreecell/Manifest @@ -0,0 +1,2 @@ +DIST MSNumbers.gz 1212278 SHA256 d3cdebbe409588f706f2480235b391f18f825a32233460aebbd0ca07d55f961b SHA512 6a8215f72bb4f10262c41875e1668bc5bb691f9ba2b803162675cf1fb8ce6090f6009727939ecb86301de76264d35d7d10614887b677055ac470975029e55785 WHIRLPOOL dab236cf5b58ed4f62904240e4e752a485c35fd7c6246e4782dbad8801334c3c8b70c5d316c5747c8ccd3f145a5c8bc6705302270b415ddf23ebe44b0be5d0a4 +DIST xfreecell-1.0.5b.tgz 49367 SHA256 ababb3bdc5055e1d013161f2c04c874bacb572f240d0175ff8eabbd88b5d1b78 SHA512 b4437d9c78d5a6cb5fabd0157528aef85aa1d01b87875314e122d1eafbe5808af67b7b4dbf4db8e70d3d5193b10e61cc20210725b75c01ca6ff6db2b5840a64c WHIRLPOOL 2dcb542384a61a6d3c7b7cc1fda5d8fd9b4d7e3169fcb9d1f4fefbf650b94f25b34f63af03d352ec2dc013e8ba307fecf3859cbb181afa6c9eda4a2bf40e9c4b diff --git a/games-board/xfreecell/files/xfreecell-1.0.5b-gcc43.patch b/games-board/xfreecell/files/xfreecell-1.0.5b-gcc43.patch new file mode 100644 index 000000000000..cf7e899d2856 --- /dev/null +++ b/games-board/xfreecell/files/xfreecell-1.0.5b-gcc43.patch @@ -0,0 +1,59 @@ +--- card.cpp ++++ card.cpp +@@ -1,5 +1,6 @@ ++#include <cstdlib> + #include <cstdio> +-#include <math.h> ++#include <cmath> + #ifdef SHAPE + #include <X11/Xlib.h> + #include <X11/Xutil.h> +--- freecell.cpp ++++ freecell.cpp +@@ -1,6 +1,7 @@ + #include <dirent.h> + #include <fcntl.h> +-#include <stdlib.h> ++#include <cstdlib> ++#include <cstring> + #include <sys/stat.h> + #include <sys/time.h> + #include <sys/types.h> +--- option.cpp ++++ option.cpp +@@ -3,7 +3,9 @@ + #include <fcntl.h> + #include <dirent.h> + #include <unistd.h> +-#include <stdio.h> ++#include <cstdlib> ++#include <cstdio> ++#include <cstring> + + #include "general.h" + #include "option.h" +--- subwindows.cpp ++++ subwindows.cpp +@@ -3,7 +3,8 @@ + #include <fcntl.h> + #include <dirent.h> + #include <unistd.h> +-#include <stdio.h> ++#include <cstdlib> ++#include <cstdio> + + #include "general.h" + #include "subwindows.h" +--- widget/widget.h ++++ widget/widget.h +@@ -4,7 +4,9 @@ + #include <X11/Xlib.h> + #include <X11/Xutil.h> + #include <X11/keysym.h> +-#include <stdio.h> ++#include <cstdlib> ++#include <cstdio> ++#include <cstring> + #include <vector> + #include <string> + diff --git a/games-board/xfreecell/files/xfreecell-1.0.5b-gentoo.patch b/games-board/xfreecell/files/xfreecell-1.0.5b-gentoo.patch new file mode 100644 index 000000000000..f000eb7347d5 --- /dev/null +++ b/games-board/xfreecell/files/xfreecell-1.0.5b-gentoo.patch @@ -0,0 +1,349 @@ +diff -ru xfreecell.orig/card.cpp xfreecell/card.cpp +--- xfreecell.orig/card.cpp 1999-03-27 05:36:28.000000000 -0800 ++++ xfreecell/card.cpp 2004-02-25 02:17:24.000000000 -0800 +@@ -119,7 +119,7 @@ + int oldy = y(); + int newx = dest_x; + int newy = dest_y; +- int steps = max(abs(oldx - newx), abs(oldy - newy)) / Option::speedup(); ++ int steps = std::max(abs(oldx - newx), abs(oldy - newy)) / Option::speedup(); + float curx = (float) oldx; + float cury = (float) oldy; + +diff -ru xfreecell.orig/freecell.cpp xfreecell/freecell.cpp +--- xfreecell.orig/freecell.cpp 1999-07-27 07:15:27.000000000 -0700 ++++ xfreecell/freecell.cpp 2004-02-25 02:18:13.000000000 -0800 +@@ -64,7 +64,7 @@ + static GameNumberManager* gnManager; + static const int PathLength = 256; + static char msNumbersPath[PathLength] = "\0";; +-static const char defaultMSNumbersPath[] = "/usr/local/lib/xfreecell/MSNumbers"; ++static const char defaultMSNumbersPath[] = "/usr/share/games/xfreecell/MSNumbers"; + + // ##### Functions declarations ##### + static void adjustSubwindow(NSWindow*); +@@ -603,7 +603,7 @@ + void readMSNumbersPath() + { + char* home = getenv("HOME"); +- string saveFile; ++ std::string saveFile; + + if (home == NULL) { + fprintf(stderr, "Cannot get $HOME. Assuming I am at home directory now.\n"); +diff -ru xfreecell.orig/gnmanager.cpp xfreecell/gnmanager.cpp +--- xfreecell.orig/gnmanager.cpp 1999-07-27 07:18:05.000000000 -0700 ++++ xfreecell/gnmanager.cpp 2004-02-25 02:17:24.000000000 -0800 +@@ -16,7 +16,7 @@ + GameNumberManager::GameNumberManager() + { + char* home = getenv("HOME"); +- string directory; ++ std::string directory; + + if (home == NULL) { + fprintf(stderr, "Cannot get $HOME. Assuming I am at home directory now.\n"); +@@ -143,7 +143,7 @@ + readFile(msLostGameFile, &msLostGames); + } + +-void GameNumberManager::readFile(const string& file, hash_set<int>* hs) ++void GameNumberManager::readFile(const std::string& file, hash_set<int>* hs) + { + FILE* fp = fopen(file.c_str(), "r"); + char line[lineLength]; +@@ -169,7 +169,7 @@ + writeFile(msLostGameFile, &msLostGames); + } + +-void GameNumberManager::writeFile(const string& file, hash_set<int>* hs) ++void GameNumberManager::writeFile(const std::string& file, hash_set<int>* hs) + { + FILE* fp = fopen(file.c_str(), "w+"); + +diff -ru xfreecell.orig/gnmanager.h xfreecell/gnmanager.h +--- xfreecell.orig/gnmanager.h 1999-03-29 05:07:19.000000000 -0800 ++++ xfreecell/gnmanager.h 2004-02-25 02:17:24.000000000 -0800 +@@ -2,7 +2,13 @@ + #define GNManager_H + + #include <string> ++ ++#if __GNUG__ < 3 + #include <hash_set> ++#else ++#include <ext/hash_set> ++using __gnu_cxx::hash_set; ++#endif + + class GameNumberManager { + public: +@@ -20,15 +26,15 @@ + bool alreadyLost(int); + + void readFiles(); +- void readFile(const string&, hash_set<int>*); +- void writeFile(const string&, hash_set<int>*); ++ void readFile(const std::string&, hash_set<int>*); ++ void writeFile(const std::string&, hash_set<int>*); + +- string lostGameFile, wonGameFile; ++ std::string lostGameFile, wonGameFile; + + hash_set<int> wonGames; + hash_set<int> lostGames; + +- string msLostGameFile, msWonGameFile; ++ std::string msLostGameFile, msWonGameFile; + + hash_set<int> msWonGames; + hash_set<int> msLostGames; +diff -ru xfreecell.orig/makefile xfreecell/makefile +--- xfreecell.orig/makefile 1999-04-03 05:42:49.000000000 -0800 ++++ xfreecell/makefile 2004-02-25 02:17:48.000000000 -0800 +@@ -1,16 +1,15 @@ + OBJECTS=card.o freecell.o option.o stack.o subwindows.o undo.o util.o gnmanager.o random.o +-CC=g++ +-CFLAGS=-g -Wall -DSHAPE -DBOGUSRANDOM ++CFLAGS=$(CXXFLAGS) -DSHAPE -DBOGUSRANDOM + LIBS=-lm -L. -lns -L/usr/X11R6/lib -lXext -lX11 + STATICDIR=xfreecell-static + DOCS=README CHANGES mshuffle.txt xfreecell.6 + LIBDIR=/usr/local/lib/xfreecell + + all: $(OBJECTS) lib +- $(CC) -o xfreecell $(CFLAGS) $(OBJECTS) $(LIBS) ++ $(CXX) -o xfreecell $(LDFLAGS) $(OBJECTS) $(LIBS) + + static: $(OBJECTS) lib +- $(CC) -o xfreecell -static $(CFLAGS) $(OBJECTS) $(LIBS) ++ $(CXX) -o xfreecell -static $(CFLAGS) $(OBJECTS) $(LIBS) + + static-release: static + mkdir $(STATICDIR) +@@ -21,17 +20,17 @@ + rm -rf $(STATICDIR) + + %.o: %.cpp +- $(CC) -c $(CFLAGS) $< ++ $(CXX) -c $(CFLAGS) $< + + clean: + rm -f *~ *.o a.out xfreecell libns.a +- make -C widget clean ++ $(MAKE) -C widget clean + + lib: +- make -C widget lib ++ $(MAKE) -C widget lib + + install: all +- install xfreecell $(DESTDIR)/usr/local/bin +- install xfreecell.6 $(DESTDIR)/usr/local/man/man6 ++ install xfreecell $(DESTDIR)/usr/bin ++ install xfreecell.6 $(DESTDIR)/usr/share/man/man6 + # install -d $(LIBDIR) +-# install ms-compatible/MSNumbers $(DESTDIR)/usr/local/lib/xfreecell +\ No newline at end of file ++# install ms-compatible/MSNumbers $(DESTDIR)/usr/share/xfreecell +diff -ru xfreecell.orig/option.h xfreecell/option.h +--- xfreecell.orig/option.h 1999-03-27 11:39:17.000000000 -0800 ++++ xfreecell/option.h 2004-02-25 02:17:24.000000000 -0800 +@@ -22,7 +22,7 @@ + void readPrefs(); + void writePrefs(); + +- string saveFile; ++ std::string saveFile; + + static int _speedup; + static bool _queryWindow; +diff -ru xfreecell.orig/stack.h xfreecell/stack.h +--- xfreecell.orig/stack.h 1999-03-02 10:20:02.000000000 -0800 ++++ xfreecell/stack.h 2004-02-25 02:17:24.000000000 -0800 +@@ -28,7 +28,7 @@ + int _next_x, _next_y; + + private: +- vector<Card*> _cards; ++ std::vector<Card*> _cards; + }; + + class PlayStack : public Stack { +diff -ru xfreecell.orig/subwindows.h xfreecell/subwindows.h +--- xfreecell.orig/subwindows.h 1999-03-15 15:09:49.000000000 -0800 ++++ xfreecell/subwindows.h 2004-02-25 02:17:24.000000000 -0800 +@@ -76,7 +76,7 @@ + int _undos; + int _totalScore; + +- string saveFile; ++ std::string saveFile; + + bool exitPressed; + +diff -ru xfreecell.orig/undo.cpp xfreecell/undo.cpp +--- xfreecell.orig/undo.cpp 1999-03-25 07:48:40.000000000 -0800 ++++ xfreecell/undo.cpp 2004-02-25 02:17:24.000000000 -0800 +@@ -22,7 +22,7 @@ + c->moveToStack(from, false, false); + } + +-stack<Move> moves; ++std::stack<Move> moves; + + void undoClearMoves() + { +diff -ru xfreecell.orig/widget/container.cpp xfreecell/widget/container.cpp +--- xfreecell.orig/widget/container.cpp 1999-03-03 09:34:52.000000000 -0800 ++++ xfreecell/widget/container.cpp 2004-02-25 02:17:24.000000000 -0800 +@@ -61,18 +61,18 @@ + + void NSContainer::remove(NSComponent* nsc) + { +- vector<NSComponent*>::iterator iter; ++ std::vector<NSComponent*>::iterator iter; + for (iter = nscVec.begin(); iter != nscVec.end(); iter++) + if (*iter == nsc) nscVec.erase(iter); + } + + void NSContainer::hremove(NSComponent* nsc) + { +- vector<NSComponent*>::iterator iter; ++ std::vector<NSComponent*>::iterator iter; + for (iter = nscVec.begin(); iter != nscVec.end(); iter++) { + if (*iter == nsc) { + int w = (*iter)->width() + _neighborGap; +- vector<NSComponent*>::iterator iter2 = iter + 1; ++ std::vector<NSComponent*>::iterator iter2 = iter + 1; + if (nscVec.size() == 0) { + _width = 0; _height = 0; + } else { +@@ -87,11 +87,11 @@ + + void NSContainer::vremove(NSComponent* nsc) + { +- vector<NSComponent*>::iterator iter; ++ std::vector<NSComponent*>::iterator iter; + for (iter = nscVec.begin(); iter != nscVec.end(); iter++) { + if (*iter == nsc) { + int h = (*iter)->height() + _neighborGap; +- vector<NSComponent*>::iterator iter2 = iter + 1; ++ std::vector<NSComponent*>::iterator iter2 = iter + 1; + if (nscVec.size() == 0) { + _width = 0; _height = 0; + } else { +diff -ru xfreecell.orig/widget/makefile xfreecell/widget/makefile +--- xfreecell.orig/widget/makefile 1999-03-17 21:54:57.000000000 -0800 ++++ xfreecell/widget/makefile 2004-02-25 02:17:59.000000000 -0800 +@@ -1,15 +1,13 @@ + OBJECTS=window.o plate.o string.o button.o label.o textfield.o container.o frame.o util.o scrollbar.o font.o main.o +-#C=/usr/local/gcc-2.8.1/bin/g++ +-CC=g++ +-CFLAGS=-g -Wall ++CFLAGS=$(CXXFLAGS) -Wall + LIBS=-L/usr/X11R6/lib -lX11 + LIBNAME=libns.a + + all: test.o $(OBJECTS) +- $(CC) $(CFLAGS) test.o $(OBJECTS) $(LIBS) ++ $(CXX) $(CFLAGS) test.o $(OBJECTS) $(LIBS) + + %.o: %.cpp +- $(CC) $(CFLAGS) -c $< ++ $(CXX) $(CFLAGS) -c $< + + clean: + rm -f *.o *~ a.out .nfs* dummy +diff -ru xfreecell.orig/widget/textfield.cpp xfreecell/widget/textfield.cpp +--- xfreecell.orig/widget/textfield.cpp 1999-03-03 09:34:52.000000000 -0800 ++++ xfreecell/widget/textfield.cpp 2004-02-25 02:17:24.000000000 -0800 +@@ -1,3 +1,4 @@ ++#include <cctype> + #include "widget.h" + + GC NSTextField::gc; +diff -ru xfreecell.orig/widget/widget.h xfreecell/widget/widget.h +--- xfreecell.orig/widget/widget.h 1999-03-15 08:29:32.000000000 -0800 ++++ xfreecell/widget/widget.h 2004-02-25 02:17:24.000000000 -0800 +@@ -114,7 +114,7 @@ + Elt(NSWindow* nw, Window w) { nswindow = nw; window = w; } + }; + +- static vector<Elt> eltVector; ++ static std::vector<Elt> eltVector; + static void eraseWindow(Window); + static void registerWindow(NSWindow*, Window); + }; +@@ -171,7 +171,7 @@ + void fontWindowHeight(unsigned int); + void resizable(bool arg) { _resizable = arg; } + +- string _label; ++ std::string _label; + private: + static const int fontGap = 4; + static XFontStruct* fontStruct; +@@ -272,7 +272,7 @@ + static unsigned int charWidth, charHeight; + + unsigned int maxCharNum; +- string _str; ++ std::string _str; + unsigned int cursorPos; + unsigned int strStart; + bool cursorOnTF; +@@ -327,7 +327,7 @@ + unsigned int _vGap, _hGap, _neighborGap; + Window _parentWindow; + +- vector<NSComponent*> nscVec; ++ std::vector<NSComponent*> nscVec; + }; + + // ##### NSHContainer ##### +diff -ru xfreecell.orig/widget/window.cpp xfreecell/widget/window.cpp +--- xfreecell.orig/widget/window.cpp 1999-03-03 09:34:52.000000000 -0800 ++++ xfreecell/widget/window.cpp 2004-02-25 02:17:24.000000000 -0800 +@@ -2,7 +2,7 @@ + + bool NSWindow::windowInitialized = false; + Window NSWindow::_root; +-vector<NSWindow::Elt> NSWindow::eltVector; ++std::vector<NSWindow::Elt> NSWindow::eltVector; + + NSWindow::NSWindow(bool create, Window w, int x, int y, unsigned int width, unsigned int height, + unsigned int borderWidth, unsigned long border, unsigned long bg) +@@ -86,8 +86,8 @@ + + void NSWindow::registerWindow(NSWindow* nsw, Window w) + { +- vector<Elt>::iterator begin = eltVector.begin(); +- vector<Elt>::iterator end = eltVector.end(); ++ std::vector<Elt>::iterator begin = eltVector.begin(); ++ std::vector<Elt>::iterator end = eltVector.end(); + Elt elt(nsw, w); + + if (eltVector.size() == 0 || w > eltVector.back().window) { +@@ -95,7 +95,7 @@ + return; + } + +- for (vector<Elt>::iterator iter = begin; iter != end; iter++) ++ for (std::vector<Elt>::iterator iter = begin; iter != end; iter++) + if ((*iter).window > w) + eltVector.insert(iter, elt); + +@@ -104,9 +104,9 @@ + + void NSWindow::eraseWindow(Window w) + { +- vector<Elt>::iterator begin = eltVector.begin(); +- vector<Elt>::iterator end = eltVector.end(); +- vector<Elt>::iterator iter; ++ std::vector<Elt>::iterator begin = eltVector.begin(); ++ std::vector<Elt>::iterator end = eltVector.end(); ++ std::vector<Elt>::iterator iter; + + for (iter = begin; iter != end; iter++) { + if ((*iter).window == w) eltVector.erase(iter); diff --git a/games-board/xfreecell/metadata.xml b/games-board/xfreecell/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/xfreecell/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/xfreecell/xfreecell-1.0.5b.ebuild b/games-board/xfreecell/xfreecell-1.0.5b.ebuild new file mode 100644 index 000000000000..ed49c806ef66 --- /dev/null +++ b/games-board/xfreecell/xfreecell-1.0.5b.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="A freecell game for X" +HOMEPAGE="http://www2.giganet.net/~nakayama/" +SRC_URI="http://www2.giganet.net/~nakayama/${P}.tgz + http://www2.giganet.net/~nakayama/MSNumbers.gz" + +LICENSE="HPND" +SLOT="0" +KEYWORDS="amd64 ~ppc ppc64 x86" +IUSE="" + +RDEPEND="x11-libs/libXext" +DEPEND="${RDEPEND} + x11-proto/xextproto" + +S=${WORKDIR}/${PN} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-gentoo.patch \ + "${FILESDIR}"/${P}-gcc43.patch +} + +src_install() { + dogamesbin xfreecell + insinto "${GAMES_DATADIR}"/${PN} + doins "${WORKDIR}"/MSNumbers + dodoc CHANGES README mshuffle.txt + doman xfreecell.6 + prepgamesdirs +} diff --git a/games-board/xgammon/Manifest b/games-board/xgammon/Manifest new file mode 100644 index 000000000000..37d2ed07b5bb --- /dev/null +++ b/games-board/xgammon/Manifest @@ -0,0 +1 @@ +DIST xgammon-0.98a.tar.gz 76415 SHA256 c11d4efa7c6d9755b1d7bca8afc6a41058a92f5935ad8e08b6e6375954d453fc SHA512 1176146d7cf4d5cbf47e911190de329d87650084044d1a2e5a53ed367d2b90ec63c0e906946c4523c2fb21b68df8b86cf0567527a91058e8db66a76086a02092 WHIRLPOOL 776a3a4efc020e3a9420b63e58d32fd44dcdb8a525f153d65806bbee336971511ac08e47fd30dbcb133bb71c5d1faf32f76a874bd0d029dfbfe7df70f2b89fcb diff --git a/games-board/xgammon/files/gcc33.patch b/games-board/xgammon/files/gcc33.patch new file mode 100644 index 000000000000..90b001f2a196 --- /dev/null +++ b/games-board/xgammon/files/gcc33.patch @@ -0,0 +1,59 @@ +--- xgammon.c.orig 2004-05-07 14:44:07.000000000 -0700 ++++ xgammon.c 2004-05-07 14:45:52.000000000 -0700 +@@ -944,31 +944,31 @@ + for (option=1; option<argc; option++) { + if (strcmp (argv[option], "-?") == 0 || + strcmp (argv[option], "-help") == 0) { +-puts ("xgammon [-otherdisplay (display)] +- [-boardgeometry (string)] +- [-boardcolor (color)] [-bc (color)] +- [-darkcolor (color)] [-dc (color)] +- [-lightcolor (color)] [-lc (color)] +- [-barcolor (color)] [-b (color)] +- [-whitecolor (color)] the stone color for \"white\" +- [-blackcolor (color)] the stone color for \"black\" +- [-doublerfont (font)] sets the (big) font for the doubler dice +- [-doubling +doubling] sets if you wish the computer to double +- [-h (black|white)] set the color for the human player +- (implies a human versus computer game) +- [-gamekind -g (hvc|cvc|hvh)] sets the gamekind to either +- human vs. human computer vs. computer +- or human vs. computer (default) +- [-winat (points)] play a tournament up to \"points\" points +- [-watchmove +wachmove] if you wish to see the flying stones +- [-buttonmove +buttonmove] set stones by simply pressing button +- [-autoplay +autoplay] automatic play when only one move +- is possible +- [-stonesteps (number)] sets the stepsize the stones fly +- in pixel (implies +watchmove) +- [-delaytime (tsec.)] sets the time the cumputer waits +- after each turn (implies -watchmove) +- [-?] [-help] print this string"); ++puts ("xgammon [-otherdisplay (display)]\n" ++" [-boardgeometry (string)]\n" ++" [-boardcolor (color)] [-bc (color)]\n" ++" [-darkcolor (color)] [-dc (color)]\n" ++" [-lightcolor (color)] [-lc (color)]\n" ++" [-barcolor (color)] [-b (color)]\n" ++" [-whitecolor (color)] the stone color for \"white\"\n" ++" [-blackcolor (color)] the stone color for \"black\"\n" ++" [-doublerfont (font)] sets the (big) font for the doubler dice\n" ++" [-doubling +doubling] sets if you wish the computer to double\n" ++" [-h (black|white)] set the color for the human player\n" ++" (implies a human versus computer game)\n" ++" [-gamekind -g (hvc|cvc|hvh)] sets the gamekind to either\n" ++" human vs. human computer vs. computer\n" ++" or human vs. computer (default)\n" ++" [-winat (points)] play a tournament up to \"points\" points\n" ++" [-watchmove +wachmove] if you wish to see the flying stones\n" ++" [-buttonmove +buttonmove] set stones by simply pressing button\n" ++" [-autoplay +autoplay] automatic play when only one move\n" ++" is possible\n" ++" [-stonesteps (number)] sets the stepsize the stones fly\n" ++" in pixel (implies +watchmove)\n" ++" [-delaytime (tsec.)] sets the time the cumputer waits\n" ++" after each turn (implies -watchmove)\n" ++" [-?] [-help] print this string"); + exit (0); + } else { + fprintf (stderr,"xgammon: unknown option %s (ignored)\n", argv[option]); diff --git a/games-board/xgammon/files/xgammon-0.98-broken.patch b/games-board/xgammon/files/xgammon-0.98-broken.patch new file mode 100644 index 000000000000..e02ac10b4992 --- /dev/null +++ b/games-board/xgammon/files/xgammon-0.98-broken.patch @@ -0,0 +1,15 @@ +--- xgammon/lib/db.c.orig Sat Jan 6 12:14:12 2001 ++++ xgammon/lib/db.c Sat Jan 6 12:13:56 2001 +@@ -259,10 +259,11 @@ + close(fid); + } + +-void main() ++int main() + { + set_binom(); + set_naufm(); + set_offset(); + set_V_Werte(); ++ return(0); + } diff --git a/games-board/xgammon/files/xgammon-0.98-config.patch b/games-board/xgammon/files/xgammon-0.98-config.patch new file mode 100644 index 000000000000..363d1730933c --- /dev/null +++ b/games-board/xgammon/files/xgammon-0.98-config.patch @@ -0,0 +1,23 @@ +--- xgammon-0.98/xgammon.ad.rhconfig Tue Aug 29 01:35:39 1995 ++++ xgammon-0.98/xgammon.ad Wed Aug 12 18:22:25 1998 +@@ -67,4 +67,4 @@ + xgammon.buttonmove: false + xgammon.stonesteps: 5 + xgammon.delaytime: 5 +-xgammon.database: lib/xgammon.db ++xgammon.database: /usr/lib/X11/xgammon/xgammon.db +--- xgammon-0.98/Imakefile.rhconfig Wed Aug 23 15:26:39 1995 ++++ xgammon-0.98/Imakefile Wed Aug 12 18:42:55 1998 +@@ -12,9 +12,9 @@ + + ComplexProgramTarget(xgammon) + InstallAppDefaults(XGammon) +-MakeDirectories(install, $(LIBDIR)/xgammon) +-InstallNonExec(lib/xgammon.db, $(LIBDIR)/xgammon) +-MANSUFFIX = 6 ++MakeDirectories(install,$(LIBDIR)/xgammon) ++InstallNonExec(lib/xgammon.db,$(LIBDIR)/xgammon) ++MANSUFFIX = 1 + + xgammon.o: xgammon.c + $(CC) $(CFLAGS) -DDATABASE=\"$(LIBDIR)/xgammon/xgammon.db\" -c xgammon.c diff --git a/games-board/xgammon/metadata.xml b/games-board/xgammon/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/xgammon/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/xgammon/xgammon-0.98.ebuild b/games-board/xgammon/xgammon-0.98.ebuild new file mode 100644 index 000000000000..a6448a083cbf --- /dev/null +++ b/games-board/xgammon/xgammon-0.98.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit toolchain-funcs eutils games + +DESCRIPTION="very nice backgammon game for X" +HOMEPAGE="http://fawn.unibw-hamburg.de/steuer/xgammon/xgammon.html" +SRC_URI="http://fawn.unibw-hamburg.de/steuer/xgammon/Downloads/${P}a.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc sparc x86" +IUSE="" + +RDEPEND="x11-libs/libXaw" +DEPEND="${RDEPEND} + app-text/rman + x11-misc/imake" + +S=${WORKDIR}/${P}a + +src_prepare() { + epatch \ + "${FILESDIR}/${P}-broken.patch" \ + "${FILESDIR}/${P}-config.patch" \ + "${FILESDIR}/gcc33.patch" +} + +src_configure() { + xmkmf || die +} + +src_compile() { + env PATH=".:${PATH}" emake \ + EXTRA_LDOPTIONS="${LDFLAGS}" \ + CDEBUGFLAGS="${CFLAGS}" \ + CC=$(tc-getCC) +} + +pkg_postinst() { + games_pkg_postinst + einfo "xgammon need helvetica fonts" + einfo "They can be loaded emerging media-fonts/font-adobe-100dpi" + einfo "or similar. Remember to restart X after loading fonts" +} diff --git a/games-board/xmahjongg/Manifest b/games-board/xmahjongg/Manifest new file mode 100644 index 000000000000..24a401115358 --- /dev/null +++ b/games-board/xmahjongg/Manifest @@ -0,0 +1 @@ +DIST xmahjongg-3.7.tar.gz 551834 SHA256 243d63681cc25b97b30fee76aac98f1923f4734e772c57335b911f4c8647ffcf SHA512 eb952b38b2ea79f3037a6e8063042f4094e0719edd366c0327350aaf6484ee64ad5d174741bbb80fc49dba62eba4790ffc97eb1bf0d942149e614bde7bd1759a WHIRLPOOL d9959be86690e3007c679124b719c7b965ee189b258623041e3a6d37e7a0a33b46f40a639ca824ee72d47e9afe8f364d9760b1f2b6852d148ddbcfd07a55cbb8 diff --git a/games-board/xmahjongg/metadata.xml b/games-board/xmahjongg/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/xmahjongg/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/xmahjongg/xmahjongg-3.7.ebuild b/games-board/xmahjongg/xmahjongg-3.7.ebuild new file mode 100644 index 000000000000..88cf712f5f6a --- /dev/null +++ b/games-board/xmahjongg/xmahjongg-3.7.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="friendly GUI version of xmahjongg" +HOMEPAGE="http://www.lcdf.org/xmahjongg/" +SRC_URI="http://www.lcdf.org/xmahjongg/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~mips ppc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" +IUSE="" + +RDEPEND="x11-libs/libX11" +DEPEND="${RDEPEND} + x11-libs/libXt" + +src_prepare() { + sed -i \ + -e '/X_PRE_LIBS/s:-lSM -lICE::' \ + configure || die +} + +src_install() { + default + newicon share/tiles/small.gif ${PN}.gif + make_desktop_entry xmahjongg "Xmahjongg" /usr/share/pixmaps/${PN}.gif + prepgamesdirs +} diff --git a/games-board/xmille/Manifest b/games-board/xmille/Manifest new file mode 100644 index 000000000000..3a288fc85ec0 --- /dev/null +++ b/games-board/xmille/Manifest @@ -0,0 +1,2 @@ +DIST xmille_2.0-12.diff.gz 6041 SHA256 a5266f279a680d600b7c97a6d691d6e69eee03737349f64e29d1b21791ea242d SHA512 8f8a71ce6f4359b4d8fbecd0e6149783abc4ded07da485c91c67784fd6c4988d074ad9bda7a8a47689ffe379dd8d20f9968ef7e6998ed22b735c51a2fae5828d WHIRLPOOL e2bedc1a243cde9103a36996b42d4be6d188705583e75fa79a4ead54b0fd4e4ed4699dc998431423760bd3c5253edc202b55a097af935041516b5026c13464c0 +DIST xmille_2.0.orig.tar.gz 68178 SHA256 52a621f9adb55bbed06e72981ab8efdafecda2d301068513ec9a815d21456abb SHA512 028740785dfc13b4088810855358b9dab75fbb79221dd4218ef0c19550c2180fe92e553d0a474bf45091b4008988e1a093a6d5bac99fe1ccafcaec3429cd0e8b WHIRLPOOL 8204509fa66552634e35508093b0c18253afd93fd3d2c2e2401d370b03cedb5be02e19c8b7974cac4df087953716032b2a1d547ff07b52e8d968276abfcfe585 diff --git a/games-board/xmille/metadata.xml b/games-board/xmille/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/xmille/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/xmille/xmille-2.0-r2.ebuild b/games-board/xmille/xmille-2.0-r2.ebuild new file mode 100644 index 000000000000..5cabd02d6e34 --- /dev/null +++ b/games-board/xmille/xmille-2.0-r2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils toolchain-funcs games + +DEB_PATCH_VER="12" +DESCRIPTION="Mille Bournes card game" +HOMEPAGE="http://www.milleborne.info/" +SRC_URI="mirror://debian/pool/main/x/xmille/${PN}_${PV}.orig.tar.gz + mirror://debian/pool/main/x/xmille/${PN}_${PV}-${DEB_PATCH_VER}.diff.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +RDEPEND="x11-libs/libXext" +DEPEND="${RDEPEND} + app-text/rman + x11-misc/imake" + +S=${WORKDIR}/${P}.orig + +PATCHES=( "${WORKDIR}"/${PN}_${PV}-${DEB_PATCH_VER}.diff ) + +src_configure() { + xmkmf || die +} + +src_compile() { + emake -j1 \ + AR="$(tc-getAR) clq" \ + RANLIB="$(tc-getRANLIB)" \ + CC="$(tc-getCC)" \ + CDEBUGFLAGS="${CFLAGS}" \ + EXTRA_LDOPTIONS="${LDFLAGS}" +} + +src_install() { + dogamesbin xmille + dodoc CHANGES README + newman xmille.man xmille.6 + prepgamesdirs +} diff --git a/games-board/xscrabble/Manifest b/games-board/xscrabble/Manifest new file mode 100644 index 000000000000..82f3026a8129 --- /dev/null +++ b/games-board/xscrabble/Manifest @@ -0,0 +1,3 @@ +DIST xscrabble-2.10.tgz 83575 SHA256 a496804b62ad4bd95792505c3f6dbb9fce33cc49aa38ad36c4a812f7e1e2dff1 SHA512 38137b3dfd3156c3748719136a30fbc7f04910538bdbdec3e9d50e3efe326ab7119a45171e0fa2cd95cd81f0642070e2e011c165284766eb7a14bd7d2aa660db WHIRLPOOL 04e19a5d5d88ff978705bbddf895c57b22054f019b9cc43f9ecdc2ee902eceefbfdd6e3c05d0d7960d80813ebc182dd6a2ba196be5e699b95197e7839a7e74c2 +DIST xscrabble_en.tgz 393527 SHA256 8bd52efeb50419e310f7a4c436045c3028903a197294bd8af0eab32093074fb0 SHA512 05e4bca6ec2a9b7698f5c266bf5cede574cbef87883d7cac6dc35084fa2976dcd23f3a2215b674b9f36d7c170e6af021c3ec0884f06c9803cd67ec300651ac41 WHIRLPOOL 4523746f692f2a7a2b985705785f550991eb99b8339b865152b5e473f5c6cfa187cd1e77ffb2ae1d43218ebfe300cd0c4d49b1428d167cda0b12ab7cbb23fa34 +DIST xscrabble_fr.tgz 810737 SHA256 9a27b610e789362c3678fee27891cef8ca682be7cedea1b6d26895ec0c171b4a SHA512 f5425fa8bffec57e6eff16a3d33ae4569fc00343e0ed5e4f4e1e189ed02a5be7416c1549b1978042e030efbfb3a484abcac9479e7fe43de929b11d8ccf8ea3e1 WHIRLPOOL f62db76e3bc720e7667a903d04fb04e2ff1dfe4274668cfb153ee21889b8248b855ca8719cd33e3c43601399e4c3859dfc23f37a1b66291d64c238fd7bc1b99f diff --git a/games-board/xscrabble/files/xscrabble-2.10-build.patch b/games-board/xscrabble/files/xscrabble-2.10-build.patch new file mode 100644 index 000000000000..7d5214c7db34 --- /dev/null +++ b/games-board/xscrabble/files/xscrabble-2.10-build.patch @@ -0,0 +1,13 @@ +respect compiler, ldflags and cflags + +--- build ++++ build +@@ -36,7 +36,7 @@ + #define RULES_FILE \"$LIBDIR/en/scrabble_rules\" + " > src/config.h + xmkmf -a +- make ++ make CC="${CC}" CCOPTIONS="${CFLAGS}" LOCAL_LDFLAGS="${LDFLAGS}" + echo " + Now, type './build install' to install programs in $BINDIR + " diff --git a/games-board/xscrabble/files/xscrabble-2.10-path-fixes.patch b/games-board/xscrabble/files/xscrabble-2.10-path-fixes.patch new file mode 100644 index 000000000000..27a18689b1ed --- /dev/null +++ b/games-board/xscrabble/files/xscrabble-2.10-path-fixes.patch @@ -0,0 +1,35 @@ +--- build ++++ build +@@ -1,9 +1,10 @@ + #!/bin/sh + + # Install defaults +-APPDEFAULTS=/usr/lib/X11/app-defaults +-BINDIR=/usr/games/bin +-LIBDIR=/usr/games/lib/scrabble ++APPDEFAULTS=$DESTDIR/usr/$LIBDIR/X11/app-defaults ++REAL_APPDEFAULTS=/usr/$LIBDIR/X11/app-defaults ++BINDIR=$DESTDIR/usr/games/bin ++LIBDIR=$DESTDIR/usr/share/games/xscrabble + + # Version (don't modify without knowing!!) + MAJOR=2 +@@ -53,6 +54,7 @@ + + if test "$1" = "install" ; then + mkdirhier $BINDIR ++ mkdir -p $APPDEFAULTS + echo "mkdirhier $BINDIR" + install -c -s src/xscrab $BINDIR + echo "install -c -s src/xscrab $BINDIR" +@@ -90,8 +92,8 @@ + echo "mv -f xscrabble_$2/app-defaults/XScrabble_$2 $APPDEFAULTS" + rm -f $APPDEFAULTS/XScrabble + echo "rm -f $APPDEFAULTS/XScrabble" +- ln -fs $APPDEFAULTS/XScrabble_$2 $APPDEFAULTS/XScrabble +- echo "ln -fs $APPDEFAULTS/XScrabble_$2 $APPDEFAULTS/XScrabble" ++ ln -fs $REAL_APPDEFAULTS/XScrabble_$2 $APPDEFAULTS/XScrabble ++ echo "ln -fs $REAL_APPDEFAULTS/XScrabble_$2 $APPDEFAULTS/XScrabble" + chmod a+rwx $LIBDIR/$2 + chmod a+rw $LIBDIR/$2/scrabble_scores + rm -rf xscrabble_$2 diff --git a/games-board/xscrabble/metadata.xml b/games-board/xscrabble/metadata.xml new file mode 100644 index 000000000000..c6ffe72d4ad9 --- /dev/null +++ b/games-board/xscrabble/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="freshmeat">xscrabble</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-board/xscrabble/xscrabble-2.10-r1.ebuild b/games-board/xscrabble/xscrabble-2.10-r1.ebuild new file mode 100644 index 000000000000..e1c779a3ec9b --- /dev/null +++ b/games-board/xscrabble/xscrabble-2.10-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils multilib games + +DESCRIPTION="An X11 clone of the well-known Scrabble" +HOMEPAGE="http://freshmeat.net/projects/xscrabble/?topic_id=80" +SRC_URI="ftp://ftp.ac-grenoble.fr/ge/educational_games/${P}.tgz + linguas_fr? ( ftp://ftp.ac-grenoble.fr/ge/educational_games/xscrabble_fr.tgz ) + ftp://ftp.ac-grenoble.fr/ge/educational_games/xscrabble_en.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="linguas_fr" + +RDEPEND="x11-libs/libXaw + x11-libs/libXp" +DEPEND="${RDEPEND} + x11-misc/gccmakedep + x11-misc/imake" + +src_unpack() { + unpack ${P}.tgz + cp "${DISTDIR}"/xscrabble_en.tgz . + use linguas_fr && cp "${DISTDIR}"/xscrabble_fr.tgz . +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-path-fixes.patch \ + "${FILESDIR}"/${P}-build.patch + sed -i '/install/s/-s //' build || die "sed failed" +} + +src_compile() { + ./build bin || die "build failed" +} + +src_install() { + local f + export DESTDIR="${D}" LIBDIR="$(get_libdir)" + ./build install || die "install failed" + if use linguas_fr ; then + ./build lang fr || die "fr failed" + fi + ./build lang en || die "en failed" + for f in "${D}"/usr/"${LIBDIR}"/X11/app-defaults/* ; do + [[ -L ${f} ]] && continue + sed -i \ + -e "s:/usr/games/lib/scrabble/:${GAMES_DATADIR}/${PN}/:" \ + -e "s:fr/eng:fr/en:" \ + ${f} || die "sed ${f} failed" + done + dodoc CHANGES README + prepgamesdirs +} diff --git a/games-board/xskat/Manifest b/games-board/xskat/Manifest new file mode 100644 index 000000000000..173805ac9480 --- /dev/null +++ b/games-board/xskat/Manifest @@ -0,0 +1 @@ +DIST xskat-4.0.tar.gz 179059 SHA256 8ba52797ccbd131dce69b96288f525b0d55dee5de4008733f7a5a51deb831c10 SHA512 508d83886063be01aef509fa8050110e599e0120025a94747717fcbae38e2196e8db041296b984fe37895c211519f511cf75dfa6b948c5789e6b37064f3d0c0d WHIRLPOOL 81813add81a20e10f152be29c598aa060b44ad220135dedadeaade940625cca5afa35eae66ed698d09c2ab78d93450bed7c0ce0783b31a4f6ce6c46cc8eab5af diff --git a/games-board/xskat/metadata.xml b/games-board/xskat/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-board/xskat/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-board/xskat/xskat-4.0.ebuild b/games-board/xskat/xskat-4.0.ebuild new file mode 100644 index 000000000000..8063f00398a4 --- /dev/null +++ b/games-board/xskat/xskat-4.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit toolchain-funcs eutils games + +DESCRIPTION="Famous german card game" +HOMEPAGE="http://www.xskat.de/xskat.html" +SRC_URI="http://www.xskat.de/${P}.tar.gz" + +LICENSE="freedist" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 x86" +IUSE="" + +RDEPEND="x11-libs/libX11 + media-fonts/font-misc-misc" +DEPEND="${RDEPEND} + x11-misc/gccmakedep + x11-misc/imake + x11-proto/xproto" + +src_prepare() { + xmkmf -a || die +} + +src_compile() { + emake CDEBUGFLAGS="${CFLAGS}" EXTRA_LDOPTIONS="${LDFLAGS}" CC="$(tc-getCC)" +} + +src_install() { + dogamesbin xskat + newman xskat.man xskat.6 + dodoc CHANGES README{,.IRC} + newicon icon.xbm ${PN}.xbm + make_desktop_entry ${PN} XSkat /usr/share/pixmaps/${PN}.xbm + prepgamesdirs +} |