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 66C0E138350 for ; Sun, 16 Feb 2020 17:08:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 48436E08FA; Sun, 16 Feb 2020 17:08:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 1749BE08FA for ; Sun, 16 Feb 2020 17:08:48 +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 9173A34EB8F for ; Sun, 16 Feb 2020 17:08:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ED21013B for ; Sun, 16 Feb 2020 17:08:44 +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: <1581872827.c536857dc3ca88dc25936ad650c17a7591574df6.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-4.5.18-r1.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: c536857dc3ca88dc25936ad650c17a7591574df6 X-VCS-Branch: master Date: Sun, 16 Feb 2020 17:08:44 +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: 5478ef06-4600-4fe9-9e88-166580ae7220 X-Archives-Hash: 5f50cd01ed17f2f0cf979ac7c1507717 commit: c536857dc3ca88dc25936ad650c17a7591574df6 Author: Michael Uleysky gmail com> AuthorDate: Tue Aug 21 04:35:53 2018 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Feb 16 17:07:07 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c536857d sci-geosciences/gmt: DEPEND on gshhg-data, fine-grained doc USE Add new flags that control the installation of documentation. Signed-off-by: Andreas Sturmlechner gentoo.org> sci-geosciences/gmt/gmt-4.5.18-r1.ebuild | 89 ++++++++++++++++++++++++++++++++ sci-geosciences/gmt/metadata.xml | 3 ++ 2 files changed, 92 insertions(+) diff --git a/sci-geosciences/gmt/gmt-4.5.18-r1.ebuild b/sci-geosciences/gmt/gmt-4.5.18-r1.ebuild new file mode 100644 index 00000000000..086f864b6b2 --- /dev/null +++ b/sci-geosciences/gmt/gmt-4.5.18-r1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools + +DESCRIPTION="Powerful map generator" +HOMEPAGE="https://gmt.soest.hawaii.edu/" +SRC_URI=" + mirror://gmt/${P}-src.tar.bz2 + gmttria? ( mirror://gmt/${P}-non-gpl-src.tar.bz2 )" + +LICENSE="GPL-2+ gmttria? ( Artistic )" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples debug +gdal gmttria +gshhg htmldoc +metric mex +netcdf octave postscript tutorial" + +RDEPEND=" + !sci-biology/probcons + gdal? ( sci-libs/gdal ) + gshhg? ( sci-geosciences/gshhg-gmt ) + netcdf? ( >=sci-libs/netcdf-4.1 ) + octave? ( sci-mathematics/octave )" +DEPEND="${RDEPEND}" + +# mex can use matlab too which i can't test +REQUIRED_USE=" + mex? ( octave ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-4.5.9-no-strip.patch + "${FILESDIR}"/${PN}-4.5.6-respect-ldflags.patch + ) + +src_configure() { + local myconf=( + --datadir=/usr/share/${P} + --includedir=/usr/include/${P} + --disable-update + --disable-matlab + --disable-xgrid + --disable-debug + $(use_enable gdal) + $(use_enable netcdf) + $(use_enable octave) + $(use_enable debug devdebug) + $(use_enable !metric US) + $(use_enable postscript eps) + $(use_enable mex) + $(use_enable gmttria triangle) + $(use_with gshhg gshhg-dir /usr/share/gshhg) + ) + econf "${myconf[@]}" +} + +src_compile() { + emake -j1 +} + +src_install() { + emake DESTDIR="${D}" -j1 install-all + einstalldocs + + # Remove various documentation + if ! use doc; then + rm -rf "${ED}/usr/share/doc/${PF}/pdf" || die + fi + + if use examples; then + docompress -x /usr/share/doc/${PF}/examples + else + rm -rf "${ED}/usr/share/doc/${PF}/examples" || die + fi + + if ! use htmldoc; then + rm -rf "${ED}/usr/share/doc/${PF}/html" || die + fi + + if use tutorial; then + docompress -x /usr/share/doc/${PF}/tutorial + else + rm -rf "${ED}/usr/share/doc/${PF}/tutorial" || die + fi + + # remove static libs + find "${ED}/usr/$(get_libdir)" -name '*.a' -delete || die +} diff --git a/sci-geosciences/gmt/metadata.xml b/sci-geosciences/gmt/metadata.xml index c31969b5f36..6c1818c1b49 100644 --- a/sci-geosciences/gmt/metadata.xml +++ b/sci-geosciences/gmt/metadata.xml @@ -10,8 +10,11 @@ Full resolution bathymetry database Add high resolution bathymetry database Non GNU triangulation method, more efficient + Install coastline database │······································································································ + Install html documentation Use SI (cm) units instead of US (inches) ones Enable compilation of mex supplement which requires Octave/Matlab Enable octave support + Install data files for tutorial