From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8D25E138A7C for ; Sun, 23 Oct 2016 17:41:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CC614E0804; Sun, 23 Oct 2016 17:41:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A3DD8E0804 for ; Sun, 23 Oct 2016 17:41:15 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3046234166C for ; Mon, 24 Oct 2016 08:52:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 97DF02497 for ; Sun, 23 Oct 2016 17:41:12 +0000 (UTC) From: "Ettore Di Giacinto" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ettore Di Giacinto" Message-ID: <1477244441.437ec6e52ef6edd12ef2f0e5af53a85c3948d616.mudler@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/merkaartor/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-geosciences/merkaartor/merkaartor-9999.ebuild X-VCS-Directories: sci-geosciences/merkaartor/ X-VCS-Committer: mudler X-VCS-Committer-Name: Ettore Di Giacinto X-VCS-Revision: 437ec6e52ef6edd12ef2f0e5af53a85c3948d616 X-VCS-Branch: master Date: Sun, 23 Oct 2016 17:41:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0a770545-17cd-430e-92de-e09635c491ff X-Archives-Hash: 324f20c13683beb41b409f8cc0629676 commit: 437ec6e52ef6edd12ef2f0e5af53a85c3948d616 Author: Andreas Sturmlechner gmail com> AuthorDate: Sun Oct 23 09:53:35 2016 +0000 Commit: Ettore Di Giacinto gentoo org> CommitDate: Sun Oct 23 17:40:41 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=437ec6e5 sci-geosciences/merkaartor: Sync live with latest release ebuild changes Package-Manager: portage-2.3.0 Signed-off-by: Ettore Di Giacinto gentoo.org> sci-geosciences/merkaartor/merkaartor-9999.ebuild | 84 +++++++++++++++++------ 1 file changed, 62 insertions(+), 22 deletions(-) diff --git a/sci-geosciences/merkaartor/merkaartor-9999.ebuild b/sci-geosciences/merkaartor/merkaartor-9999.ebuild index 59fa727..9e81333 100644 --- a/sci-geosciences/merkaartor/merkaartor-9999.ebuild +++ b/sci-geosciences/merkaartor/merkaartor-9999.ebuild @@ -2,13 +2,13 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI=5 +EAPI=6 -PLOCALES="ar cs de es et fr hr hu it ja nl pl pt_BR pt ru sk sv uk" +PLOCALES="ar cs de en es et fr hr hu id_ID it ja nl pl pt_BR pt ru sk sv uk vi zh_CN zh_TW" -inherit eutils fdo-mime gnome2-utils git-r3 l10n multilib qt4-r2 +inherit fdo-mime gnome2-utils git-r3 l10n qmake-utils -DESCRIPTION="A Qt4 based map editor for the openstreetmap.org project" +DESCRIPTION="A Qt based map editor for the openstreetmap.org project" HOMEPAGE="http://www.merkaartor.be https://github.com/openstreetmap/merkaartor" SRC_URI="" EGIT_REPO_URI="https://github.com/openstreetmap/merkaartor.git" @@ -16,55 +16,94 @@ EGIT_REPO_URI="https://github.com/openstreetmap/merkaartor.git" LICENSE="GPL-2" SLOT="0" KEYWORDS="" -IUSE="debug exif gps libproxy qrcode" +IUSE="debug exif gps libproxy qrcode qt5" + +REQUIRED_USE="qrcode? ( !qt5 )" RDEPEND=" - dev-qt/qtcore:4 - dev-qt/qtgui:4 - dev-qt/qtsvg:4 - dev-qt/qtwebkit:4 - >=dev-qt/qtsingleapplication-2.6.1[X,qt4(+)] - >=dev-libs/quazip-0.7[qt4(+)] + !qt5? ( + >=dev-libs/quazip-0.7[qt4(+)] + dev-qt/qtcore:4 + dev-qt/qtgui:4 + dev-qt/qtsingleapplication[qt4] + dev-qt/qtsvg:4 + dev-qt/qtwebkit:4 + ) + qt5? ( + >=dev-libs/quazip-0.7.1[qt5] + dev-qt/qtconcurrent:5 + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtprintsupport:5 + dev-qt/qtsvg:5 + dev-qt/qtwebkit:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + ) + dev-qt/qtsingleapplication[X,qt5?] >=sci-libs/gdal-1.6.0 >=sci-libs/proj-4.6 sys-libs/zlib exif? ( media-gfx/exiv2:= ) - gps? ( >=sci-geosciences/gpsd-2.92[cxx] ) + gps? ( >=sci-geosciences/gpsd-3.13[cxx] ) libproxy? ( net-libs/libproxy ) - qrcode? ( media-gfx/zbar ) + qrcode? ( media-gfx/zbar[qt4] ) " DEPEND="${RDEPEND} + qt5? ( dev-qt/linguist-tools ) virtual/pkgconfig " -DOCS=( AUTHORS CHANGELOG HACKING ) +DOCS=( AUTHORS CHANGELOG ) src_unpack() { git-r3_src_unpack } src_prepare() { + default + my_rm_loc() { sed -i -e "s:../translations/${PN}_${1}.\(ts\|qm\)::" src/src.pro || die rm "translations/${PN}_${1}.ts" || die } - l10n_find_plocales_changes 'translations' "${PN}_" '.ts' - if [[ -n "$(l10n_get_locales)" ]]; then l10n_for_each_disabled_locale_do my_rm_loc - $(qt4_get_bindir)/lrelease src/src.pro || die + if use qt5 ; then + $(qt5_get_bindir)/lrelease src/src.pro || die + else + $(qt4_get_bindir)/lrelease src/src.pro || die + fi fi - epatch_user + # build system expects to be building from git + if [[ ${PV} != *9999 ]] ; then + sed -i "${S}"/src/Config.pri -e "s:SION = .*:SION = \"${PV}\":g" || die + fi } src_configure() { # TRANSDIR_SYSTEM is for bug #385671 - eqmake4 \ - PREFIX="${EPREFIX}/usr" \ - LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ - TRANSDIR_MERKAARTOR="${EPREFIX}/usr/share/${PN}/translations" \ + if use qt5 ; then + eqmake5 \ + PREFIX="${ED}usr" \ + LIBDIR="${ED}usr/$(get_libdir)" \ + TRANSDIR_MERKAARTOR="${ED}usr/share/${PN}/translations" \ + TRANSDIR_SYSTEM="${EPREFIX}/usr/share/qt5/translations" \ + SYSTEM_QTSA=1 \ + SYSTEM_QUAZIP=1 \ + NODEBUG="$(usex debug '0' '1')" \ + GEOIMAGE="$(usex exif '1' '0')" \ + GPSDLIB="$(usex gps '1' '0')" \ + LIBPROXY="$(usex libproxy '1' '0')" \ + ZBAR="$(usex qrcode '1' '0')" \ + Merkaartor.pro + else + eqmake4 \ + PREFIX="${ED}usr" \ + LIBDIR="${ED}usr/$(get_libdir)" \ + TRANSDIR_MERKAARTOR="${ED}usr/share/${PN}/translations" \ TRANSDIR_SYSTEM="${EPREFIX}/usr/share/qt4/translations" \ SYSTEM_QTSA=1 \ SYSTEM_QUAZIP=1 \ @@ -74,6 +113,7 @@ src_configure() { LIBPROXY="$(usex libproxy '1' '0')" \ ZBAR="$(usex qrcode '1' '0')" \ Merkaartor.pro + fi } pkg_preinst() {