diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-02-21 00:15:53 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-02-21 00:15:53 +0000 |
commit | db653baf275126269bb89ea0d2bdb8e50497a94c (patch) | |
tree | 9d1ee94cfa7312384acd366d3dd8f629660b3f18 /sci-libs | |
parent | 1534d50aaf24272ec425fa439389ef7e1f7bf174 (diff) |
gentoo auto-resync : 21:02:2025 - 00:15:53
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/Manifest.gz | bin | 43493 -> 43494 bytes | |||
-rw-r--r-- | sci-libs/libgeotiff/Manifest | 6 | ||||
-rw-r--r-- | sci-libs/libgeotiff/libgeotiff-1.7.3.ebuild | 68 | ||||
-rw-r--r-- | sci-libs/libgeotiff/libgeotiff-1.7.4.ebuild | 75 | ||||
-rw-r--r-- | sci-libs/libgeotiff/metadata.xml | 2 |
5 files changed, 150 insertions, 1 deletions
diff --git a/sci-libs/Manifest.gz b/sci-libs/Manifest.gz Binary files differindex 5e5cf7a78800..ac18c1a53c52 100644 --- a/sci-libs/Manifest.gz +++ b/sci-libs/Manifest.gz diff --git a/sci-libs/libgeotiff/Manifest b/sci-libs/libgeotiff/Manifest index 0edce58bf5c2..456fdf032c21 100644 --- a/sci-libs/libgeotiff/Manifest +++ b/sci-libs/libgeotiff/Manifest @@ -1,5 +1,9 @@ AUX Doxyfile 9282 BLAKE2B 0dcda644c528df5bd495db1785ce0f3213f0ce0c3551205e9c043a52151b59e82704545d55521f1983ca2b77a93c20dc0e9ddcc6b446a6485e942f301e19e165 SHA512 cc0324c682d5f45f516f0a71311a9b6527c5c4cd6c1a4113503ad9023b72c64ef9c257008cda95d565723183f932f61f79aab73e123e7b7ecf8b7fdb30457fee AUX libgeotiff-1.7.1-gnuinstalldirs.patch 4645 BLAKE2B 40deb94bd4eeb55d59d7682b03e34b4b6e3889779a4a134324e4fdc11bcdfe0b1a9b1653256bfe3c58e42f24fc818d2b63e6f651f559efe2e99ce1f7c2badffe SHA512 64e0c4b7ad4e37b910332cc4128f8836ef0215478cc5e8b38b9168c83f6ee718dbf152ec456a983c5ae942d883613d9e201897f83f90e720d355151a765bfbf1 DIST libgeotiff-1.7.1.tar.gz 542779 BLAKE2B e26a14fcb463f4a9e5a3652b978223da6b11dcb4ec6a3b6068460f929a57e9affafdb652f16fad23a2da4612c6ae3c2624bfb4f26c96fc4290a33f1e0629b726 SHA512 af119040598f4349124848d9788ea1d0d2019e23fc48eaf4b0445320c51e91afa6c7e25b49738bdaf0aa4467a19104b00838d669da27dee77898c489fe5fe4c1 +DIST libgeotiff-1.7.3.tar.gz 547548 BLAKE2B cc22000d71c30d178c190a4e10487a49c970590148c92474e805957e3f7dee8211b3cb3543455a9c8a9aa48a9ee79c95e116bdb0741c458b9c7fe91fa2a8fd63 SHA512 a523d6117c7433fe37b7c0cdcba81698426cd4b084bcb35c7dacc9e87bfda1ab7a4c16a9aa64a69dedb78edc2f85e8032bf8b158411f50909603e04d13821cd3 +DIST libgeotiff-1.7.4.tar.gz 549848 BLAKE2B c2eb314b1e318e707831d548442d047bacf84b8040750e99df191b38b0d56f0f6e4a98eb8921fc86a3688ab77d9d7053e9fc93a25656226f66ce067f1884cc72 SHA512 72e81075348ef92c56f84c51bb8234eaf38e10fd88dc786c317ee6c1cf9fb1c07178b8cf4fc6348b1ddf6e42d5888861f8c57dac57273a278d157c59e9803eb1 EBUILD libgeotiff-1.7.1-r3.ebuild 1245 BLAKE2B 321b09888f980799975376bdd6d5453250a7c9b4e5042ee299f3502c63e08bf0c07a0979eecbe3f6cb8d4ab1391afe88c4a293d5d7c3941847ce74b5eb6f6b4c SHA512 bdc584ec35e980ae0527a0f279bf43211c1691c5e8588dabdde8d468f1786e8284c7418d36f160f790a9f8a2d7ead0f9e5e8d9df26881364e8f836d0e1d82f04 -MISC metadata.xml 361 BLAKE2B 880dd2e10e5cc19d0d735f23c844c8f8730b0119555ad79f19bfbbc8f3d64fe1cda0228450ce975fb1a0888cf13b1ff87054463db7a1f930bd447776c2b4e2a5 SHA512 4e48120c42d321362e73b95734f3882792d954a4b56ff8f9e2c1250e67ff7dd18732f06265795efe425cf984caffed1391d58282352aaea5ea94a96ab5186c22 +EBUILD libgeotiff-1.7.3.ebuild 1867 BLAKE2B 69e1905055df7efb675870a5a4243e1c393888a2f11e272e7d5f513cd20d8e1e8e38d59ab389b10c223acfc4e35d36a11b2a1e2a9fb704edc513648b9598f05b SHA512 46d15ee90845352a0e6068a5bcd737dadbf852b36458e70f7cf98bb0d3e35cdf26cb73f183b369effd0de8fade9c33a6dedd85cd8d549167ebbb6b0a13481b29 +EBUILD libgeotiff-1.7.4.ebuild 2040 BLAKE2B 4f01dd189e827c8851d642e071fe06e6293834cd681beefe02fc32658ad6ebcf8e64d584e7b293a6f623bedaf458900861967df62e8affc33b9c0d0d2b9a355c SHA512 e78cdafedceabbb7ba0c98e9d4d5195474698e2561f8160cb0a264d2b35d62178d0ab9989ea9f8539cd0b6de0613972506014d5abfe4688312b99b41ee860dea +MISC metadata.xml 518 BLAKE2B efa4007863eceb308c160e7f6e991a93cddd423ae485981d787b1e909458b937d3079eb012ba7c4984787d8ae11ed2a5df894055a29697bdae9db7c9fb56af95 SHA512 93d5b122b800e3ac4f2c38e17ce4cb9a25f9f7359b83a3fa7f6f89dfeff6422e554265b866bbaa1e5f17d185824dd6b2d0c979f01ca2274afab1b8014e7e2532 diff --git a/sci-libs/libgeotiff/libgeotiff-1.7.3.ebuild b/sci-libs/libgeotiff/libgeotiff-1.7.3.ebuild new file mode 100644 index 000000000000..27e1af474c68 --- /dev/null +++ b/sci-libs/libgeotiff/libgeotiff-1.7.3.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Library for reading TIFF files with embedded tags for geographic information" +HOMEPAGE="https://trac.osgeo.org/geotiff/ https://github.com/OSGeo/libgeotiff" +SRC_URI="https://download.osgeo.org/geotiff/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0/5" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +# TODO: add tiff when resolved: https://github.com/OSGeo/libgeotiff/issues/125 +IUSE="doc jpeg zlib" + +DEPEND=" + >=sci-libs/proj-6.0.0:= + >=media-libs/tiff-3.9.1:= + jpeg? ( media-libs/libjpeg-turbo:= ) + zlib? ( sys-libs/zlib ) +" +RDEPEND="${DEPEND}" +BDEPEND=" + >=media-libs/tiff-3.9.1 + doc? ( app-text/doxygen ) +" + +src_configure() { + # in >1.7.3 there is BUILD_{DOC,MAN}, it should be added + local mycmakeargs=( + -DWITH_JPEG=$(usex jpeg) + -DWITH_TIFF=ON # bug 837287 + -DWITH_TOWGS84=OFF # default + -DWITH_ZLIB=$(usex zlib) + ) + use doc && HTML_DOCS=( docs/api/. ) + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + if use doc; then + mkdir -p docs/api || die + cp "${FILESDIR}"/Doxyfile Doxyfile || die + doxygen -u Doxyfile || die "updating doxygen config failed" + doxygen Doxyfile || die "docs generation failed" + fi +} + +src_test() { + # https://github.com/OSGeo/libgeotiff?tab=readme-ov-file#testing + # Check if still needed: https://github.com/OSGeo/libgeotiff/issues/126 + pushd "${BUILD_DIR}"/bin || die + + # prepare file + ./makegeo || die "makegeo failed" + [[ -f "newgeo.tif" ]] || die "makegeo did not produce a file" + + # test + ./listgeo newgeo.tif > metadata.txt || die "listgeo metadata extraction failed" + ./geotifcp -g metadata.txt newgeo.tif newer.tif > /dev/null || die + cmp new{geo,er}.tif || die "geotifcp produces different files" + popd || die +} diff --git a/sci-libs/libgeotiff/libgeotiff-1.7.4.ebuild b/sci-libs/libgeotiff/libgeotiff-1.7.4.ebuild new file mode 100644 index 000000000000..25055f2a42a3 --- /dev/null +++ b/sci-libs/libgeotiff/libgeotiff-1.7.4.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DOCS_BUILDER="doxygen" + +inherit cmake docs + +DESCRIPTION="Library for reading TIFF files with embedded tags for geographic information" +HOMEPAGE=" + https://trac.osgeo.org/geotiff/ + https://github.com/OSGeo/libgeotiff/tree/master/libgeotiff +" +SRC_URI="https://download.osgeo.org/geotiff/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0/5" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +# TODO: add tiff when resolved: https://github.com/OSGeo/libgeotiff/issues/125 +IUSE="jpeg zlib" + +DEPEND=" + >=sci-libs/proj-6.0.0:= + >=media-libs/tiff-3.9.1:= + jpeg? ( media-libs/libjpeg-turbo:= ) + zlib? ( sys-libs/zlib ) +" +RDEPEND="${DEPEND}" +BDEPEND=">=media-libs/tiff-3.9.1" +# Upstream DOCS are a mess, install the bare minimum +DOCS=( NEWS README ) + +src_configure() { + # in >1.7.3 there is BUILD_{DOC,MAN}, it should be added + local mycmakeargs=( + -DBUILD_MAN=ON # 12K + -DBUILD_DOC=OFF # installs AUTHORS, COPYING... + -DWITH_TOWGS84=ON # default + -DWITH_UTILITIES=ON # default + + -DWITH_JPEG=$(usex jpeg) + -DWITH_TIFF=ON # bug 837287 + -DWITH_ZLIB=$(usex zlib) + ) + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + if use doc; then # use our Doxyfile, upstream violates the sandbox + mkdir -p docs/api || die + ln -s "${FILESDIR}"/Doxyfile ./ || die + doxygen -u Doxyfile || die "updating doxygen config failed" + fi + docs_compile +} + +src_test() { + # https://github.com/OSGeo/libgeotiff?tab=readme-ov-file#testing + # Check if still needed: https://github.com/OSGeo/libgeotiff/issues/126 + pushd "${BUILD_DIR}"/bin || die + + # prepare file + ./makegeo || die "makegeo failed" + [[ -f "newgeo.tif" ]] || die "makegeo did not produce a file" + + # test + ./listgeo newgeo.tif > metadata.txt || die "listgeo metadata extraction failed" + ./geotifcp -g metadata.txt newgeo.tif newer.tif > /dev/null || die + cmp new{geo,er}.tif || die "geotifcp produces different files" + popd || die +} diff --git a/sci-libs/libgeotiff/metadata.xml b/sci-libs/libgeotiff/metadata.xml index 4a868130c3b5..8885661c78b0 100644 --- a/sci-libs/libgeotiff/metadata.xml +++ b/sci-libs/libgeotiff/metadata.xml @@ -6,6 +6,8 @@ <name>Gentoo Geosciences Project</name> </maintainer> <upstream> + <bugs-to>https://github.com/OSGeo/libgeotiff/issues</bugs-to> + <changelog>https://github.com/OSGeo/libgeotiff/blob/master/libgeotiff/NEWS</changelog> <remote-id type="github">OSGeo/libgeotiff</remote-id> </upstream> </pkgmetadata> |