# Created by: Rusmir Dusko # $FreeBSD$ PORTNAME= cbviewer PORTVERSION= 0.8 PORTREVISION= 2 CATEGORIES= graphics java MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/CBViewer%200.8/ \ SF/nemysisfreebsdp/graphics/:icons DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ ${PORTNAME}.png:icons DIST_SUBDIR= ${PORTNAME} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= ports@FreeBSD.org COMMENT= Comic book viewer for comic book archives in cbz, cbr, zip, rar LICENSE= GPLv2 RUN_DEPENDS= unrar:${PORTSDIR}/archivers/unrar USES= dos2unix zip DOS2UNIX_GLOB= CREDITS 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 PORTDOCS= CREDITS OPTIONS_DEFINE= DOCS SUB_FILES= ${PORTNAME} DESKTOP_ENTRIES="CBViewer" "Comic book viewer" "${PORTNAME}" \ "${PORTNAME}" "Graphics;Viewer;Java;" "" do-install: ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/*.jar ${STAGEDIR}${DATADIR} post-install: ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/ @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include