Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Feb 2015 21:39:20 +0000 (UTC)
From:      Max Brazhnikov <makc@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r379843 - in head: . Mk devel/qt4 devel/qt4-linguist devel/qt4-linguist/files devel/qt4-linguisttools devel/qt4-linguisttools/files misc/qt4-l10n
Message-ID:  <201502242139.t1OLdKod048958@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: makc
Date: Tue Feb 24 21:39:19 2015
New Revision: 379843
URL: https://svnweb.freebsd.org/changeset/ports/379843
QAT: https://qat.redports.org/buildarchive/r379843/

Log:
  Introduce new USE_QT4 component linguisttools for lrelease/lupdate tools
  split from from devel/qt4-linguist (similar to Qt 5 ports). These console
  tools are often used for localization support in Qt ports, having them
  standalone is quite useful. This work is based on Tobias Berner patch [1].
  
  PR:             190929 [1]
  Requested by:	amdmi3, koobs

Added:
  head/devel/qt4-linguist/files/patch-tools_linguist_linguist.pro   (contents, props changed)
  head/devel/qt4-linguisttools/
  head/devel/qt4-linguisttools/Makefile   (contents, props changed)
  head/devel/qt4-linguisttools/files/
  head/devel/qt4-linguisttools/files/patch-tools_linguist_lrelease_lrelease.pro   (contents, props changed)
  head/devel/qt4-linguisttools/files/patch-tools_linguist_lrelease_main.cpp   (contents, props changed)
  head/devel/qt4-linguisttools/pkg-plist   (contents, props changed)
Modified:
  head/CHANGES
  head/Mk/bsd.qt.mk
  head/UPDATING
  head/devel/qt4-linguist/Makefile
  head/devel/qt4-linguist/pkg-plist
  head/devel/qt4/Makefile
  head/misc/qt4-l10n/Makefile

Modified: head/CHANGES
==============================================================================
--- head/CHANGES	Tue Feb 24 21:22:58 2015	(r379842)
+++ head/CHANGES	Tue Feb 24 21:39:19 2015	(r379843)
@@ -10,6 +10,15 @@ in the release notes and/or placed into 
 
 All ports committers are allowed to commit to this file.
 
+20150224:
+  AUTHOR: makc@FreeBSD.org
+
+  New USE_QT4 component has been introduced to reduce buildtime
+  dependencies for Qt 4 ports that use localization support. Instead
+  of USE_QT4=linguist you should now use USE_QT4=linguisttools_build.
+  Conversion of existing ports may require USE_QT4 adjustment for
+  missing components.
+
 20141217:
   AFFECTS: users of lang/perl5.*
   AUTHOR: mat@FreeBSD.org

Modified: head/Mk/bsd.qt.mk
==============================================================================
--- head/Mk/bsd.qt.mk	Tue Feb 24 21:22:58 2015	(r379842)
+++ head/Mk/bsd.qt.mk	Tue Feb 24 21:39:19 2015	(r379843)
@@ -285,7 +285,7 @@ PLIST_SUB+=		QT_${dir}DIR="${QT_${dir}DI
 Qt_Post_Include=	bsd.qt.mk
 
 _USE_QT_ALL=	assistant clucene dbus declarative designer gui help \
-				imageformats linguist multimedia network opengl pixeltool \
+				imageformats linguist linguisttools multimedia network opengl pixeltool \
 				qdbusviewer qmake script scripttools sql sql-ibase sql-mysql \
 				sql-odbc sql-pgsql sql-sqlite2 sql-sqlite3 svg testlib webkit \
 				xml xmlpatterns
@@ -296,7 +296,7 @@ _USE_QT4_ONLY=	accessible assistant-adp 
 				phonon-gst porting qdoc3 qmlviewer qt3support qtconfig \
 				qtestlib qvfb rcc uic uic3 xmlpatterns-tool
 
-_USE_QT5_ONLY=	buildtools concurrent core graphicaleffects linguisttools \
+_USE_QT5_ONLY=	buildtools concurrent core graphicaleffects \
 				paths printsupport qdbus qdoc qev qml quick \
 				quickcontrols serialport uitools widgets x11extras
 

Modified: head/UPDATING
==============================================================================
--- head/UPDATING	Tue Feb 24 21:22:58 2015	(r379842)
+++ head/UPDATING	Tue Feb 24 21:39:19 2015	(r379843)
@@ -6,6 +6,14 @@ You should get into the habit of checkin
 you update your ports collection, before attempting any port upgrades.
 
 20150224:
+  AFFECTS: Users of devel/qt4-linguist
+  AUTHOR: makc@FreeBSD.org
+
+  Linguist tools have been moved from qt4-linguist port to new
+  devel/qt4-linguisttools port. Deinstall qt4-linguist before
+  upgrading.
+
+20150224:
   AFFECTS: Users of lang/ruby19
 
   lang/ruby19 has reached its end-of-life and has been removed.  The

