games-board/awale: initial import of version 1.6
This commit is contained in:
parent
cf17dcd3e9
commit
4daab6fca7
38
packages/games-board/awale/awale-1.6.exheres-0
Normal file
38
packages/games-board/awale/awale-1.6.exheres-0
Normal file
@ -0,0 +1,38 @@
|
||||
# Copyright 2016 Julian Ospald <hasufell@posteo.de>
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
require gtk-icon-cache
|
||||
require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.13 ] ]
|
||||
|
||||
SUMMARY="Free Awale - The game of all Africa"
|
||||
HOMEPAGE="http://www.nongnu.org/awale/"
|
||||
DOWNLOADS="http://mirror.unicorncloud.org/savannah-nongnu/awale/${PNV}.tar.gz"
|
||||
|
||||
LICENCES="GPL-2"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
|
||||
DEPENDENCIES="
|
||||
run:
|
||||
dev-lang/tcl
|
||||
dev-lang/tk
|
||||
"
|
||||
|
||||
DEFAULT_SRC_PREPARE_PATCHES=( "${FILES}"/${PNV}-build.patch )
|
||||
DEFAULT_SRC_CONFIGURE_PARAMS=( --enable-tk )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
edo mv src/xawale.tcl src/xawale.tcl.in
|
||||
edo mv configure.in configure.ac
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dodoc AUTHORS ChangeLog NEWS README THANKS
|
||||
edo chmod +x "${IMAGE}"/usr/share/${PN}/xawale.tcl
|
||||
}
|
||||
|
116
packages/games-board/awale/files/awale-1.6-build.patch
Normal file
116
packages/games-board/awale/files/awale-1.6-build.patch
Normal file
@ -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 de.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.6)
|
||||
+AC_INIT([awale], [1.6])
|
||||
+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]
|
Loading…
Reference in New Issue
Block a user