diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2017-05-12 17:00:29 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2017-05-12 17:00:29 +0800 |
commit | 4abbda3ffc28c6e5ab048c35558887e5b196de73 (patch) | |
tree | 7b45d9f5cdfb7b0a6ff5bd09978412da5adaccc1 /deskutils | |
parent | f40f360e360efd7a706ec1b1bf3442cb2ef08338 (diff) | |
download | freebsd-ports-gnome-4abbda3ffc28c6e5ab048c35558887e5b196de73.tar.gz freebsd-ports-gnome-4abbda3ffc28c6e5ab048c35558887e5b196de73.tar.zst freebsd-ports-gnome-4abbda3ffc28c6e5ab048c35558887e5b196de73.zip |
- Add LICENSE
- Install wrapper to set correct work directory
- Add .desktop entry
- Switch to options helpers
- Clean up pkg-descr
- Update WWW
Diffstat (limited to 'deskutils')
-rw-r--r-- | deskutils/qrfcview/Makefile | 29 | ||||
-rw-r--r-- | deskutils/qrfcview/files/qRFCView.in | 12 | ||||
-rw-r--r-- | deskutils/qrfcview/pkg-descr | 14 |
3 files changed, 44 insertions, 11 deletions
diff --git a/deskutils/qrfcview/Makefile b/deskutils/qrfcview/Makefile index 46db3da95b12..1febafc1c89d 100644 --- a/deskutils/qrfcview/Makefile +++ b/deskutils/qrfcview/Makefile @@ -3,23 +3,44 @@ PORTNAME= qrfcview PORTVERSION= 0.62 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= deskutils MASTER_SITES= BERLIOS MAINTAINER= amdmi3@FreeBSD.org COMMENT= Graphical RFC viewer +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/LICENSE + USES= qmake tar:tgz USE_QT4= gui network corelib uic_build moc_build rcc_build -PLIST_FILES= bin/qRFCView + +SUB_FILES= qRFCView + +PLIST_FILES= bin/qRFCView \ + libexec/qRFCView \ + bin/qrfcview \ + share/pixmaps/qrfcview.png PORTDOCS= * +DESKTOP_ENTRIES="qRFCView" \ + "" \ + "${PREFIX}/share/pixmaps/${PORTNAME}.png" \ + "qRFCView" \ + "Utility;TextTools;Qt;" \ + "" + OPTIONS_DEFINE= DOCS do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/bin/qRFCView ${STAGEDIR}${PREFIX}/bin/ - ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_PROGRAM} ${WRKSRC}/bin/qRFCView ${STAGEDIR}${PREFIX}/libexec/ + ${INSTALL_SCRIPT} ${WRKDIR}/qRFCView ${STAGEDIR}${PREFIX}/bin/ + ${LN} -s qRFCView ${STAGEDIR}${PREFIX}/bin/qrfcview + ${INSTALL_DATA} ${WRKSRC}/images/rfcview.png ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/deskutils/qrfcview/files/qRFCView.in b/deskutils/qrfcview/files/qRFCView.in new file mode 100644 index 000000000000..ae16ab3af1f4 --- /dev/null +++ b/deskutils/qrfcview/files/qRFCView.in @@ -0,0 +1,12 @@ +#!/bin/sh + +QRFCVIEW_DIR=$HOME/.local/share/qrfcview + +if [ -n "$XDG_DATA_HOME" ]; then + QRFCVIEW_DIR="$XDG_DATA_HOME/qrfcview" +fi + +mkdir -p $QRFCVIEW_DIR +cd $QRFCVIEW_DIR + +exec %%PREFIX%%/libexec/qRFCView "$@" diff --git a/deskutils/qrfcview/pkg-descr b/deskutils/qrfcview/pkg-descr index d83586ff5f73..67c9e1fc96a8 100644 --- a/deskutils/qrfcview/pkg-descr +++ b/deskutils/qrfcview/pkg-descr @@ -1,10 +1,10 @@ qRFCView is a viewer for IETF RFCs. Advantages are: -* automatic table of content, with direct opening of section; -* handling of RFC internal cross-references; +* automatic table of content, with direct opening of section +* handling of RFC internal cross-references * automatic downloading of a referenced RFC from the IETF web site on - a simple click; -* caching of RFC in a local directory; -* tab-browsing of RFC; -* searching. + a simple click +* caching of RFC in a local directory +* tab-browsing of RFC +* searching -WWW: http://qrfcview.berlios.de/ +WWW: https://web-beta.archive.org/web/20130618220115/http://qrfcview.berlios.de/ |