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 C5B53138350 for ; Sun, 16 Feb 2020 17:08:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F0889E091A; Sun, 16 Feb 2020 17:08:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9076EE091A for ; Sun, 16 Feb 2020 17:08:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6A61134EB90 for ; Sun, 16 Feb 2020 17:08:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 49C8C146 for ; Sun, 16 Feb 2020 17:08:45 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1581872877.43bf958195aaff2a083ccde319081b2e1018a3fb.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/gmt/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-geosciences/gmt/gmt-5.4.4.ebuild sci-geosciences/gmt/metadata.xml X-VCS-Directories: sci-geosciences/gmt/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 43bf958195aaff2a083ccde319081b2e1018a3fb X-VCS-Branch: master Date: Sun, 16 Feb 2020 17:08:45 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7adceb34-b91a-4ca0-828b-b7de79ba5a57 X-Archives-Hash: 9e6fded73c930284a6b1d86da598e81d commit: 43bf958195aaff2a083ccde319081b2e1018a3fb Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Feb 16 16:05:44 2020 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Feb 16 17:07:57 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43bf9581 sci-geosciences/gmt: EAPI-7, cmake.eclass, slot ops, style fix unused cmake vars drop optional runtime USE - dcw and gshhg did not switch any build options, so technically are RDEPEND optional. Hard-depend on them instead. Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andreas Sturmlechner gentoo.org> sci-geosciences/gmt/gmt-5.4.4.ebuild | 94 ++++++++++++++++++------------------ sci-geosciences/gmt/metadata.xml | 1 - 2 files changed, 48 insertions(+), 47 deletions(-) diff --git a/sci-geosciences/gmt/gmt-5.4.4.ebuild b/sci-geosciences/gmt/gmt-5.4.4.ebuild index efba8079f9e..c2e3c983f50 100644 --- a/sci-geosciences/gmt/gmt-5.4.4.ebuild +++ b/sci-geosciences/gmt/gmt-5.4.4.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -inherit bash-completion-r1 cmake-utils +inherit bash-completion-r1 cmake DESCRIPTION="Powerful map generator" HOMEPAGE="https://gmt.soest.hawaii.edu/" @@ -12,71 +12,73 @@ SRC_URI="mirror://gmt/${P}-src.tar.xz" LICENSE="GPL-3+ gmttria? ( Artistic )" SLOT="5" KEYWORDS="~amd64 ~x86" -IUSE="+dcw doc examples +fftw +gdal gmttria +gshhg htmldoc lapack openmp pcre pcre2 threads tutorial" +IUSE="doc examples +fftw +gdal gmttria htmldoc lapack openmp pcre pcre2 threads tutorial" -RDEPEND=" - !sci-biology/probcons +REQUIRED_USE="?? ( pcre pcre2 )" + +DEPEND=" app-text/ghostscript-gpl - dcw? ( sci-geosciences/dcw-gmt ) - fftw? ( sci-libs/fftw:3.0/3 ) - gdal? ( sci-libs/gdal ) - gshhg? ( sci-geosciences/gshhg-gmt ) - >=sci-libs/netcdf-4.1[hdf5] + net-misc/curl + >=sci-libs/netcdf-4.1:=[hdf5] + sys-libs/zlib + fftw? ( sci-libs/fftw:3.0= ) + gdal? ( sci-libs/gdal:= ) lapack? ( virtual/lapack ) pcre? ( dev-libs/libpcre ) pcre2? ( dev-libs/libpcre2 ) - net-misc/curl - sys-libs/zlib" - -DEPEND="${RDEPEND}" - -REQUIRED_USE="?? ( pcre pcre2 )" +" +RDEPEND="${DEPEND} + !sci-biology/probcons + sci-geosciences/dcw-gmt + sci-geosciences/gshhg-gmt +" src_prepare() { - cmake-utils_src_prepare + cmake_src_prepare # Rename man pages to avoid a name conflict with gmt4 pushd man_release || die local m c suffix newc - for m in *.gz; do - c=${m%%.*} - suffix=${m#*.} - newc=gmt_${c} - # This man pages does'nt conflict - case "${c}" in - "gmt" | "gmt.conf" | "postscriptlight") - continue ;; - "gmt_shell_functions") - newc=gmt5_shell_functions ;; - "gmtcolors") - newc=gmt5colors ;; - esac - mv "${c}.${suffix}" "${newc}.${suffix}" || die - done + for m in *.gz; do + c=${m%%.*} + suffix=${m#*.} + newc=gmt_${c} + # This man pages does'nt conflict + case ${c} in + gmt|gmt.conf|postscriptlight) + continue ;; + gmt_shell_functions) + newc=gmt5_shell_functions ;; + gmtcolors) + newc=gmt5colors ;; + esac + mv "${c}.${suffix}" "${newc}.${suffix}" || die + done popd || die } src_configure() { local mycmakeargs=( - -DLICENSE_RESTRICTED="$(usex gmttria no yes)" - -DGMT_OPENMP="$(usex openmp)" - -DGMT_USE_THREADS="$(usex threads)" - -DGMT_INSTALL_TRADITIONAL_FOLDERNAMES=OFF # Install bash completions properly - -DGMT_INSTALL_MODULE_LINKS=OFF # Don't install symlinks on gmt binary, they are conflicted with gmt4 - -DBASH_COMPLETION_DIR="$(get_bashcompdir)" -DGMT_DATADIR="share/${P}" -DGMT_DOCDIR="share/doc/${PF}" -DGMT_MANDIR="share/man" + -DLICENSE_RESTRICTED=$(usex gmttria no yes) + -DGMT_OPENMP=$(usex openmp) + -DGMT_USE_THREADS=$(usex threads) + -DGMT_INSTALL_TRADITIONAL_FOLDERNAMES=OFF # Install bash completions properly + -DGMT_INSTALL_MODULE_LINKS=OFF # Don't install symlinks on gmt binary, they are conflicted with gmt4 + -DBASH_COMPLETION_DIR="$(get_bashcompdir)" + $(cmake_use_find_package gdal GDAL) + $(cmake_use_find_package fftw FFTW3) + $(cmake_use_find_package lapack LAPACK) + $(cmake_use_find_package pcre PCRE) ) - use fftw || mycmakeargs+=( -DGMT_EXCLUDE_FFTW3=yes ) - use gdal || mycmakeargs+=( -DGMT_EXCLUDE_GDAL=yes ) - use lapack || mycmakeargs+=( -DGMT_EXCLUDE_LAPACK=yes ) - use pcre || mycmakeargs+=( -DGMT_EXCLUDE_PCRE=yes ) - use pcre2 || mycmakeargs+=( -DGMT_EXCLUDE_PCRE2=yes ) - cmake-utils_src_configure + use pcre || mycmakeargs+=( $(cmake_use_find_package pcre2 PCRE2) ) + + cmake_src_configure } src_install() { - cmake-utils_src_install + cmake_src_install # Remove various documentation if ! use doc; then rm -rf "${ED}/usr/share/doc/${PF}/pdf" || die diff --git a/sci-geosciences/gmt/metadata.xml b/sci-geosciences/gmt/metadata.xml index 4f81777f6e7..d0db455197c 100644 --- a/sci-geosciences/gmt/metadata.xml +++ b/sci-geosciences/gmt/metadata.xml @@ -6,7 +6,6 @@ Gentoo Geosciences Project - Install countries boundaries database Enable sci-libs/gdal library support Full resolution bathymetry database Add high resolution bathymetry database