aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobak <robak@FreeBSD.org>2015-03-16 22:48:43 +0800
committerrobak <robak@FreeBSD.org>2015-03-16 22:48:43 +0800
commitb45e77d8ddd29e7e85e3d8a3b41e7db5d8ea6b14 (patch)
treeaed2ccd331a16c3910081095fbef148ef76796b5
parent04a97d701fb92e66dd9f985680e3f540d2ad9753 (diff)
downloadfreebsd-ports-graphics-b45e77d8ddd29e7e85e3d8a3b41e7db5d8ea6b14.tar.gz
freebsd-ports-graphics-b45e77d8ddd29e7e85e3d8a3b41e7db5d8ea6b14.tar.zst
freebsd-ports-graphics-b45e77d8ddd29e7e85e3d8a3b41e7db5d8ea6b14.zip
games/awale: update 1.5 -> 1.6
- Convert to tk:wrapper - Convert pkg-plist to PLIST_FILES PR: 197428 Submitted by: Kato Tsuguru <tkato432@yahoo.com>
-rw-r--r--games/awale/Makefile35
-rw-r--r--games/awale/distinfo4
-rw-r--r--games/awale/pkg-plist31
3 files changed, 25 insertions, 45 deletions
diff --git a/games/awale/Makefile b/games/awale/Makefile
index 9468e058cee..b06af916c2f 100644
--- a/games/awale/Makefile
+++ b/games/awale/Makefile
@@ -2,35 +2,46 @@
# $FreeBSD$
PORTNAME= awale
-PORTVERSION= 1.5
+PORTVERSION= 1.6
CATEGORIES= games
MASTER_SITES= SAVANNAH
MAINTAINER= ports@FreeBSD.org
COMMENT= African board game
-LICENSE= GPLv2 # or later
+LICENSE= GPLv2 # (or later)
LICENSE_FILE= ${WRKSRC}/COPYING
+USES= tk:wrapper
GNU_CONFIGURE= yes
-USES= desktop-file-utils tk
SUB_FILES= pkg-message
-PORTDOCS= AUTHORS ChangeLog NEWS README THANKS
+PORTDATA= *
+PORTDOCS= *
+PLIST_FILES= bin/awale \
+ bin/xawale \
+ man/man6/awale.6.gz \
+ man/man6/xawale.6.gz \
+ share/applications/awale.desktop
+
OPTIONS_DEFINE= DOCS
post-patch:
- @${ECHO_CMD} "#!/bin/sh" > ${WRKSRC}/src/x${PORTNAME}
- @${ECHO_CMD} "${DATADIR}/xawale.tcl" >> ${WRKSRC}/src/x${PORTNAME}
- @${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh| ; \
- s|exec wish|exec ${WISH}|' \
- ${WRKSRC}/src/xawale.tcl
- @${REINPLACE_CMD} -e 's|share/man|man|' \
- ${WRKSRC}/man/Makefile.in
+ @${REINPLACE_CMD} -e \
+ '/^mandir/s|=.*|= @mandir@|' ${WRKSRC}/man/Makefile.in
+ @${REINPLACE_CMD} -e \
+ 's|/bin/bash|/bin/sh|' ${WRKSRC}/src/xawale.tcl
+
+post-build:
+ @${ECHO_CMD} -n > ${WRKSRC}/src/xawale
+ @${ECHO_CMD} "#!/bin/sh" >> ${WRKSRC}/src/xawale
+ @${ECHO_CMD} "${DATADIR}/xawale.tcl" >> ${WRKSRC}/src/xawale
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+.for i in AUTHORS ChangeLog NEWS README THANKS
+ (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
+.endfor
.include <bsd.port.mk>
diff --git a/games/awale/distinfo b/games/awale/distinfo
index ffa759cc059..80149afbf35 100644
--- a/games/awale/distinfo
+++ b/games/awale/distinfo
@@ -1,2 +1,2 @@
-SHA256 (awale-1.5.tar.gz) = 8bf9812fd6cfe142e18a35474f6a366c1b12f960863a33421f6d2e448ed47014
-SIZE (awale-1.5.tar.gz) = 489357
+SHA256 (awale-1.6.tar.gz) = f5118dbfe50de21d64b950e1824388362b98bcfaed9b8f0d2c7353617e24de55
+SIZE (awale-1.6.tar.gz) = 490881
diff --git a/games/awale/pkg-plist b/games/awale/pkg-plist
deleted file mode 100644
index 03ba95834de..00000000000
--- a/games/awale/pkg-plist
+++ /dev/null
@@ -1,31 +0,0 @@
-bin/awale
-bin/xawale
-man/man6/awale.6.gz
-man/man6/xawale.6.gz
-share/applications/awale.desktop
-%%DATADIR%%/AwaleBanner.bmp
-%%DATADIR%%/README
-%%DATADIR%%/Trou00.gif
-%%DATADIR%%/Trou01.gif
-%%DATADIR%%/Trou02.gif
-%%DATADIR%%/Trou03.gif
-%%DATADIR%%/Trou04.gif
-%%DATADIR%%/Trou05.gif
-%%DATADIR%%/Trou06.gif
-%%DATADIR%%/Trou07.gif
-%%DATADIR%%/Trou08.gif
-%%DATADIR%%/Trou09.gif
-%%DATADIR%%/Trou10.gif
-%%DATADIR%%/Trou11.gif
-%%DATADIR%%/Trou12.gif
-%%DATADIR%%/Trou13.gif
-%%DATADIR%%/Trou14.gif
-%%DATADIR%%/Trou15.gif
-%%DATADIR%%/awale.ico
-%%DATADIR%%/awale.png
-%%DATADIR%%/board.gif
-%%DATADIR%%/copyright.gif
-%%DATADIR%%/fr.gif
-%%DATADIR%%/sp.gif
-%%DATADIR%%/uk.gif
-%%DATADIR%%/xawale.tcl