sci-geosciences/gmt: 5.4.4 version bump
authorMichael Uleysky <uleysky@gmail.com>
Tue, 21 Aug 2018 04:38:19 +0000 (14:38 +1000)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sun, 16 Feb 2020 17:07:07 +0000 (18:07 +0100)
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
sci-geosciences/gmt/Manifest
sci-geosciences/gmt/gmt-5.4.4.ebuild [new file with mode: 0644]
sci-geosciences/gmt/metadata.xml

index 44f607655fe3b16c70a43e135adede16ca26aac1..aeeb947dfc19d216b3cebeb3146cbd8f88c00012 100644 (file)
@@ -9,6 +9,7 @@ DIST gmt-4.5.8-non-gpl.tar.bz2 109125 BLAKE2B 7b6eef77a7c15f6d5acfc9ca4cc4d2a8db
 DIST gmt-4.5.8.tar.bz2 39350328 BLAKE2B 8d1e0c588ef4ecef1d64a4071101d9a0c14ba9780a213ce1b121840c0acd676f43931f4a4f03a539b40bfba57935f8a9e9bae3cb3630410f15cccb3bd57eb87b SHA512 5bc3be1f7963df6a3035195e2123645d8a8b7a8a9aa17c89a6dd50560485706c628e0e0aca779930c4a28f2305fcc184981db728085d3373b2cad89e59d5c6fd
 DIST gmt-4.5.9-non-gpl.tar.bz2 103494 BLAKE2B a056845917a7eb2c6e66a8797a2d47a2fe4c9a659b98242ff6953f9194d86d56a85c3e1e973f562d060a3d3396845847de683e06b6b929effb84ca0c625afe8e SHA512 a41cd94acbd014bed780797be1ac1b492388c7c8e0fcfc5e773e894e803a024bdc60b897589ad4db9af973f20606a87ac9cff606f0391641236bca95c0b7a4c5
 DIST gmt-4.5.9.tar.bz2 39325492 BLAKE2B 012afa7555d7262a4b8ae9af90309653f6f374fdb34bffbc1f0052e2cbee93b17d1f6e70934e3de555f83774a34c278bc81f5a6cc7521840a35bc70001d9ee6f SHA512 1edda71787fa2e1434a6891618d4523c39d04c2db285dadc66c1d52b425cfff6866c492926cae41d78d2a4e5118e8d003ef3d71d164e0c0695d71aaddb598242
+DIST gmt-5.4.4-src.tar.xz 105073748 BLAKE2B bd083eeb1a71c5a2e554edadb7d8b9160f9b6d8e7510358b55d31b5f147d6719dbe8ce75510ffd844e74b787b7a6a6498fe5dfdd40755c7e6a28c018c024139b SHA512 cd22f65e7efc1704b06a5e94523af6a3b949dfe9339875abf805f1d00db6533d963ea61afc69d443e21b8070608e2043d712ffad74d1228c758f549f1ac46c22
 DIST gshhg-gmt-2.3.7.tar.gz 57052180 BLAKE2B 5b618c874cca97da819263c3c436db1235d3293712a72c21ac4ca3ae78e95b5d36915312de3df361f978b14c697884ca278bebc41ac4c1d054adda6c417eb5b9 SHA512 27e97efe9d146a58d1c6674c5b6cde6b7545be60c1f7d3d93faca1034986d1648e73b589de571897fc53cd0d050a5875dcc9923e3f861f8473ca568a8142d727
 DIST gshhs-2.1.1-coast.tar.bz2 4322743 BLAKE2B e171b6a41ceee6c15a9a7679c6a9145c1ffcede7be61bc26b351371a7bde7f4ddd68bbd5104638da56a66af3e930fc11d9dc6c215d3c3b528f0d56b855e3b496 SHA512 6009139cc4760925817e789e0c9980ec6bde1310f521e6f43e5643b9eba1e859bb9a23bdc4bb661e66d32f4886ad3ad93f5af76ca93ac847307f9acd37eeb332
 DIST gshhs-2.1.1-full.tar.bz2 29916230 BLAKE2B 80ae867a46fc5f9cab60c3e4cedb0db7d683cb58294865a228b8853b458647179382d8fc7fefcbfff7f33ee0e12b527e402376b78f1be0ff8388a81ba682d52d SHA512 f4759d21514a63b1cf3a65c75aeab951740091235e3f19d832ad2c09416d2ab8d516a8f5bf0f6068c81f6c18f76734c4bf3772c37406c1df5abd4ae445f3d375
diff --git a/sci-geosciences/gmt/gmt-5.4.4.ebuild b/sci-geosciences/gmt/gmt-5.4.4.ebuild
new file mode 100644 (file)
index 0000000..efba807
--- /dev/null
@@ -0,0 +1,109 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit bash-completion-r1 cmake-utils
+
+DESCRIPTION="Powerful map generator"
+HOMEPAGE="https://gmt.soest.hawaii.edu/"
+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"
+
+RDEPEND="
+       !sci-biology/probcons
+       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]
+       lapack? ( virtual/lapack )
+       pcre? ( dev-libs/libpcre )
+       pcre2? ( dev-libs/libpcre2 )
+       net-misc/curl
+       sys-libs/zlib"
+
+DEPEND="${RDEPEND}"
+
+REQUIRED_USE="?? ( pcre pcre2 )"
+
+src_prepare() {
+       cmake-utils_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
+       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"
+       )
+       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
+}
+
+src_install() {
+       cmake-utils_src_install
+       # 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
+
+       # Decompress manuals
+       find "${ED}/usr/share/man" -name "*.gz" -exec gunzip {} + || die
+       # Rename some files to avoid a name conflict with gmt4
+       mv "${ED}/usr/bin/gmt_shell_functions.sh" "${ED}/usr/bin/gmt5_shell_functions.sh" || die
+       mv "${ED}/usr/bin/isogmt" "${ED}/usr/bin/isogmt5" || die
+       rm "${ED}/usr/bin/gmtswitch" || die
+       # Rename bash completion file
+       mv "${D}$(get_bashcompdir)/gmt_completion.bash" "${D}$(get_bashcompdir)/gmt" || die
+}
index 6c1818c1b495c0f17b350162511b2c9cb5ee39fa..4f81777f6e7c4e782d98e78eace87bf837c6d0fa 100644 (file)
@@ -6,15 +6,17 @@
     <name>Gentoo Geosciences Project</name>
   </maintainer>
   <use>
+    <flag name="dcw">Install countries boundaries database</flag>
     <flag name="gdal">Enable <pkg>sci-libs/gdal</pkg> library support</flag>
     <flag name="gmtfull">Full resolution bathymetry database</flag>
     <flag name="gmthigh">Add high resolution bathymetry database</flag>
     <flag name="gmttria">Non GNU triangulation method, more efficient</flag>
-    <flag name="gshhg">Install coastline database</flag>                                                                                                                │······································································································
+    <flag name="gshhg">Install coastline database</flag>
     <flag name="htmldoc">Install html documentation</flag>
     <flag name="metric">Use SI (cm) units instead of US (inches) ones</flag>
     <flag name="mex">Enable compilation of mex supplement which requires Octave/Matlab</flag>
     <flag name="octave">Enable octave support</flag>
+    <flag name="pcre2">Use libpcre2 for regular expressions</flag>
     <flag name="tutorial">Install data files for tutorial</flag>
   </use>
 </pkgmetadata>