Modified: head/devel/qt4-linguist/Makefile
==============================================================================
--- head/devel/qt4-linguist/Makefile	Tue Feb 24 21:22:58 2015	(r379842)
+++ head/devel/qt4-linguist/Makefile	Tue Feb 24 21:39:19 2015	(r379843)
@@ -3,7 +3,7 @@
 
 PORTNAME=	linguist
 DISTVERSION=	${QT4_VERSION}
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel
 PKGNAMEPREFIX=	qt4-
 
@@ -11,7 +11,7 @@ MAINTAINER=	kde@FreeBSD.org
 COMMENT=	Qt 4 localization tools
 
 USE_QT4=	qmake_build designer_build moc_build rcc_build uic_build \
-		assistant_run gui network xml
+		assistant_run gui linguisttools_run network xml
 QT_DIST=	yes
 
 HAS_CONFIGURE=	yes

Added: head/devel/qt4-linguist/files/patch-tools_linguist_linguist.pro
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/qt4-linguist/files/patch-tools_linguist_linguist.pro	Tue Feb 24 21:39:19 2015	(r379843)
@@ -0,0 +1,10 @@
+--- tools/linguist/linguist.pro.orig	2015-02-23 21:20:45 UTC
++++ tools/linguist/linguist.pro
+@@ -1,6 +1,2 @@
+ TEMPLATE = subdirs
+-SUBDIRS  = \
+-    lrelease \
+-    lupdate \
+-    lconvert
+-!no-png:!contains(QT_CONFIG, no-gui):SUBDIRS += linguist
++SUBDIRS  = linguist

Modified: head/devel/qt4-linguist/pkg-plist
==============================================================================
--- head/devel/qt4-linguist/pkg-plist	Tue Feb 24 21:22:58 2015	(r379842)
+++ head/devel/qt4-linguist/pkg-plist	Tue Feb 24 21:39:19 2015	(r379843)
@@ -1,11 +1,5 @@
-%%QT_BINDIR%%/lconvert
-%%DEBUG%%%%QT_BINDIR%%/lconvert.debug
 %%QT_BINDIR%%/linguist-qt4
 %%DEBUG%%%%QT_BINDIR%%/linguist-qt4.debug
-%%QT_BINDIR%%/lrelease-qt4
-%%DEBUG%%%%QT_BINDIR%%/lrelease-qt4.debug
-%%QT_BINDIR%%/lupdate-qt4
-%%DEBUG%%%%QT_BINDIR%%/lupdate-qt4.debug
 share/pixmaps/linguist-qt4.png
 %%QT_DATADIR%%/phrasebooks/danish.qph
 %%QT_DATADIR%%/phrasebooks/dutch.qph

Added: head/devel/qt4-linguisttools/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/qt4-linguisttools/Makefile	Tue Feb 24 21:39:19 2015	(r379843)
@@ -0,0 +1,47 @@
+# $FreeBSD$
+
+PORTNAME=	linguisttools
+DISTVERSION=	${QT4_VERSION}
+CATEGORIES=	devel
+PKGNAMEPREFIX=	qt4-
+
+MAINTAINER=	kde@FreeBSD.org
+COMMENT=	Qt 4 localization tools
+
+USE_QT4=	qmake_build xml
+QT_DIST=	yes
+
+HAS_CONFIGURE=	yes
+
+ALL_TARGET=	first
+CONFIGURE_ENV?=	QTDIR=${WRKSRC} PATH=${WRKSRC}/bin:$$PATH
+MAKE_ENV?=	QTDIR=${WRKSRC} LD_LIBRARY_PATH=${WRKSRC}/lib:$$LD_LIBRARY_PATH \
+		PATH=${WRKSRC}/bin:$$PATH
+
+DO_NOT_EXTRACT=	demos doc examples mkspecs qmake translations \
+		src/activeqt src/dbus src/multimedia src/network src/opengl \
+		src/openvg src/phonon src/qt3support src/s60installs \
+		src/s60main src/script src/scripttools src/sql src/svg \
+		src/testlib src/tools src/winmain src/xmlpatterns \
+		src/3rdparty/clucene src/3rdparty/freetype \
+		src/3rdparty/libjpeg src/3rdparty/libmng src/3rdparty/libpng \
+		src/3rdparty/libtiff src/3rdparty/phonon src/3rdparty/webkit
+.for dne in ${DO_NOT_EXTRACT}
+EXTRACT_AFTER_ARGS+=	--exclude '${DISTNAME}/${dne}'
+.endfor
+
+BUILD_WRKSRC=	${WRKSRC}/tools/linguist
+INSTALL_WRKSRC=	${BUILD_WRKSRC}
+
+pre-configure:
+	${REINPLACE_CMD} -E -e 's|^TARGET[[:blank:]]*=[[:blank:]]*([a-z]+)|TARGET=\1${_QT_BINSUFX}|g' \
+		${BUILD_WRKSRC}/linguist.pro ${BUILD_WRKSRC}/linguist/linguist.pro \
+		${BUILD_WRKSRC}/lrelease/lrelease.pro ${BUILD_WRKSRC}/lupdate/lupdate.pro
+	${MKDIR} ${WRKSRC}/mkspecs
+	${LN} -sf ${QMAKE} ${WRKSRC}/bin/qmake
+
+post-patch:
+	@${REINPLACE_CMD} -e '/SUBDIRS.*linguist/ d' \
+		${WRKSRC}/tools/linguist/linguist.pro
+
+.include <bsd.port.mk>

