diff options
Diffstat (limited to 'games-board')
-rw-r--r-- | games-board/awale/Manifest | 18 | ||||
-rw-r--r-- | games-board/awale/awale-1.5.ebuild | 53 | ||||
-rw-r--r-- | games-board/awale/files/awale-1.5-build.patch | 116 | ||||
-rw-r--r-- | games-board/awale/metadata.xml | 10 |
4 files changed, 195 insertions, 2 deletions
diff --git a/games-board/awale/Manifest b/games-board/awale/Manifest index 533077b280b1..0459721a30e6 100644 --- a/games-board/awale/Manifest +++ b/games-board/awale/Manifest @@ -1,5 +1,19 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + AUX awale-1.5-build.patch 3315 SHA256 acf4a0e0d8c5822ac869711136f81377a2a10314dfbd988a27f3573c080b169d SHA512 d386dd95aaa1e2b21b7b23d684997b8758a263edabb757438d9254f44877d4881cf0e850825a1fb32cff5042a78eeb907f9c25f88db39ab1c748d73f619d8927 WHIRLPOOL 81d509dfa46a936aa6fb048db55f4fa05d2f8b8fc896cc35d53c5a00405890c9a2c261b2f7d607bf37342bfec8f88bfcf5ad03778ec86404faa40ddf616b4f6d DIST awale-1.5.tar.gz 489357 SHA256 8bf9812fd6cfe142e18a35474f6a366c1b12f960863a33421f6d2e448ed47014 SHA512 b3f33068d7d6cfd964051e15cfd84e7f2c8483c30f2ccea35e2dddb34353ea984561fdf28c0d668404d80cda89c6d5fcd0004a1a86d92325e5f6fc2f88197c61 WHIRLPOOL 05b46f8f8ea89236aa30755f4d6f39daa24135421220f35e4c96f919facb138871735ebe5f1741e29f4a2fc6572381ad2aa0768197112c22eaf961b0d9814792 -EBUILD awale-1.5.ebuild 1085 SHA256 89b6c211196c5a2a6a99e07d343c09ced289c91322e76ca1ff5070aa4e11ca8b SHA512 f84e73d4d023071628e5c4171faeb5ea6696005ada635b8c23856a92b7d9f8880ed0cee05e0ee79cf3e94e6f8eb1630e9ec6dd27884426fe842d87d8fe4a09dc WHIRLPOOL 2fd7abe984ce4508e90c84f26d9c437785176e2ee2f25acc2e21a67506fc520fd171e0b19b5ee9e1965a59acd2a7d3ea0797ddaf0c92d697b532a8ae0bf68b17 -MISC ChangeLog 291 SHA256 aefbd9b615915253ca6f00effa81b3e85aa48bab3035bfa84d94360ed417cadd SHA512 c9207db936c230be184b32c1f81561ebb2ced06612a51e0f77fc351c1e023949552733eb9ce7fc5aa621fb340db4ffecdf507a29ccec81ef38899ddb2597f9b8 WHIRLPOOL c75213c5886d9a664d5f4698172cfe7f14621974db2c47d3384ef85bba08cd0100205ef4f9181d8575e952b7cbb0e52a0497c799e9697fb04d9babc2c091751d +EBUILD awale-1.5.ebuild 1183 SHA256 59fc7a9e436162ae843023ce79cf69ffb2b8d36a2796ee78bbff283f01539486 SHA512 f96e8e1e327f9d4866a7c05eebe3a0babddafd8327aa9766be25a854e369714db2aa9621664ef8f2f39ccdba52663179eb7eae3d4a1edd303980c8e2ee0f4320 WHIRLPOOL f47c35cffa783ea74dd11815b7d22fca069a87437923086987245c2bab41c2540836635e8952a5f636e2c1fe2e3e6c55261010f95475b596c0e4d84536c581f1 +MISC ChangeLog 382 SHA256 a71027b2c8ab340a37728d9c1d4684ba4a6a15c7c747f911a58099ab6ca945eb SHA512 c5507523f7e509ca559f94b81a3510916fc3d8db60d4823c6791a381547c7defdc83a6a7782dd63b9597c039736fc9814b77be1c1b42000dfe1188b2f8055e70 WHIRLPOOL 9f62a9ffbfa0dbc28c4b3751ec0da4ce61e52c854beb4b9e04cb59b6cb4034038ebd4d056f78ed1863123c7736dbdec63f69143c473575d6a317afd5cb5f063d MISC metadata.xml 255 SHA256 8ce125b1cb2a8da5fe808223ae6ed60fe03598c692e5020f0a8aaee09b5d6ca3 SHA512 29f4a4a15fc968a3151c449354cd2003831f4b66b57d72222c46d4e4f7ff0586ed3f0b76d09fadf0b43fbb3a46951b19207dd6d38b79fe394b61694cd272ad95 WHIRLPOOL 373afc42b6a5f9f473397b1b95b73377110a2d7cf3590bdb8e0ef4b58c9628a06b1af46db726416fbaad0c29b91ee1eb631eccac14a26be994b705a43f097db8 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQEcBAEBCAAGBQJRBX4PAAoJEFpvPKfnPDWzc/wIAKmiCKwr5uNYu8hQw/Dcnl7v +YjhHkBkWHg4VbwZsLliaPosivPJdMMBzduSNgymXhZvE9cBS++2zQN0SWdYKZPag +iiGlu8YIWHy8kOsNSvU8VrfCQhMApMHweIsGUI82Flpa6iIQQZHFSameYbwzTdbl +FAFP2d8Y0amAs2HvdNvmJqyKEDbmq8FFMjiXh1tDZ/RK7jF32410W+juMutjtHkz +TaPHvbcXCh/O7VN6Ocmu4LfWNrvhQ/dgNGdZuERjc4hP6oC2ZpQoziKaayOUgFBN +SDCdbyKSjMcp58tIYj9ppqlWul5vuG/ed0iP39cNoaC98Y2B428FIDm5cRfQNSw= +=FzSM +-----END PGP SIGNATURE----- diff --git a/games-board/awale/awale-1.5.ebuild b/games-board/awale/awale-1.5.ebuild new file mode 100644 index 000000000000..7e6e9849f2e2 --- /dev/null +++ b/games-board/awale/awale-1.5.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-board/awale/awale-1.5.ebuild,v 1.1 2013/01/27 19:20:44 hasufell Exp $ + +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" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="tk" + +RDEPEND="tk? ( dev-lang/tcl dev-lang/tk )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-build.patch + mv configure.in configure.ac || die + mv src/xawale.tcl src/xawale.tcl.in || die + 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() { + emake -j1 DESTDIR="${D}" install + dodoc AUTHORS ChangeLog NEWS README THANKS + prepgamesdirs + use tk && fperms +x "${GAMES_DATADIR}"/${PN}/xawale.tcl +} + +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/awale/files/awale-1.5-build.patch b/games-board/awale/files/awale-1.5-build.patch new file mode 100644 index 000000000000..39d1239d87cd --- /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: share/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..e52db06ebd8c --- /dev/null +++ b/games-board/awale/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <maintainer> + <email>hasufell@gentoo.org</email> + <name>Julian Ospald</name> + </maintainer> +</pkgmetadata> + |