svn commit: r334870 - head/deskutils/znotes
Max Brazhnikov
makc at FreeBSD.org
Mon Nov 25 17:54:10 UTC 2013
Author: makc
Date: Mon Nov 25 17:54:08 2013
New Revision: 334870
URL: http://svnweb.freebsd.org/changeset/ports/334870
Log:
- Convert to USES=qmake
- Add stage support
- Update port comment/description
- Convert to pkg-plist
Approved by: vg (maintainer)
Added:
head/deskutils/znotes/pkg-plist (contents, props changed)
Modified:
head/deskutils/znotes/Makefile
head/deskutils/znotes/pkg-descr (contents, props changed)
Modified: head/deskutils/znotes/Makefile
==============================================================================
--- head/deskutils/znotes/Makefile Mon Nov 25 17:51:17 2013 (r334869)
+++ head/deskutils/znotes/Makefile Mon Nov 25 17:54:08 2013 (r334870)
@@ -8,52 +8,28 @@ CATEGORIES= deskutils
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}/
MAINTAINER= vg at 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>
Modified: head/deskutils/znotes/pkg-descr
==============================================================================
--- head/deskutils/znotes/pkg-descr Mon Nov 25 17:51:17 2013 (r334869)
+++ head/deskutils/znotes/pkg-descr Mon Nov 25 17:54:08 2013 (r334870)
@@ -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
Added: head/deskutils/znotes/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/deskutils/znotes/pkg-plist Mon Nov 25 17:54:08 2013 (r334870)
@@ -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%%
More information about the svn-ports-head
mailing list