diff options
author | nemysis <nemysis@FreeBSD.org> | 2013-11-21 00:34:47 +0000 |
---|---|---|
committer | nemysis <nemysis@FreeBSD.org> | 2013-11-21 00:34:47 +0000 |
commit | a6247d89931dbe3a92b0277bdfe1c610e9a66f37 (patch) | |
tree | cc3c9dd5c07fc6a2aafef82bc1d9b384ab5f8750 | |
parent | fa006930a6fcc9ec319e1d95a3d13b7079cc9404 (diff) | |
download | FreeBSD-ports-a6247d89931dbe3a92b0277bdfe1c610e9a66f37.zip FreeBSD-ports-a6247d89931dbe3a92b0277bdfe1c610e9a66f37.tar.gz |
- 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
-rw-r--r-- | games/awale/Makefile | 45 | ||||
-rw-r--r-- | games/awale/files/pkg-message.in | 16 | ||||
-rw-r--r-- | games/awale/pkg-descr | 4 | ||||
-rw-r--r-- | games/awale/pkg-plist | 13 |
4 files changed, 39 insertions, 39 deletions
diff --git a/games/awale/Makefile b/games/awale/Makefile index 978b50d..ad02dfa 100644 --- a/games/awale/Makefile +++ b/games/awale/Makefile @@ -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) - -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 + @${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 + +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> diff --git a/games/awale/files/pkg-message.in b/games/awale/files/pkg-message.in new file mode 100644 index 0000000..befdd7f --- /dev/null +++ b/games/awale/files/pkg-message.in @@ -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 + +=============================================================================== diff --git a/games/awale/pkg-descr b/games/awale/pkg-descr index 6be3c78..7604c13 100644 --- a/games/awale/pkg-descr +++ b/games/awale/pkg-descr @@ -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/ diff --git a/games/awale/pkg-plist b/games/awale/pkg-plist index 5a6cc3b..3bf108f 100644 --- a/games/awale/pkg-plist +++ b/games/awale/pkg-plist @@ -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%% |