summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2022-03-01 12:56:57 +0100
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2022-03-01 12:57:03 +0100
commitb9857b8e20f45d0d4d477eaab0acf4e2798ba191 (patch)
tree7b825caf6484570541b535badb2df55691b39fb8 /sci-geosciences
parentdev-embedded/u-boot-tools: Stabilize 2022.01 x86, #834434 (diff)
downloadgentoo-b9857b8e20f45d0d4d477eaab0acf4e2798ba191.tar.gz
gentoo-b9857b8e20f45d0d4d477eaab0acf4e2798ba191.tar.bz2
gentoo-b9857b8e20f45d0d4d477eaab0acf4e2798ba191.zip
sci-geosciences/gmt: add version 6.3.0
Co-authored-by: Daniel Peters <sir_tuam@web.de> Closes: https://bugs.gentoo.org/728500 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-geosciences')
-rw-r--r--sci-geosciences/gmt/Manifest1
-rw-r--r--sci-geosciences/gmt/gmt-6.3.0.ebuild97
-rw-r--r--sci-geosciences/gmt/metadata.xml1
3 files changed, 99 insertions, 0 deletions
diff --git a/sci-geosciences/gmt/Manifest b/sci-geosciences/gmt/Manifest
index 63ed70439e37..7be2ca454c3d 100644
--- a/sci-geosciences/gmt/Manifest
+++ b/sci-geosciences/gmt/Manifest
@@ -1,3 +1,4 @@
DIST gmt-4.5.18-non-gpl-src.tar.bz2 103378 BLAKE2B 3a52b547940f3e79a6dd8076b8279310e90b3f7a01a5b9e68186fc3d1711af4f5730fa20a8a04bdc57a8e06f9a656c8db71c5bc2b8d42292cb7434ad07880732 SHA512 57281e78cd40b168cfd49818a25523c1d1b44a8c4cab59aa5683052f14df25016b70485f79327bac37f5dd8b7c77d01a2264fe08045b7c13c3e1bd216323e50e
DIST gmt-4.5.18-src.tar.bz2 39791396 BLAKE2B 2199c337707773f91c3372992821f35a4e2d0f7451881507d29798425d914e82cc8d038fee43e6a44bbc18190619134906424f4d5ca3261af69d43934661fd90 SHA512 6d28ac29049c480d22063bbbcdb0cacf2c620e817eda19435e9b1bc0a899acf062296530f1fc677c77472fafaa6b1e6c443aaf8def7505847ed4afdd5c972945
DIST gmt-5.4.4-src.tar.xz 105073748 BLAKE2B bd083eeb1a71c5a2e554edadb7d8b9160f9b6d8e7510358b55d31b5f147d6719dbe8ce75510ffd844e74b787b7a6a6498fe5dfdd40755c7e6a28c018c024139b SHA512 cd22f65e7efc1704b06a5e94523af6a3b949dfe9339875abf805f1d00db6533d963ea61afc69d443e21b8070608e2043d712ffad74d1228c758f549f1ac46c22
+DIST gmt-6.3.0-src.tar.gz 68516925 BLAKE2B 0b7197d3fbc8bdf4dec3e85a2a122eee7a4c6cdd7d04d5fc74a72d62f80c4d38d9a2c2c0fa278e03e6ce5f04ef5cb47d9fd6255d8af8ee3736979260f9e5da86 SHA512 696a3bdc86f811e6a05dccad154efee6ea4b800e7a647ed7668f14b793e14eb61e7fadf85c0d34653709e54e595bad2d34617bdbaeb6a73267ec85db29db5ddf
diff --git a/sci-geosciences/gmt/gmt-6.3.0.ebuild b/sci-geosciences/gmt/gmt-6.3.0.ebuild
new file mode 100644
index 000000000000..825e8ff6ec66
--- /dev/null
+++ b/sci-geosciences/gmt/gmt-6.3.0.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-r1 cmake
+
+DESCRIPTION="Powerful map generator"
+HOMEPAGE="https://www.generic-mapping-tools.org"
+SRC_URI="https://github.com/GenericMappingTools/${PN}/releases/download/${PV}/${P}-src.tar.gz"
+
+LICENSE="GPL-3+ gmttria? ( Artistic )"
+SLOT="6"
+KEYWORDS="~amd64 ~x86"
+IUSE="blas +fftw ffmpeg +gdal geos gmttria lapack openmp pcre pcre2 threads zlib"
+
+REQUIRED_USE="?? ( pcre pcre2 )"
+
+DEPEND="
+ app-text/ghostscript-gpl:=
+ media-gfx/graphicsmagick:=
+ net-misc/curl
+ >=sci-libs/netcdf-4.1:=[hdf5]
+ media-video/ffmpeg:=
+ blas? ( virtual/blas )
+ fftw? ( sci-libs/fftw:3.0= )
+ gdal? ( sci-libs/gdal:= )
+ geos? ( sci-libs/geos )
+ lapack? ( virtual/lapack )
+ pcre? ( dev-libs/libpcre:= )
+ pcre2? ( dev-libs/libpcre2:= )
+ zlib? ( sys-libs/zlib:= )
+"
+RDEPEND="${DEPEND}
+ !sci-biology/probcons
+ sci-geosciences/dcw-gmt
+ sci-geosciences/gshhg-gmt
+"
+
+src_prepare() {
+ cmake_src_prepare
+ # Rename man pages to avoid a name conflict with gmt5
+ pushd man_release || die
+ local m c suffix newc
+ for m in *.gz; do
+ c=${m%%.*}
+ suffix=${m#*.}
+ if [[ "${c}" == "gmt" ]]; then
+ newc=gmt${SLOT}
+ else
+ newc=gmt${SLOT}_${c}
+ fi
+ mv "${c}.${suffix}" "${newc}.${suffix}" || die
+ done
+ popd || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DGMT_DATADIR="share/${P}"
+ -DGMT_DOCDIR="share/doc/${PF}"
+ -DGMT_MANDIR="share/man"
+ -DLICENSE_RESTRICTED=$(usex gmttria no yes)
+ -DGMT_ENABLE_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 gmt5
+ -DGMT_INSTALL_NAME_SUFFIX="${SLOT}"
+ -DBASH_COMPLETION_DIR="$(get_bashcompdir)"
+ $(cmake_use_find_package blas BLAS)
+ $(cmake_use_find_package gdal GDAL)
+ $(cmake_use_find_package geos GEOS)
+ $(cmake_use_find_package fftw FFTW3)
+ $(cmake_use_find_package lapack LAPACK)
+ $(cmake_use_find_package pcre PCRE)
+ $(cmake_use_find_package zlib ZLIB)
+ )
+ use pcre || mycmakeargs+=( $(cmake_use_find_package pcre2 PCRE2) )
+
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+ docompress -x /usr/share/doc/${PF}/examples
+ docompress -x /usr/share/doc/${PF}/tutorial
+
+ # remove conflicting symlink
+ rm "${ED}/usr/bin/gmt" || die
+ rm "${ED}/usr/$(get_libdir)/libgmt.so" || die
+ rm "${ED}/usr/$(get_libdir)/libpostscriptlight.so" || die
+
+ # Decompress manuals
+ find "${ED}/usr/share/man" -name "*.gz" -exec gunzip {} + || die
+ # Rename bash completion file
+ mv "${D}$(get_bashcompdir)/gmt_completion.bash" "${D}$(get_bashcompdir)/gmt${SLOT}" || die
+}
diff --git a/sci-geosciences/gmt/metadata.xml b/sci-geosciences/gmt/metadata.xml
index 3a11971d2b8c..144f7af6cdfa 100644
--- a/sci-geosciences/gmt/metadata.xml
+++ b/sci-geosciences/gmt/metadata.xml
@@ -7,6 +7,7 @@
</maintainer>
<use>
<flag name="gdal">Enable <pkg>sci-libs/gdal</pkg> library support</flag>
+ <flag name="geos">Enable <pkg>sci-libs/geos</pkg> library support</flag>
<flag name="gmttria">Non GNU triangulation method, more efficient</flag>
<flag name="gshhg">Install coastline database</flag>
<flag name="htmldoc">Install html documentation</flag>