aboutsummaryrefslogtreecommitdiff
path: root/deskutils/znotes
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2013-11-25 17:54:08 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2013-11-25 17:54:08 +0000
commit117fca0bcb1296c59c55e670974c1d3263184c8d (patch)
tree912a57be78fbcdd27be203bd94673eb6e5189033 /deskutils/znotes
parent34b56167e9293bbfc573cf1e536a250ef668fa04 (diff)
downloadports-117fca0bcb1296c59c55e670974c1d3263184c8d.tar.gz
ports-117fca0bcb1296c59c55e670974c1d3263184c8d.zip
- Convert to USES=qmake
- Add stage support - Update port comment/description - Convert to pkg-plist Approved by: vg (maintainer)
Notes
Notes: svn path=/head/; revision=334870
Diffstat (limited to 'deskutils/znotes')
-rw-r--r--deskutils/znotes/Makefile46
-rw-r--r--deskutils/znotes/pkg-descr6
-rw-r--r--deskutils/znotes/pkg-plist12
3 files changed, 26 insertions, 38 deletions
diff --git a/deskutils/znotes/Makefile b/deskutils/znotes/Makefile
index 52e05485efa9..19adda028b8a 100644
--- a/deskutils/znotes/Makefile
+++ b/deskutils/znotes/Makefile
@@ -8,52 +8,28 @@ CATEGORIES= deskutils
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}/
MAINTAINER= vg@FreeBSD.org
-COMMENT= Simple notes based on QT4
+COMMENT= Simple notes managment application based on Qt 4
LICENSE= GPLv3
-USE_QT4= gui network xml qmake_build uic_build moc_build rcc_build \
+USES= qmake
+USE_QT4= gui network xml uic_build moc_build rcc_build \
linguist_build
+QMAKE_ARGS= QMAKE_LRELEASE=${LRELEASE}
-DESKTOP_ENTRIES="zNotes" "Simple notes" \
+DESKTOP_ENTRIES="zNotes" "Notes managment" \
"${PREFIX}/share/pixmaps/${PORTNAME}.png" "${PORTNAME}" \
- "Utility;TextEditor;Qt;" ${FALSE}
+ "Utility;TextEditor;Qt;" true
OPTIONS_DEFINE= NLS
-PLIST_FILES= bin/${PORTNAME} \
- share/pixmaps/${PORTNAME}.png
-
-NO_STAGE= yes
post-patch:
- @${REINPLACE_CMD} -e 's|lrelease|lrelease-qt4|g' \
+ @${REINPLACE_CMD} -e '/.path =/s|/usr|$$$$PREFIX|g' \
+ -e '/PREFIX = /d' \
${WRKSRC}/${PORTNAME}.pro
- @${REINPLACE_CMD} -i -e 's,QCoreApplication::applicationDirPath()+"/translations","${DATADIR}/translations",g' \
+ @${REINPLACE_CMD} -i -e 's,QCoreApplication::applicationDirPath()+"/translations","${DATADIR}/translations",g' \
${WRKSRC}/settings.cpp
-
-.include <bsd.port.options.mk>
-
-do-configure:
- cd ${WRKSRC} && ${QMAKE} ${QMAKEFLAGS}
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
- ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${PREFIX}/share/pixmaps/
-
-.if ${PORT_OPTIONS:MNLS}
- ${MKDIR} ${DATADIR}/translations
- ${INSTALL_DATA} ${WRKSRC}/translations/*.qm ${DATADIR}/translations
-PLIST_FILES+= %%DATADIR%%/translations/${PORTNAME}_cs.qm \
- %%DATADIR%%/translations/${PORTNAME}_es.qm \
- %%DATADIR%%/translations/${PORTNAME}_en.qm \
- %%DATADIR%%/translations/${PORTNAME}_ru.qm \
- %%DATADIR%%/translations/${PORTNAME}_sk.qm \
- %%DATADIR%%/translations/${PORTNAME}_pt_BR.qm \
- %%DATADIR%%/translations/${PORTNAME}_uk.qm
-
-PLIST_DIRS+= %%DATADIR%%/translations \
- %%DATADIR%%
-.else
-.endif
+#Work around badly written .pro
+ ${LRELEASE} ${WRKSRC}/${PORTNAME}.pro
.include <bsd.port.mk>
diff --git a/deskutils/znotes/pkg-descr b/deskutils/znotes/pkg-descr
index 314d90df965a..114eb8a81eaf 100644
--- a/deskutils/znotes/pkg-descr
+++ b/deskutils/znotes/pkg-descr
@@ -1,4 +1,4 @@
-When I migrated from XFCE, I could not find a program simular to
-xfce4-Notes-plugin, so I created this program.
+Simple lightweight crossplatform application for notes managment
+based on Qt 4.
-WWW: http://znotes.sourceforge.net/
+WWW: http://znotes.sourceforge.net
diff --git a/deskutils/znotes/pkg-plist b/deskutils/znotes/pkg-plist
new file mode 100644
index 000000000000..d5a2e83b8ba0
--- /dev/null
+++ b/deskutils/znotes/pkg-plist
@@ -0,0 +1,12 @@
+bin/znotes
+share/applications/znotes.desktop
+share/pixmaps/znotes.png
+%%NLS%%%%DATADIR%%/translations/znotes_cs.qm
+%%NLS%%%%DATADIR%%/translations/znotes_en.qm
+%%NLS%%%%DATADIR%%/translations/znotes_es.qm
+%%NLS%%%%DATADIR%%/translations/znotes_pt_BR.qm
+%%NLS%%%%DATADIR%%/translations/znotes_ru.qm
+%%NLS%%%%DATADIR%%/translations/znotes_sk.qm
+%%NLS%%%%DATADIR%%/translations/znotes_uk.qm
+%%NLS%%@dirrmtry %%DATADIR%%/translations
+%%NLS%%@dirrmtry %%DATADIR%%