Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/libgeotiff/
Date: Tue, 06 Jul 2021 04:12:48
Message-Id: 1625544757.5deff5efc995823601fea01f493e7580ec732a54.sam@gentoo
1 commit: 5deff5efc995823601fea01f493e7580ec732a54
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 6 02:16:41 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 6 04:12:37 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5deff5ef
7
8 sci-libs/libgeotiff: add 1.7.0
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sci-libs/libgeotiff/Manifest | 1 +
13 sci-libs/libgeotiff/libgeotiff-1.7.0.ebuild | 60 +++++++++++++++++++++++++++++
14 2 files changed, 61 insertions(+)
15
16 diff --git a/sci-libs/libgeotiff/Manifest b/sci-libs/libgeotiff/Manifest
17 index f5d06499c8f..7a85e7ff274 100644
18 --- a/sci-libs/libgeotiff/Manifest
19 +++ b/sci-libs/libgeotiff/Manifest
20 @@ -1 +1,2 @@
21 DIST libgeotiff-1.6.0.tar.gz 537175 BLAKE2B 4b1430c9e80cdd4193f474484b295c151ecb9a654248e08527046f1aa35cfab0be59980edad2cc6ae90c1a7b0e03d46fd203affd5b01c83e0fd4435d5e56b2d3 SHA512 4c59598140d6c435a25aff6520e07a01a0153cac526df3b3e1366d5edc43cd82b15099da79ee8a2fb916e858f5a5d7421cfbf96bb485c91fac9e19c7209b7418
22 +DIST libgeotiff-1.7.0.tar.gz 541931 BLAKE2B 3c0843f8c86d6bbcedf9d07b45d2d676f1ccfaba7b5e40fa7f8d5f290b39da5cfaebe39567eab9e8add1b99042aad51d5104b81c2c05493d18d022d41e5b106b SHA512 8e294b5db89e88dbd4f7eb9d804be788ff3d14a1a14f721e9805b42cc797500596f0473dd8e5be6c1da01b56bdebc872df2b30470a2d96686f308019de10739a
23
24 diff --git a/sci-libs/libgeotiff/libgeotiff-1.7.0.ebuild b/sci-libs/libgeotiff/libgeotiff-1.7.0.ebuild
25 new file mode 100644
26 index 00000000000..746a584a921
27 --- /dev/null
28 +++ b/sci-libs/libgeotiff/libgeotiff-1.7.0.ebuild
29 @@ -0,0 +1,60 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +inherit autotools
36 +
37 +DESCRIPTION="Library for reading TIFF files with embedded tags for geographic information"
38 +HOMEPAGE="https://trac.osgeo.org/geotiff/ https://github.com/OSGeo/libgeotiff"
39 +SRC_URI="https://download.osgeo.org/geotiff/${PN}/${P}.tar.gz"
40 +
41 +LICENSE="GPL-2"
42 +SLOT="0/5"
43 +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
44 +IUSE="debug doc"
45 +
46 +BDEPEND="
47 + doc? ( app-doc/doxygen )
48 + virtual/pkgconfig
49 +"
50 +DEPEND="
51 + >=media-libs/tiff-3.9.1:0
52 + >=sci-libs/proj-6.0.0:=
53 + sys-libs/zlib
54 + virtual/jpeg:=
55 +"
56 +RDEPEND="${DEPEND}"
57 +
58 +src_prepare() {
59 + default
60 + sed -e "s:-O3::g" -i configure.ac || die
61 + eautoreconf
62 +}
63 +
64 +src_configure() {
65 + econf \
66 + --disable-static \
67 + --enable-debug=$(usex debug) \
68 + --with-jpeg="${EPREFIX}"/usr \
69 + --with-zip="${EPREFIX}"/usr
70 +}
71 +
72 +src_compile() {
73 + default
74 +
75 + if use doc; then
76 + mkdir -p docs/api || die
77 + cp "${FILESDIR}"/Doxyfile Doxyfile || die
78 + doxygen -u Doxyfile || die "updating doxygen config failed"
79 + doxygen Doxyfile || die "docs generation failed"
80 + fi
81 +}
82 +
83 +src_install() {
84 + use doc && local HTML_DOCS=( docs/api/. )
85 +
86 + default
87 +
88 + find "${D}" -name '*.la' -type f -delete || die
89 +}