public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/libgeotiff/
Date: Thu, 20 Feb 2025 23:24:23 +0000 (UTC)	[thread overview]
Message-ID: <1740093831.d8bbdaf5194c7fb07e76f18ecce0edd48d35f03b.sam@gentoo> (raw)

commit:     d8bbdaf5194c7fb07e76f18ecce0edd48d35f03b
Author:     Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Thu Feb 20 15:28:50 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Feb 20 23:23:51 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8bbdaf5

sci-libs/libgeotiff: add 1.7.4 with more cmakeargs

Changes in top-down order

- use docs.eclass for generating docs
- specify GH path in HOMEPAGE
- add DOCS with comment
- hardcode WITH_MAN -- small files with do depends
- hardcode WITH_DOC -- useless flag honestly
- add explicit WITH_UTILITIES
- add comment
- change `cp` to `ln -s` for copying the doxyfile

Signed-off-by: Filip Kobierski <fkobi <AT> pm.me>
Closes: https://github.com/gentoo/gentoo/pull/40675
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/libgeotiff/Manifest                |  1 +
 sci-libs/libgeotiff/libgeotiff-1.7.4.ebuild | 75 +++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)

diff --git a/sci-libs/libgeotiff/Manifest b/sci-libs/libgeotiff/Manifest
index 5d57a58c6f64..66332cd9b9c0 100644
--- a/sci-libs/libgeotiff/Manifest
+++ b/sci-libs/libgeotiff/Manifest
@@ -1,2 +1,3 @@
 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

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
+}


             reply	other threads:[~2025-02-20 23:24 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-20 23:24 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-05-01 17:58 [gentoo-commits] repo/gentoo:master commit in: sci-libs/libgeotiff/ Sam James
2025-05-01 17:34 Sam James
2025-05-01 17:34 Sam James
2025-05-01 17:34 Sam James
2025-02-20  1:12 Sam James
2025-02-20  1:12 Sam James
2025-02-20  1:12 Sam James
2022-12-18  8:03 Sam James
2022-12-16  1:40 Sam James
2022-12-04  9:23 WANG Xuerui
2022-12-02 18:12 Arthur Zamarin
2022-11-25  9:35 Arthur Zamarin
2022-11-25  9:26 Sam James
2022-11-25  9:03 Arthur Zamarin
2022-11-25  8:22 Arthur Zamarin
2022-11-25  8:09 Sam James
2021-09-17 14:15 Agostino Sarubbo
2021-09-16 18:56 Sam James
2021-09-16  8:03 Agostino Sarubbo
2021-09-15  7:59 Agostino Sarubbo
2021-08-14 23:15 Marek Szuba
2021-07-06  4:12 Sam James
2021-05-27 21:06 David Seifert
2021-02-26 19:06 Sam James
2021-02-25 11:33 Sam James
2021-02-24 20:25 Sam James
2021-02-24 20:24 Sam James
2021-01-25 22:18 Sam James
2021-01-06 15:17 Fabian Groffen
2020-04-10  9:31 Andreas Sturmlechner
2020-04-10  8:05 Mart Raudsepp
2020-02-12 10:47 Agostino Sarubbo
2020-02-12  7:57 Agostino Sarubbo
2020-02-12  7:53 Agostino Sarubbo
2020-02-12  0:23 Piotr Karbowski
2019-12-29  0:20 Andreas Sturmlechner
2019-07-23 14:51 Andreas Sturmlechner
2019-07-23 14:46 Aaron Bauman
2019-07-02  8:28 Sergei Trofimovich
2019-07-02  8:24 Sergei Trofimovich
2019-06-28 15:21 Agostino Sarubbo
2019-06-28 11:37 Agostino Sarubbo
2019-05-24 19:26 Andreas Sturmlechner
2019-05-24 19:26 Andreas Sturmlechner
2019-05-16 19:30 Aaron Bauman
2019-05-06 16:20 Andrey Grozin
2018-08-03 13:32 Amy Liffey
2018-03-28  4:16 Matt Turner
2017-12-19 22:30 Sergei Trofimovich
2017-07-20 20:57 Sergei Trofimovich
2017-07-11  8:41 Alexis Ballier
2016-02-27 12:54 Amy Winston
2016-02-27 12:54 Amy Winston
2016-02-27 12:54 Amy Winston

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1740093831.d8bbdaf5194c7fb07e76f18ecce0edd48d35f03b.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox