Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Mar 2019 16:30:06 +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: r495176 - in head/textproc/qstardict: . files
Message-ID:  <201903091630.x29GU6fm043974@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tcberner
Date: Sat Mar  9 16:30:06 2019
New Revision: 495176
URL: https://svnweb.freebsd.org/changeset/ports/495176

Log:
  textproc/qstardict: update to 1.3 (with Qt5)

Deleted:
  head/textproc/qstardict/files/patch-plugins_stardict_lib.cpp
  head/textproc/qstardict/files/patch-qstardict.pri
Modified:
  head/textproc/qstardict/Makefile
  head/textproc/qstardict/distinfo
  head/textproc/qstardict/files/patch-plugins_stardict_mapfile.hpp
  head/textproc/qstardict/pkg-plist

Modified: head/textproc/qstardict/Makefile
==============================================================================
--- head/textproc/qstardict/Makefile	Sat Mar  9 15:48:47 2019	(r495175)
+++ head/textproc/qstardict/Makefile	Sat Mar  9 16:30:06 2019	(r495176)
@@ -2,48 +2,36 @@
 # $FreeBSD$
 
 PORTNAME=	qstardict
-PORTVERSION=	1.0.1
-PORTREVISION=	1
+DISTVERSIONPREFIX=	qstardict-
+DISTVERSION=	1.3
 CATEGORIES=	textproc
 MASTER_SITES=	http://qstardict.ylsoftware.com/files/
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	Qt 4 based dictionary program (stardict clone)
+COMMENT=	Qt based dictionary program (stardict clone)
 
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-DEPRECATED=		Qt4 has been EOL since december 2015
-EXPIRATION_DATE=	2019-03-15
-
-USES=		dos2unix pkgconfig qmake qt:4 tar:bzip2
-USE_QT=		corelib gui network xml uic_build moc_build rcc_build
+USES=		gl gnome pkgconfig qmake qt:5 tar:bzip2
+USE_GL=		gl
 USE_GNOME=	glib20
+USE_QT=		core dbus gui network printsupport widgets xml \
+		buildtools_build linguisttools_build qmake_build
 USE_XORG=	x11
-DOS2UNIX_FILES=	qstardict.pri
 
-# Path to dictionaries installed by stardict-* ports
-DICPATH=	${LOCALBASE}/share/stardict/dic
+USE_GITHUB=	yes
+GH_ACCOUNT=	a-rodin
 
-OPTIONS_DEFINE=	DBUS DOCS NLS
-OPTIONS_DEFAULT=DBUS
-OPTIONS_SUB=	yes
+QMAKE_ARGS=	INSTALL_PREFIX=${PREFIX}
 
-DBUS_USES=	qt:4
-DBUS_USE=	QT=dbus
-DBUS_QMAKE_OFF=	NO_DBUS=1
+OPTIONS_DEFINE=	DOCS
 
-NLS_QMAKE_OFF=	NO_TRANSLATIONS=1
+# Path to dictionaries installed by stardict-* ports
+DICPATH=	${LOCALBASE}/share/stardict/dic
 
 post-patch:
-	@${REINPLACE_CMD} -e "s|/usr|${PREFIX}|g" \
-		${WRKSRC}/qstardict.pri
-	@${REINPLACE_CMD} -e "s|/usr/share/stardict/dic|${DICPATH}|g" \
-		-e "s|glib.*\.h|glib.h|g" \
+	${REINPLACE_CMD} '/m_dictDirs/s|/usr/share/stardict/dic|${PREFIX}/share/stardict/dic|g' \
 		${WRKSRC}/plugins/stardict/stardict.cpp
-
-post-patch-DOCS-off:
-	@${REINPLACE_CMD} -e "/^INSTALLS/s|docs||g" \
-		${WRKSRC}/qstardict.pro
 
 .include <bsd.port.mk>

Modified: head/textproc/qstardict/distinfo
==============================================================================
--- head/textproc/qstardict/distinfo	Sat Mar  9 15:48:47 2019	(r495175)
+++ head/textproc/qstardict/distinfo	Sat Mar  9 16:30:06 2019	(r495176)
@@ -1,2 +1,3 @@
-SHA256 (qstardict-1.0.1.tar.bz2) = b778ace65a22e5b9724d687ad90c77ec98feb2671774f73cd51725ec7b59e62f
-SIZE (qstardict-1.0.1.tar.bz2) = 565098
+TIMESTAMP = 1552147870
+SHA256 (a-rodin-qstardict-qstardict-1.3_GH0.tar.gz) = 9b083a3177407d66a17403742590471a0aa89a3d31df886926b79fa21e4d41a4
+SIZE (a-rodin-qstardict-qstardict-1.3_GH0.tar.gz) = 490595

