diff options
author | nemysis <nemysis@FreeBSD.org> | 2014-01-02 15:20:46 +0800 |
---|---|---|
committer | nemysis <nemysis@FreeBSD.org> | 2014-01-02 15:20:46 +0800 |
commit | 4618d3c73a42bb226500a2bec3613eca58abe912 (patch) | |
tree | cf5c5609a2ff9ae0e8aec3545aa9dcec953aa367 /graphics | |
parent | aa0fa20d63a405408c856de101e981ccf1a4e858 (diff) | |
download | freebsd-ports-gnome-4618d3c73a42bb226500a2bec3613eca58abe912.tar.gz freebsd-ports-gnome-4618d3c73a42bb226500a2bec3613eca58abe912.tar.zst freebsd-ports-gnome-4618d3c73a42bb226500a2bec3613eca58abe912.zip |
- Change Makefile header
- Change master sites
- Remove -FETCH_ARGS?=-Fpr
- Add DOCS Option
- Change Desktop entry file
- Support STAGEDIR
Approved by: pawel / wg (mentors, implicit)
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/cbviewer/Makefile | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/graphics/cbviewer/Makefile b/graphics/cbviewer/Makefile index d1f25b5637e9..caf9426032b0 100644 --- a/graphics/cbviewer/Makefile +++ b/graphics/cbviewer/Makefile @@ -1,4 +1,4 @@ -# Created by: nemysis@gmx.ch +# Created by: nemysis <nemysis@gmx.ch> # $FreeBSD$ PORTNAME= cbviewer @@ -6,7 +6,7 @@ PORTVERSION= 0.8 PORTREVISION= 1 CATEGORIES= graphics java MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/CBViewer%200.8/ \ - SF/nemysisfreebsdp/:icons + SF/nemysisfreebsdp/graphics/:icons DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \ ${PORTNAME}.png:icons DIST_SUBDIR= ${PORTNAME} @@ -20,41 +20,37 @@ LICENSE= GPLv2 RUN_DEPENDS= unrar:${PORTSDIR}/archivers/unrar \ unzip:${PORTSDIR}/archivers/unzip -FETCH_ARGS?= -Fpr - USE_ZIP= yes USE_JAVA= yes JAVA_VERSION= 1.6+ NO_BUILD= yes +DATADIR= ${JAVASHAREDIR}/${PORTNAME} + PLIST_FILES= bin/${PORTNAME} \ share/java/cbviewer/CBViewer.jar \ share/pixmaps/${PORTNAME}.png PLIST_DIRSTRY= share/java/cbviewer PORTDOCS= CREDITS -DATADIR= ${JAVASHAREDIR}/${PORTNAME} -SUB_FILES= ${PORTNAME} +OPTIONS_DEFINE= DOCS -DESKTOP_ENTRIES="CBViewer" "Comic book viewer" \ - "${PREFIX}/share/pixmaps/${PORTNAME}.png" \ - "${PORTNAME}" "Graphics;Viewer;Java;" true +SUB_FILES= ${PORTNAME} -NO_STAGE= yes -.include <bsd.port.options.mk> +DESKTOP_ENTRIES="CBViewer" "Comic book viewer" "${PORTNAME}" \ + "${PORTNAME}" "Graphics;Viewer;Java;" "" do-install: - ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin - ${MKDIR} ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/*.jar ${DATADIR} + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ + @${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/*.jar ${STAGEDIR}${DATADIR} post-install: - ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${PREFIX}/share/pixmaps + ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps/ -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> |