Added: head/devel/qt4-linguisttools/files/patch-tools_linguist_lrelease_lrelease.pro
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/qt4-linguisttools/files/patch-tools_linguist_lrelease_lrelease.pro	Tue Feb 24 21:39:19 2015	(r379843)
@@ -0,0 +1,11 @@
+--- tools/linguist/lrelease/lrelease.pro.orig	2015-02-23 21:14:17 UTC
++++ tools/linguist/lrelease/lrelease.pro
+@@ -2,6 +2,8 @@ TEMPLATE        = app
+ TARGET          = lrelease
+ DESTDIR         = ../../../bin
+ 
++QT -= gui
++
+ DEFINES += QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII
+ SOURCES += main.cpp
+ 

Added: head/devel/qt4-linguisttools/files/patch-tools_linguist_lrelease_main.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/qt4-linguisttools/files/patch-tools_linguist_lrelease_main.cpp	Tue Feb 24 21:39:19 2015	(r379843)
@@ -0,0 +1,10 @@
+--- tools/linguist/lrelease/main.cpp.orig	2014-04-10 18:37:13 UTC
++++ tools/linguist/lrelease/main.cpp
+@@ -47,6 +47,7 @@
+ #ifndef QT_BOOTSTRAPPED
+ #include <QtCore/QCoreApplication>
+ #include <QtCore/QTranslator>
++#include <QtCore/QLibraryInfo>
+ #endif
+ #include <QtCore/QDebug>
+ #include <QtCore/QDir>

Added: head/devel/qt4-linguisttools/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/qt4-linguisttools/pkg-plist	Tue Feb 24 21:39:19 2015	(r379843)
@@ -0,0 +1,6 @@
+%%QT_BINDIR%%/lconvert
+%%DEBUG%%%%QT_BINDIR%%/lconvert.debug
+%%QT_BINDIR%%/lrelease-qt4
+%%DEBUG%%%%QT_BINDIR%%/lrelease-qt4.debug
+%%QT_BINDIR%%/lupdate-qt4
+%%DEBUG%%%%QT_BINDIR%%/lupdate-qt4.debug

Modified: head/devel/qt4/Makefile
==============================================================================
--- head/devel/qt4/Makefile	Tue Feb 24 21:22:58 2015	(r379842)
+++ head/devel/qt4/Makefile	Tue Feb 24 21:39:19 2015	(r379843)
@@ -40,7 +40,8 @@ SQL_PLUGINS_USE=sql-ibase sql-mysql sql-
 		sql-sqlite3
 
 TOOLS_DESC=	Install Qt tools (qmake, moc, etc.)
-TOOLS_USE=	assistant help-tools linguist makeqpf moc pixeltool \
+TOOLS_USE=	assistant help-tools linguist linguisttools makeqpf \
+		moc pixeltool \
 		porting qdbusviewer qdoc3 qmake qmlviewer qtconfig \
 		qvfb rcc uic uic3 xmlpatterns-tool
 

Modified: head/misc/qt4-l10n/Makefile
==============================================================================
--- head/misc/qt4-l10n/Makefile	Tue Feb 24 21:22:58 2015	(r379842)
+++ head/misc/qt4-l10n/Makefile	Tue Feb 24 21:39:19 2015	(r379843)
@@ -2,13 +2,14 @@
 
 PORTNAME=	l10n
 DISTVERSION=	${QT4_VERSION}
+PORTREVISION=	1
 CATEGORIES=	misc
 PKGNAMEPREFIX=	qt4-
 
 MAINTAINER=	kde@FreeBSD.org
 COMMENT=	Qt localized messages
 
-USE_QT4=	linguist_build
+USE_QT4=	linguisttools_build
 QT_DIST=	yes
 
 EXTRACT_AFTER_ARGS+=	--include '${DISTNAME}/src/corelib' \



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