From owner-svn-ports-all@freebsd.org Wed Jun 20 07:55:31 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 89AFF1008E88; Wed, 20 Jun 2018 07:55:31 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 315B86F1A2; Wed, 20 Jun 2018 07:55:31 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0980F1F7D4; Wed, 20 Jun 2018 07:55:31 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w5K7tUpI062778; Wed, 20 Jun 2018 07:55:30 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w5K7tUjP062776; Wed, 20 Jun 2018 07:55:30 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201806200755.w5K7tUjP062776@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Wed, 20 Jun 2018 07:55:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r472851 - head/graphics/engauge-digitizer X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: head/graphics/engauge-digitizer X-SVN-Commit-Revision: 472851 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jun 2018 07:55:31 -0000 Author: yuri Date: Wed Jun 20 07:55:30 2018 New Revision: 472851 URL: https://svnweb.freebsd.org/changeset/ports/472851 Log: graphics/engauge-digitizer: Add translations Port changes: * Add the NLS option * Build and install translations * Make help to build only when DOCS=on * Limit USE_QT5=help to DOCS=on Modified: head/graphics/engauge-digitizer/Makefile head/graphics/engauge-digitizer/pkg-plist Modified: head/graphics/engauge-digitizer/Makefile ============================================================================== --- head/graphics/engauge-digitizer/Makefile Wed Jun 20 07:31:12 2018 (r472850) +++ head/graphics/engauge-digitizer/Makefile Wed Jun 20 07:55:30 2018 (r472851) @@ -4,6 +4,7 @@ PORTNAME= engauge-digitizer DISTVERSIONPREFIX= v DISTVERSION= 10.7.6-2 DISTVERSIONSUFFIX= -g7ce911c2 +PORTREVISION= 1 CATEGORIES= graphics math science MAINTAINER= yuri@FreeBSD.org @@ -20,15 +21,24 @@ LIB_DEPENDS= libfftw3.so:math/fftw3 \ USES= desktop-file-utils qmake USE_GITHUB= yes GH_ACCOUNT= markummitchell -USE_QT5= core gui help printsupport sql xml widgets buildtools_build linguist_build +USE_QT5= core gui printsupport sql xml widgets buildtools_build linguist_build USE_GL= gl CONFIGURE_ENV= OPENJPEG_INCLUDE=${PREFIX}/include/openjpeg-2.3 OPENJPEG_LIB=${PREFIX}/lib \ POPPLER_INCLUDE=${PREFIX}/include/poppler/qt5 POPPLER_LIB=${PREFIX}/lib QMAKE_ARGS= "CONFIG+=jpeg2000 pdf" -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= NLS DOCS +OPTIONS_SUB= yes -post-build: +DOCS_USE= QT5=help + +do-patch-NLS-on: + @${REINPLACE_CMD} -e 's|QCoreApplication::applicationDirPath () + "/translations",|"${DATADIR}/translations",|' ${WRKSRC}/src/Translator/TranslatorContainer.cpp + +post-build-NLS-on: + @cd ${WRKSRC} && lrelease engauge.pro + +post-build-DOCS-on: @cd ${WRKSRC}/help && ./build do-install: @@ -36,6 +46,10 @@ do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps ${GZIP_CMD} < ${WRKSRC}/src/img/${PORTNAME}.svg > ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/${PORTNAME}.svgz ${INSTALL_DATA} ${WRKSRC}/dev/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications/${PORTNAME}.desktop + +do-install-NLS-on: + @${MKDIR} ${STAGEDIR}${DATADIR}/translations + ${INSTALL_DATA} ${WRKSRC}/translations/*.qm ${STAGEDIR}${DATADIR}/translations do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} Modified: head/graphics/engauge-digitizer/pkg-plist ============================================================================== --- head/graphics/engauge-digitizer/pkg-plist Wed Jun 20 07:31:12 2018 (r472850) +++ head/graphics/engauge-digitizer/pkg-plist Wed Jun 20 07:55:30 2018 (r472851) @@ -1,5 +1,19 @@ bin/engauge -share/icons/hicolor/scalable/apps/engauge-digitizer.svgz share/applications/engauge-digitizer.desktop %%PORTDOCS%%%%DOCSDIR%%/engauge.qch %%PORTDOCS%%%%DOCSDIR%%/engauge.qhc +%%NLS%%%%DATADIR%%/translations/engauge_ar.qm +%%NLS%%%%DATADIR%%/translations/engauge_cs.qm +%%NLS%%%%DATADIR%%/translations/engauge_de.qm +%%NLS%%%%DATADIR%%/translations/engauge_en.qm +%%NLS%%%%DATADIR%%/translations/engauge_es.qm +%%NLS%%%%DATADIR%%/translations/engauge_fr.qm +%%NLS%%%%DATADIR%%/translations/engauge_hi.qm +%%NLS%%%%DATADIR%%/translations/engauge_it.qm +%%NLS%%%%DATADIR%%/translations/engauge_ja.qm +%%NLS%%%%DATADIR%%/translations/engauge_kk.qm +%%NLS%%%%DATADIR%%/translations/engauge_ko.qm +%%NLS%%%%DATADIR%%/translations/engauge_pt.qm +%%NLS%%%%DATADIR%%/translations/engauge_ru.qm +%%NLS%%%%DATADIR%%/translations/engauge_zh.qm +share/icons/hicolor/scalable/apps/engauge-digitizer.svgz