aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorpgollucci <pgollucci@FreeBSD.org>2015-08-19 09:49:46 +0800
committerpgollucci <pgollucci@FreeBSD.org>2015-08-19 09:49:46 +0800
commit9eecdb340537cf8e5f72a70d9a3c1fe2bf63edab (patch)
treee280065479858a0f75de0225356ee74fd4ee35f9 /net
parentfd231f16530a5c818f973968705fc81555fcbfeb (diff)
downloadfreebsd-ports-gnome-9eecdb340537cf8e5f72a70d9a3c1fe2bf63edab.tar.gz
freebsd-ports-gnome-9eecdb340537cf8e5f72a70d9a3c1fe2bf63edab.tar.zst
freebsd-ports-gnome-9eecdb340537cf8e5f72a70d9a3c1fe2bf63edab.zip
net/quiterss: update to 0.18.2, add QT5 option, fix Qt4 dependencies
- Update to 0.18.2 - Add Qt5 option and switch to it by default (as it was done in 0.18.0). - Fix Qt4 dependencies (qt4-linguist -> qt4-linguisttools, drop qt4-designer) - Don't build debug & release at the same time (and add DEBUG option) - Use ${DATADIR} variable. - Add LICENSE_FILE. PR: 202336 Submitted by: s3erios@gmail.com Approved by: coder@tuxfamily.org (maintainer)
Diffstat (limited to 'net')
-rw-r--r--net/quiterss/Makefile34
-rw-r--r--net/quiterss/distinfo4
-rw-r--r--net/quiterss/files/patch-lang-lang.pri11
-rw-r--r--net/quiterss/pkg-plist84
4 files changed, 74 insertions, 59 deletions
diff --git a/net/quiterss/Makefile b/net/quiterss/Makefile
index 9a87c9f2a596..0962837f1512 100644
--- a/net/quiterss/Makefile
+++ b/net/quiterss/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= quiterss
-PORTVERSION= 0.17.6
+PORTVERSION= 0.18.2
CATEGORIES= net
MASTER_SITES= http://quiterss.org/files/${PORTVERSION}/
DISTNAME= QuiteRSS-${PORTVERSION}-src
@@ -11,11 +11,37 @@ MAINTAINER= coder@tuxfamily.org
COMMENT= Open-source cross-platform RSS/Atom news feeds reader
LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/COPYING
-USES= desktop-file-utils pkgconfig qmake:outsource tar:bzip2
+NO_WRKSUBDIR= yes
+
+USES= desktop-file-utils pkgconfig qmake:outsource
USE_SQLITE= yes
-USE_QT4= designer moc_build linguist_build moc_build rcc_build \
- uic_build gui network phonon
INSTALLS_ICONS= yes
+OPTIONS_DEFINE= DEBUG
+OPTIONS_SINGLE= GUI
+OPTIONS_SINGLE_GUI= QT4 QT5
+OPTIONS_DEFAULT= QT5
+
+QT4_USE= QT4=moc_build,rcc_build,uic_build,linguisttools_build
+QT4_USE+= QT4=corelib,gui,network,xml,webkit,phonon,sql,sql-sqlite3_run
+
+QT5_USE= QT5=buildtools_build,linguisttools_build,core,xml,gui,widgets
+QT5_USE+= QT5=network,multimedia,printsupport,webkit,sql,sql-sqlite3_run
+
+post-patch-DEBUG-on:
+ @${REINPLACE_CMD} 's|debug_and_release|debug|' \
+ ${WRKSRC}/QuiteRSS.pro
+
+post-patch-DEBUG-off:
+ @${REINPLACE_CMD} 's|debug_and_release|release|' \
+ ${WRKSRC}/QuiteRSS.pro
+
+post-patch:
+ @${REINPLACE_CMD} 's|$$$$\[QT_INSTALL_BINS\]/lrelease|${LRELEASE}|' \
+ ${WRKSRC}/lang/lang.pri
+ @${REINPLACE_CMD} 's|$$$$PREFIX/share/quiterss|${DATADIR}|' \
+ ${WRKSRC}/QuiteRSS.pro
+
.include <bsd.port.mk>
diff --git a/net/quiterss/distinfo b/net/quiterss/distinfo
index 2dc67d28a1cc..0e80b8645b61 100644
--- a/net/quiterss/distinfo
+++ b/net/quiterss/distinfo
@@ -1,2 +1,2 @@
-SHA256 (QuiteRSS-0.17.6-src.tar.bz2) = b14c715755ff6a1a4fa39b1d3efae893835fde07a23e69275fc12fa742cc8e7d
-SIZE (QuiteRSS-0.17.6-src.tar.bz2) = 3832771
+SHA256 (QuiteRSS-0.18.2-src.tar.gz) = d335529541d2824d66c941b68a34425929402d9c95716446a55ac0ceb777d18d
+SIZE (QuiteRSS-0.18.2-src.tar.gz) = 3061272
diff --git a/net/quiterss/files/patch-lang-lang.pri b/net/quiterss/files/patch-lang-lang.pri
deleted file mode 100644
index ee3e84ddb21a..000000000000
--- a/net/quiterss/files/patch-lang-lang.pri
+++ /dev/null
@@ -1,11 +0,0 @@
---- lang/lang.pri.orig 2014-08-03 13:51:31.078727306 +0200
-+++ lang/lang.pri 2014-08-03 13:52:13.465776471 +0200
-@@ -14,7 +14,7 @@
-
- isEmpty(QMAKE_LRELEASE) {
- Q_OS_WIN:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\lrelease.exe
-- else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
-+ else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease-qt4
- }
-
- updateqm.input = TRANSLATIONS
diff --git a/net/quiterss/pkg-plist b/net/quiterss/pkg-plist
index d4aa20d4a82e..995b7a916ec5 100644
--- a/net/quiterss/pkg-plist
+++ b/net/quiterss/pkg-plist
@@ -1,4 +1,4 @@
-%%QT_BINDIR%%/quiterss
+bin/quiterss
share/applications/quiterss.desktop
share/icons/hicolor/128x128/apps/quiterss.png
share/icons/hicolor/16x16/apps/quiterss.png
@@ -7,44 +7,44 @@ share/icons/hicolor/32x32/apps/quiterss.png
share/icons/hicolor/48x48/apps/quiterss.png
share/icons/hicolor/64x64/apps/quiterss.png
share/pixmaps/quiterss.png
-share/quiterss/lang/quiterss_ar.qm
-share/quiterss/lang/quiterss_bg.qm
-share/quiterss/lang/quiterss_cs.qm
-share/quiterss/lang/quiterss_de.qm
-share/quiterss/lang/quiterss_el_GR.qm
-share/quiterss/lang/quiterss_es.qm
-share/quiterss/lang/quiterss_fa.qm
-share/quiterss/lang/quiterss_fi.qm
-share/quiterss/lang/quiterss_fr.qm
-share/quiterss/lang/quiterss_gl.qm
-share/quiterss/lang/quiterss_hi.qm
-share/quiterss/lang/quiterss_hu.qm
-share/quiterss/lang/quiterss_it.qm
-share/quiterss/lang/quiterss_ja.qm
-share/quiterss/lang/quiterss_ko.qm
-share/quiterss/lang/quiterss_lt.qm
-share/quiterss/lang/quiterss_nl.qm
-share/quiterss/lang/quiterss_pl.qm
-share/quiterss/lang/quiterss_pt_BR.qm
-share/quiterss/lang/quiterss_pt_PT.qm
-share/quiterss/lang/quiterss_ro_RO.qm
-share/quiterss/lang/quiterss_ru.qm
-share/quiterss/lang/quiterss_sk.qm
-share/quiterss/lang/quiterss_sr.qm
-share/quiterss/lang/quiterss_sv.qm
-share/quiterss/lang/quiterss_tg_TJ.qm
-share/quiterss/lang/quiterss_tr.qm
-share/quiterss/lang/quiterss_uk.qm
-share/quiterss/lang/quiterss_vi.qm
-share/quiterss/lang/quiterss_zh_CN.qm
-share/quiterss/lang/quiterss_zh_TW.qm
-share/quiterss/sound/notification.wav
-share/quiterss/style/Rstyle_v1.2.css
-share/quiterss/style/gray.qss
-share/quiterss/style/green.qss
-share/quiterss/style/news.css
-share/quiterss/style/orange.qss
-share/quiterss/style/pink.qss
-share/quiterss/style/purple.qss
-share/quiterss/style/system.qss
-share/quiterss/style/system2.qss
+%%DATADIR%%/lang/quiterss_ar.qm
+%%DATADIR%%/lang/quiterss_bg.qm
+%%DATADIR%%/lang/quiterss_cs.qm
+%%DATADIR%%/lang/quiterss_de.qm
+%%DATADIR%%/lang/quiterss_el_GR.qm
+%%DATADIR%%/lang/quiterss_es.qm
+%%DATADIR%%/lang/quiterss_fa.qm
+%%DATADIR%%/lang/quiterss_fi.qm
+%%DATADIR%%/lang/quiterss_fr.qm
+%%DATADIR%%/lang/quiterss_gl.qm
+%%DATADIR%%/lang/quiterss_hi.qm
+%%DATADIR%%/lang/quiterss_hu.qm
+%%DATADIR%%/lang/quiterss_it.qm
+%%DATADIR%%/lang/quiterss_ja.qm
+%%DATADIR%%/lang/quiterss_ko.qm
+%%DATADIR%%/lang/quiterss_lt.qm
+%%DATADIR%%/lang/quiterss_nl.qm
+%%DATADIR%%/lang/quiterss_pl.qm
+%%DATADIR%%/lang/quiterss_pt_BR.qm
+%%DATADIR%%/lang/quiterss_pt_PT.qm
+%%DATADIR%%/lang/quiterss_ro_RO.qm
+%%DATADIR%%/lang/quiterss_ru.qm
+%%DATADIR%%/lang/quiterss_sk.qm
+%%DATADIR%%/lang/quiterss_sr.qm
+%%DATADIR%%/lang/quiterss_sv.qm
+%%DATADIR%%/lang/quiterss_tg_TJ.qm
+%%DATADIR%%/lang/quiterss_tr.qm
+%%DATADIR%%/lang/quiterss_uk.qm
+%%DATADIR%%/lang/quiterss_vi.qm
+%%DATADIR%%/lang/quiterss_zh_CN.qm
+%%DATADIR%%/lang/quiterss_zh_TW.qm
+%%DATADIR%%/sound/notification.wav
+%%DATADIR%%/style/Rstyle_v1.2.css
+%%DATADIR%%/style/gray.qss
+%%DATADIR%%/style/green.qss
+%%DATADIR%%/style/news.css
+%%DATADIR%%/style/orange.qss
+%%DATADIR%%/style/pink.qss
+%%DATADIR%%/style/purple.qss
+%%DATADIR%%/style/system.qss
+%%DATADIR%%/style/system2.qss