diff options
Diffstat (limited to 'games-puzzle/groundhog')
-rw-r--r-- | games-puzzle/groundhog/Manifest | 2 | ||||
-rw-r--r-- | games-puzzle/groundhog/files/groundhog-1.4-flags.patch | 32 | ||||
-rw-r--r-- | games-puzzle/groundhog/groundhog-1.4.ebuild | 47 | ||||
-rw-r--r-- | games-puzzle/groundhog/metadata.xml | 5 |
4 files changed, 86 insertions, 0 deletions
diff --git a/games-puzzle/groundhog/Manifest b/games-puzzle/groundhog/Manifest new file mode 100644 index 000000000000..c8451ed684a8 --- /dev/null +++ b/games-puzzle/groundhog/Manifest @@ -0,0 +1,2 @@ +DIST groundhog-1.4.tar.gz 221871 SHA256 75567245a041a70f1ecb29503a424889136fcde81123234aedf5fb3ef9fad549 SHA512 9d1cf9073658cd325c4dceb6009825f50d8d4c55d0cca1b762cfdd066663257958d92e0e67ad49593add5821ce202e19c1106793ae8c77e4776c3b2e1fdc093c WHIRLPOOL 819caecd374d8e813e513f6d51e1cb170c480fee2f28203b0b239e2c0ba76c213cdb583fef1bd431cc28d8e3693a4ec79f748ab860f6e131383f8319b05c177f +DIST groundhog_1.4-9.diff.gz 8613 SHA256 0303ee125dac6118a7bc76d9eba9eb18ac9996549bd8f427ab634f594aa88154 SHA512 ddbb7c8b51fe63a1d318e080133737a851276ab55324875e5d68650d2399ac141667c62ab79ee41ababd2b5426e7bee5f158e7aa4edfe8ee82c6c3b6fb8179b8 WHIRLPOOL 01b46cc9a98725e76c59cbec46c8a451cacd5bf0facaaceb85c09ae5ab33414c2db810646a3c73a62aac28bf319a5304eb8e9c9ceca2f823d07f7bce04e6cf91 diff --git a/games-puzzle/groundhog/files/groundhog-1.4-flags.patch b/games-puzzle/groundhog/files/groundhog-1.4-flags.patch new file mode 100644 index 000000000000..48275a8c39b1 --- /dev/null +++ b/games-puzzle/groundhog/files/groundhog-1.4-flags.patch @@ -0,0 +1,32 @@ +respect flags + +applied on top of debian patches + +--- configure.in ++++ configure.in +@@ -46,8 +46,6 @@ + dnl Checks for libraries. + dnl AM_PATH_GTK_2_0(2.0.0,,AC_MSG_ERROR(Groundhog needs GTK 2.0)) + +-CXXFLAGS="-O2 -Wall" +- + dnl Checks for header files. + AC_CHECK_HEADERS(unistd.h) + +@@ -57,16 +55,6 @@ + + dnl Checks for library functions. + +-dnl Use -Wall if we have gcc. +-changequote(,)dnl +-if test "x$GCC" = "xyes"; then +- case " $CFLAGS " in +- *[\ \ ]-Wall[\ \ ]*) ;; +- *) CFLAGS="$CFLAGS -Wall" ;; +- esac +-fi +-changequote([,])dnl +- + AC_OUTPUT([ m4/Makefile intl/Makefile + Makefile + src/Makefile diff --git a/games-puzzle/groundhog/groundhog-1.4.ebuild b/games-puzzle/groundhog/groundhog-1.4.ebuild new file mode 100644 index 000000000000..139678eb2698 --- /dev/null +++ b/games-puzzle/groundhog/groundhog-1.4.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 eutils autotools games + +DEB_VER="9" +DESCRIPTION="Put the balls in the pockets of the same color by manipulating a maze of tubes" +HOMEPAGE="http://home-2.consunet.nl/~cb007736/groundhog.html" +SRC_URI="http://home-2.consunet.nl/~cb007736/${P}.tar.gz + mirror://debian/pool/main/g/groundhog/groundhog_${PV}-${DEB_VER}.diff.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="nls" + +RDEPEND="x11-libs/gtk+:2 + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +src_prepare() { + cd "${WORKDIR}" + epatch groundhog_${PV}-${DEB_VER}.diff + cd "${S}" + sed -e "s:groundhog-1.4/::" -i \ + debian/patches/sv.po.patch || die + epatch \ + $(sed -e 's:^:debian/patches/:' debian/patches/series) \ + "${FILESDIR}"/${P}-flags.patch + mv configure.in configure.ac || die + AT_M4DIR="m4" eautoreconf + sed -i 's:$(localedir):/usr/share/locale:' \ + $(find . -name 'Makefile.in*') || die +} + +src_configure() { + egamesconf $(use_enable nls) +} + +src_install() { + default + prepgamesdirs +} diff --git a/games-puzzle/groundhog/metadata.xml b/games-puzzle/groundhog/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-puzzle/groundhog/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> |