From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8662B1582EF for ; Thu, 20 Feb 2025 23:24:26 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 61FA93430BD for ; Thu, 20 Feb 2025 23:24:26 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 6219B1102A2; Thu, 20 Feb 2025 23:24:25 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 595411102A2 for ; Thu, 20 Feb 2025 23:24:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 097E73430BD for ; Thu, 20 Feb 2025 23:24:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8DEC22654 for ; Thu, 20 Feb 2025 23:24:23 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1740093831.d8bbdaf5194c7fb07e76f18ecce0edd48d35f03b.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/libgeotiff/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/libgeotiff/Manifest sci-libs/libgeotiff/libgeotiff-1.7.4.ebuild X-VCS-Directories: sci-libs/libgeotiff/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: d8bbdaf5194c7fb07e76f18ecce0edd48d35f03b X-VCS-Branch: master Date: Thu, 20 Feb 2025 23:24:23 +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: 04eef587-664d-4f2d-8bae-8d10dbb189f2 X-Archives-Hash: e05ada0790c48053419f32c138ad3a33 commit: d8bbdaf5194c7fb07e76f18ecce0edd48d35f03b Author: Filip Kobierski pm me> AuthorDate: Thu Feb 20 15:28:50 2025 +0000 Commit: Sam James gentoo 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 pm.me> Closes: https://github.com/gentoo/gentoo/pull/40675 Signed-off-by: Sam James 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 +}