Modified: head/textproc/qstardict/files/patch-plugins_stardict_mapfile.hpp
==============================================================================
--- head/textproc/qstardict/files/patch-plugins_stardict_mapfile.hpp	Sat Mar  9 15:48:47 2019	(r495175)
+++ head/textproc/qstardict/files/patch-plugins_stardict_mapfile.hpp	Sat Mar  9 16:30:06 2019	(r495176)
@@ -1,10 +1,10 @@
---- plugins/stardict/mapfile.hpp.orig	2011-12-05 12:40:49 UTC
+--- plugins/stardict/mapfile.hpp.orig	2019-03-09 16:13:21 UTC
 +++ plugins/stardict/mapfile.hpp
-@@ -9,6 +9,7 @@
- #  include <sys/types.h>
- #  include <fcntl.h>
- #  include <sys/mman.h>
-+#  include <unistd.h>
- #endif
- #ifdef _WIN32
+@@ -14,6 +14,7 @@
  #  include <windows.h>
+ #endif
+ #include <glib.h>
++#include <unistd.h>
+ 
+ class MapFile
+ {

Modified: head/textproc/qstardict/pkg-plist
==============================================================================
--- head/textproc/qstardict/pkg-plist	Sat Mar  9 15:48:47 2019	(r495175)
+++ head/textproc/qstardict/pkg-plist	Sat Mar  9 16:30:06 2019	(r495176)
@@ -6,17 +6,17 @@ share/applications/qstardict.desktop
 %%PORTDOCS%%%%DOCSDIR%%/COPYING
 %%PORTDOCS%%%%DOCSDIR%%/ChangeLog
 %%PORTDOCS%%%%DOCSDIR%%/THANKS
-share/pixmaps/qstardict.png
-%%NLS%%%%DATADIR%%/translations/qstardict-bg_BG.qm
-%%NLS%%%%DATADIR%%/translations/qstardict-cs_CZ.qm
-%%NLS%%%%DATADIR%%/translations/qstardict-de_DE.qm
-%%NLS%%%%DATADIR%%/translations/qstardict-es_ES.qm
-%%NLS%%%%DATADIR%%/translations/qstardict-fr_FR.qm
-%%NLS%%%%DATADIR%%/translations/qstardict-it_IT.qm
-%%NLS%%%%DATADIR%%/translations/qstardict-lt_LT.qm
-%%NLS%%%%DATADIR%%/translations/qstardict-pl_PL.qm
-%%NLS%%%%DATADIR%%/translations/qstardict-pt_BR.qm
-%%NLS%%%%DATADIR%%/translations/qstardict-ru_RU.qm
-%%NLS%%%%DATADIR%%/translations/qstardict-ua_UA.qm
-%%NLS%%%%DATADIR%%/translations/qstardict-zh_CN.qm
-%%NLS%%%%DATADIR%%/translations/qstardict-zh_TW.qm
+share/icons/hicolor/scalable/apps/qstardict.svg
+%%DATADIR%%/translations/qstardict-bg_BG.qm
+%%DATADIR%%/translations/qstardict-cs_CZ.qm
+%%DATADIR%%/translations/qstardict-de_DE.qm
+%%DATADIR%%/translations/qstardict-es_ES.qm
+%%DATADIR%%/translations/qstardict-fr_FR.qm
+%%DATADIR%%/translations/qstardict-it_IT.qm
+%%DATADIR%%/translations/qstardict-lt_LT.qm
+%%DATADIR%%/translations/qstardict-pl_PL.qm
+%%DATADIR%%/translations/qstardict-pt_BR.qm
+%%DATADIR%%/translations/qstardict-ru_RU.qm
+%%DATADIR%%/translations/qstardict-ua_UA.qm
+%%DATADIR%%/translations/qstardict-zh_CN.qm
+%%DATADIR%%/translations/qstardict-zh_TW.qm



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