summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-01-27 19:20:44 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-01-27 19:20:44 +0000
commit5c87f574881866e4776713b2877e4cf9bc9628e1 (patch)
treef25109df10f57552a502e2c4d466dc723fb83991 /games-board/awale
parentDrop old. Use new fcaps.eclass (diff)
downloadgentoo-2-5c87f574881866e4776713b2877e4cf9bc9628e1.tar.gz
gentoo-2-5c87f574881866e4776713b2877e4cf9bc9628e1.tar.bz2
gentoo-2-5c87f574881866e4776713b2877e4cf9bc9628e1.zip
initial import wrt #344445
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'games-board/awale')
-rw-r--r--games-board/awale/ChangeLog10
-rw-r--r--games-board/awale/Manifest5
-rw-r--r--games-board/awale/awale-1.5.ebuild53
-rw-r--r--games-board/awale/files/awale-1.5-build.patch116
-rw-r--r--games-board/awale/metadata.xml10
5 files changed, 194 insertions, 0 deletions
diff --git a/games-board/awale/ChangeLog b/games-board/awale/ChangeLog
new file mode 100644
index 000000000000..564619563913
--- /dev/null
+++ b/games-board/awale/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for games-board/awale
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/awale/ChangeLog,v 1.1 2013/01/27 19:20:44 hasufell Exp $
+
+*awale-1.5 (27 Jan 2013)
+
+ 27 Jan 2013; Julian Ospald <hasufell@gentoo.org> +awale-1.5.ebuild,
+ +files/awale-1.5-build.patch, +metadata.xml:
+ initial import wrt #344445
+
diff --git a/games-board/awale/Manifest b/games-board/awale/Manifest
new file mode 100644
index 000000000000..533077b280b1
--- /dev/null
+++ b/games-board/awale/Manifest
@@ -0,0 +1,5 @@
+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
+MISC metadata.xml 255 SHA256 8ce125b1cb2a8da5fe808223ae6ed60fe03598c692e5020f0a8aaee09b5d6ca3 SHA512 29f4a4a15fc968a3151c449354cd2003831f4b66b57d72222c46d4e4f7ff0586ed3f0b76d09fadf0b43fbb3a46951b19207dd6d38b79fe394b61694cd272ad95 WHIRLPOOL 373afc42b6a5f9f473397b1b95b73377110a2d7cf3590bdb8e0ef4b58c9628a06b1af46db726416fbaad0c29b91ee1eb631eccac14a26be994b705a43f097db8
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>
+