Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167129924
D14660.id40217.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D14660.id40217.diff
View Options
Index: deskutils/znotes/Makefile
===================================================================
--- deskutils/znotes/Makefile
+++ deskutils/znotes/Makefile
@@ -2,35 +2,41 @@
# $FreeBSD$
PORTNAME= znotes
-PORTVERSION= 0.4.5
-PORTREVISION= 2
+PORTVERSION= 0.4.5.20150825
CATEGORIES= deskutils
-MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}/
+PKGNAMESUFFIX= -${FLAVOR}
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Simple notes managment application based on Qt 4
+MAINTAINER= lbdm@privacychain.ch
+COMMENT= Simple notes managment application based on Qt
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
+FLAVORS= qt4 qt5
+FLAVOR?= ${FLAVORS:[1]}
+
USES= qmake
-USE_QT4= corelib gui network xml uic_build moc_build rcc_build \
- linguisttools_build
-QMAKE_ARGS= QMAKE_LRELEASE=${LRELEASE}
+USE_GL= gl
+
+USE_GITHUB= yes
+GH_ACCOUNT= proton
+GH_PROJECT= zNotes
+GH_TAGNAME= 6423c5e
+
+. if ${FLAVOR} == qt4
+USE_QT4= uic_build moc_build rcc_build linguisttools_build corelib gui network xml
+. else
+USE_QT5= buildtools_build linguisttools_build core gui network printsupport widgets xml
+. endif
DESKTOP_ENTRIES="zNotes" "Notes managment" \
"${PREFIX}/share/pixmaps/${PORTNAME}.png" "${PORTNAME}" \
"Utility;TextEditor;Qt;" true
-OPTIONS_DEFINE= NLS
-OPTIONS_SUB= yes
-
post-patch:
@${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' \
- ${WRKSRC}/settings.cpp
pre-configure:
#Work around badly written .pro
Index: deskutils/znotes/distinfo
===================================================================
--- deskutils/znotes/distinfo
+++ deskutils/znotes/distinfo
@@ -1,2 +1,3 @@
-SHA256 (znotes-0.4.5.tar.gz) = ac692253e74bda8f989db40042c26b6db2bb60a5f9c30cdbfcd824af0de1c5b2
-SIZE (znotes-0.4.5.tar.gz) = 171884
+TIMESTAMP = 1520867876
+SHA256 (proton-zNotes-0.4.5.20150825-6423c5e_GH0.tar.gz) = 93a9708a7c2522197e442d0aa28c9c20b13815c192ef8c51ced0006f6b352d2c
+SIZE (proton-zNotes-0.4.5.20150825-6423c5e_GH0.tar.gz) = 725999
Index: deskutils/znotes/files/patch-single__inst_qtlocalpeer.cpp
===================================================================
--- deskutils/znotes/files/patch-single__inst_qtlocalpeer.cpp
+++ /dev/null
@@ -1,12 +0,0 @@
---- single_inst/qtlocalpeer.cpp.orig 2011-08-27 08:25:14 UTC
-+++ single_inst/qtlocalpeer.cpp
-@@ -58,9 +58,7 @@ static PProcessIdToSessionId pProcessIdT
- #if defined(Q_OS_UNIX)
- #include <time.h>
- #endif
--#if defined(Q_OS_OS2)
- #include <unistd.h>
--#endif
-
- namespace QtLP_Private {
- #include "qtlockedfile.cpp"
Index: deskutils/znotes/pkg-plist
===================================================================
--- deskutils/znotes/pkg-plist
+++ deskutils/znotes/pkg-plist
@@ -1,9 +1,12 @@
bin/znotes
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
+%%DATADIR%%/translations/znotes_cs.qm
+%%DATADIR%%/translations/znotes_de.qm
+%%DATADIR%%/translations/znotes_en.qm
+%%DATADIR%%/translations/znotes_es.qm
+%%DATADIR%%/translations/znotes_pl.qm
+%%DATADIR%%/translations/znotes_pt_BR.qm
+%%DATADIR%%/translations/znotes_ru.qm
+%%DATADIR%%/translations/znotes_sk.qm
+%%DATADIR%%/translations/znotes_sv.qm
+%%DATADIR%%/translations/znotes_uk.qm
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 20, 8:41 AM (10 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36985559
Default Alt Text
D14660.id40217.diff (3 KB)
Attached To
Mode
D14660: deskutils/znotes: Add Qt5 OPTION and support
Attached
Detach File
Event Timeline
Log In to Comment