summaryrefslogtreecommitdiff
path: root/games-board/awale
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-board/awale
reinit the tree, so we can have metadata
Diffstat (limited to 'games-board/awale')
-rw-r--r--games-board/awale/Manifest8
-rw-r--r--games-board/awale/awale-1.5-r1.ebuild59
-rw-r--r--games-board/awale/awale-1.5.ebuild58
-rw-r--r--games-board/awale/files/awale-1.5-build.patch116
-rw-r--r--games-board/awale/metadata.xml8
5 files changed, 249 insertions, 0 deletions
diff --git a/games-board/awale/Manifest b/games-board/awale/Manifest
new file mode 100644
index 000000000000..06faa21602d5
--- /dev/null
+++ b/games-board/awale/Manifest
@@ -0,0 +1,8 @@
+AUX awale-1.5-build.patch 3323 SHA256 019f6490c625349ccc24cfd52aa4975fe64aadc5ac217268bc5dc29fabc2f393 SHA512 7dccdb24469238d36d7ea0a9d9b27ca2e4b4472ae4918b0361f78e84933db1ebd948197af32c40ec48d014f3baefc4adf1e48f0e277af8b6b8b53e780c9c613e WHIRLPOOL d56164db2e0a086c6aa9cdb1a59fec2000f103a2d7b1ed5d89bc711b0a8ff2efa9ebefc0529faf16bc87834a376a1d2a95db65d97d9e1b503dc348cf86ef3db1
+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
+EBUILD awale-1.5-r1.ebuild 1218 SHA256 e3415421b8315edae24b45b88ba724860a16df60ea5de9a376b2d59358b4390c SHA512 db5025261ef6f307867a574c6e933c65e1f43819c7b6916245ab1b836a398f227e8b0ba32c48c0fb06b4afedab2d8ce022a9534b010f2d19f389bcc38b853083 WHIRLPOOL ba2ac56e428e46c930ebab758385e1f998f9b3fc5ad7e50274914bbfb4f64199f851a694a62ce59a92e13fcbc90d23d121512a589c14a31569aab4613215f4f5
+EBUILD awale-1.5.ebuild 1268 SHA256 1fa860d0180132b0929f89f07099456e1d78db4cc34f4a8c0f91e0a14581c81d SHA512 4879e4bb9a191ca8e8cf29d335aa07de77c69007d736e06dc0891e585796846a21f4dc7113308c2afd8fd2090018f384b04e505beff9ab3662302a6721ef2f19 WHIRLPOOL 239d4778455d007bc38d97f07c61e625deff1d1588867ac651409f4b2baff8dac9cf429b732a2a89fe4b77a80ae9956a1561f17052fdf970b6f08520836a2553
+MISC ChangeLog 3105 SHA256 ba37c9745daa8059fa946773d5859841f9d75993635b4da813a8e2b3a9361b31 SHA512 f84353408b47acc1a209dab95f29f1f471ae29b15e7cae62f2d46a0587e95f02741b573f525ab6265ff7b8314502b551c064a2f1fe9db97f825ca6020d158d7b WHIRLPOOL af801c19cef89322779b01e801d1db2ec8581097dae3e24689c2ef3696a438de7d0b0e3a39418bd9236dd96ae181e4c6d4084504fb713ff1d7820cd3c30f6c8a
+MISC ChangeLog-2015 1445 SHA256 ecc4a4b891407c7c8ea37b59089f7548ee71d43f9520d6fa86b1c630c9b0c6b7 SHA512 cdd296648fd93fd5825bc0bcd5d1a9c1c169fed173fb660525701d30670799e4ff4bae5ed33fbd564460f62084f915e7ca5f9a7521d8122aa7d1abd0dddf56e8 WHIRLPOOL 7f7b5a5582181636a3ba5ba93bd2ac99bdafcf3bb09f8276c820278b9b45fdc42807f7a268ffd4a70eb27dcc9dc141eff6334caa5549a0002c28351eb8a87184
+MISC metadata.xml 253 SHA256 2c95b2eb99144a3b66de17be35eebcf65e5a152a2ec2f176165bb9cd78e5394e SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254 WHIRLPOOL fd044f0a960e57257f4a15ab16f066bbfe9983e60cd5fc072e631efc7027306c612a01d7fbbf57eb08d957487a7ce1961250194653d6ed87ee23f20d631ef854
diff --git a/games-board/awale/awale-1.5-r1.ebuild b/games-board/awale/awale-1.5-r1.ebuild
new file mode 100644
index 000000000000..13e96b998a9c
--- /dev/null
+++ b/games-board/awale/awale-1.5-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# do not use autotools related stuff in stable ebuilds
+# unless you like random breakage: 469796, 469798, 424041
+
+EAPI=6
+
+inherit autotools eutils gnome2-utils
+
+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} https://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= )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-build.patch
+)
+
+src_prepare() {
+ default
+
+ mv src/xawale.tcl src/xawale.tcl.in || die
+ mv configure.{in,ac} || die
+ rm aclocal.m4 || die
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --mandir=/usr/share/man \
+ --with-iconsdir=/usr/share/icons/hicolor/48x48/apps \
+ --with-desktopdir=/usr/share/applications \
+ $(use_enable tk)
+}
+
+src_install() {
+ default
+ use tk && fperms +x /usr/share/${PN}/xawale.tcl
+}
+
+pkg_preinst() {
+ use tk && gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ use tk && gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ use tk && gnome2_icon_cache_update
+}
diff --git a/games-board/awale/awale-1.5.ebuild b/games-board/awale/awale-1.5.ebuild
new file mode 100644
index 000000000000..555b28d61a92
--- /dev/null
+++ b/games-board/awale/awale-1.5.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# 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} https://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..26079e608bed
--- /dev/null
+++ b/games-board/awale/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+</pkgmetadata>