Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Nov 2013 00:34:47 +0000 (UTC)
From:      Rusmir Dusko <nemysis@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r334465 - in head/games/awale: . files
Message-ID:  <201311210034.rAL0YlIl040845@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nemysis
Date: Thu Nov 21 00:34:47 2013
New Revision: 334465
URL: http://svnweb.freebsd.org/changeset/ports/334465

Log:
  - Pass maintainership to submitter
  - Remove GUI Option (default install GUI)
  - Add license (GPLv2)
  - USES desktop-file-utils tk
  - Add pkg-message
  - Change REINPLACE_CMD
  - Simplify Makefile
  - Change pkg-descr
  
  Approved by:	pawel / wg (mentors, implicit

Added:
  head/games/awale/files/
  head/games/awale/files/pkg-message.in   (contents, props changed)
Modified:
  head/games/awale/Makefile   (contents, props changed)
  head/games/awale/pkg-descr   (contents, props changed)
  head/games/awale/pkg-plist   (contents, props changed)

Modified: head/games/awale/Makefile
==============================================================================
--- head/games/awale/Makefile	Wed Nov 20 22:42:56 2013	(r334464)
+++ head/games/awale/Makefile	Thu Nov 21 00:34:47 2013	(r334465)
@@ -6,42 +6,31 @@ PORTVERSION=	1.5
 CATEGORIES=	games
 MASTER_SITES=	SAVANNAH
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	nemysis@FreeBSD.org
 COMMENT=	African board game
 
-OPTIONS_DEFINE=	GUI DOCS
-OPTIONS_DEFAULT=	GUI
-OPTIONS_SUB=	yes
-GUI_DESC=	Installs Tcl/Tk GUI
+LICENSE=	GPLv2
 
-GUI_RUN_DEPENDS=	wish8.4:${PORTSDIR}/x11-toolkits/tk84
+GNU_CONFIGURE=	yes
+USES=		desktop-file-utils tk
 
-.include <bsd.port.options.mk>
+SUB_FILES=	pkg-message
+
+PORTDOCS=	AUTHORS ChangeLog NEWS README THANKS
+
+OPTIONS_DEFINE=	DOC
 
 post-patch:
-	@${REINPLACE_CMD} -e '/bin\/bash/d' ${WRKSRC}/src/xawale.tcl
 	@${ECHO_CMD} "#!/bin/sh" > ${WRKSRC}/src/x${PORTNAME}
 	@${ECHO_CMD} "${DATADIR}/xawale.tcl" >> ${WRKSRC}/src/x${PORTNAME}
-	@${REINPLACE_CMD} -e 's|wish|wish8.4|' ${WRKSRC}/src/xawale.tcl
-
-do-build:
-	(cd ${WRKSRC}/src && ${CC} ${CFLAGS} -o ${PORTNAME} ${PORTNAME}.c)
+	@${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
 
-do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.6 ${STAGEDIR}${MAN6PREFIX}/man/man6
-	@${MKDIR} ${STAGEDIR}${DATADIR}
-.for f in README *.bmp *.gif *.ico *.png
-	${INSTALL_DATA} ${WRKSRC}/src/${f} ${STAGEDIR}${DATADIR}
-.endfor
-.if ${PORT_OPTIONS:MGUI}
-	${INSTALL_SCRIPT} ${WRKSRC}/src/x${PORTNAME} ${STAGEDIR}${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/man/x${PORTNAME}.6 ${STAGEDIR}${MAN6PREFIX}/man/man6
-	${INSTALL_SCRIPT} ${WRKSRC}/src/xawale.tcl ${STAGEDIR}${DATADIR}
-.endif
+post-install:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for f in AUTHORS ChangeLog NEWS README THANKS
-	cd ${WRKSRC} && ${INSTALL_DATA} ${f} ${STAGEDIR}${DOCSDIR}
-.endfor
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Added: head/games/awale/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/awale/files/pkg-message.in	Thu Nov 21 00:34:47 2013	(r334465)
@@ -0,0 +1,16 @@
+===============================================================================
+
+Free Awale has been installed.
+
+To start Free Awale please use
+
+for CLI
+
+    xawale
+
+
+for GUI
+
+    %%PREFIX%%/share/applications/awale.desktop
+
+===============================================================================

Modified: head/games/awale/pkg-descr
==============================================================================
--- head/games/awale/pkg-descr	Wed Nov 20 22:42:56 2013	(r334464)
+++ head/games/awale/pkg-descr	Thu Nov 21 00:34:47 2013	(r334465)
@@ -1,7 +1,7 @@
 Awale or Oware is a game of great antiquity, and has been played around
-the world in various forms for millenia.  Currently it is the official
+the world in various forms for millenia. Currently it is the official
 board game of Africa.
 
-Wikipedia: http://en.wikipedia.org/wiki/Oware
+Wikipedia Oware
 
 WWW: http://www.nongnu.org/awale/

Modified: head/games/awale/pkg-plist
==============================================================================
--- head/games/awale/pkg-plist	Wed Nov 20 22:42:56 2013	(r334464)
+++ head/games/awale/pkg-plist	Thu Nov 21 00:34:47 2013	(r334465)
@@ -1,7 +1,8 @@
 bin/awale
+bin/xawale
 man/man6/awale.6.gz
-%%GUI%%man/man6/xawale.6.gz
-%%GUI%%bin/xawale
+man/man6/xawale.6.gz
+share/applications/awale.desktop
 %%DATADIR%%/AwaleBanner.bmp
 %%DATADIR%%/README
 %%DATADIR%%/Trou00.gif
@@ -27,11 +28,5 @@ man/man6/awale.6.gz
 %%DATADIR%%/fr.gif
 %%DATADIR%%/sp.gif
 %%DATADIR%%/uk.gif
-%%GUI%%%%DATADIR%%/xawale.tcl
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
-%%PORTDOCS%%%%DOCSDIR%%/NEWS
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/THANKS
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%DATADIR%%/xawale.tcl
 @dirrm %%DATADIR%%



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