Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Apr 2018 07:44:41 +0000 (UTC)
From:      "Tobias C. Berner" <tcberner@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r468608 - in head/deskutils/znotes: . files
Message-ID:  <201804290744.w3T7if2T099604@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tcberner
Date: Sun Apr 29 07:44:41 2018
New Revision: 468608
URL: https://svnweb.freebsd.org/changeset/ports/468608

Log:
  Flavorize deskutils/znotes
  
  Submitted by:	lebarondemerde@privacychain.ch
  Approved by:	portmgr (mat)
  Differential Revision:	https://reviews.freebsd.org/D14660

Deleted:
  head/deskutils/znotes/files/
Modified:
  head/deskutils/znotes/Makefile
  head/deskutils/znotes/distinfo
  head/deskutils/znotes/pkg-plist

Modified: head/deskutils/znotes/Makefile
==============================================================================
--- head/deskutils/znotes/Makefile	Sun Apr 29 07:23:39 2018	(r468607)
+++ head/deskutils/znotes/Makefile	Sun Apr 29 07:44:41 2018	(r468608)
@@ -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=	lebarondemerde@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

Modified: head/deskutils/znotes/distinfo
==============================================================================
--- head/deskutils/znotes/distinfo	Sun Apr 29 07:23:39 2018	(r468607)
+++ head/deskutils/znotes/distinfo	Sun Apr 29 07:44:41 2018	(r468608)
@@ -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

Modified: head/deskutils/znotes/pkg-plist
==============================================================================
--- head/deskutils/znotes/pkg-plist	Sun Apr 29 07:23:39 2018	(r468607)
+++ head/deskutils/znotes/pkg-plist	Sun Apr 29 07:44:41 2018	(r468608)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804290744.w3T7if2T099604>