Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Mar 2015 14:48:43 +0000 (UTC)
From:      Bartek Rutkowski <robak@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r381405 - head/games/awale
Message-ID:  <201503161448.t2GEmhRf051733@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: robak
Date: Mon Mar 16 14:48:43 2015
New Revision: 381405
URL: https://svnweb.freebsd.org/changeset/ports/381405
QAT: https://qat.redports.org/buildarchive/r381405/

Log:
  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>

Deleted:
  head/games/awale/pkg-plist
Modified:
  head/games/awale/Makefile
  head/games/awale/distinfo

Modified: head/games/awale/Makefile
==============================================================================
--- head/games/awale/Makefile	Mon Mar 16 14:47:51 2015	(r381404)
+++ head/games/awale/Makefile	Mon Mar 16 14:48:43 2015	(r381405)
@@ -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>

Modified: head/games/awale/distinfo
==============================================================================
--- head/games/awale/distinfo	Mon Mar 16 14:47:51 2015	(r381404)
+++ head/games/awale/distinfo	Mon Mar 16 14:48:43 2015	(r381405)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503161448.t2GEmhRf051733>