mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
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@pm.me> Closes: https://github.com/gentoo/gentoo/pull/40675 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
e1329b7950
commit
d8bbdaf519
@@ -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
|
||||
|
||||
75
sci-libs/libgeotiff/libgeotiff-1.7.4.ebuild
Normal file
75
sci-libs/libgeotiff/libgeotiff-1.7.4.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user