* [gentoo-commits] repo/gentoo:master commit in: sci-libs/proj/files/, sci-libs/proj/
@ 2024-08-15 15:00 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2024-08-15 15:00 UTC (permalink / raw
To: gentoo-commits
commit: 036cd5528e34ce330b9f468af4283f369fbc0aba
Author: Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Wed Aug 7 23:33:18 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Aug 15 14:59:12 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=036cd552
sci-libs/proj: add 9.4.1, 9999
Closes: https://bugs.gentoo.org/937472
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/38012
Signed-off-by: Sam James <sam <AT> gentoo.org>
sci-libs/proj/Manifest | 2 +
.../proj/files/proj-9.4.1-include-cstdint.patch | 37 ++++++++
sci-libs/proj/proj-9.4.1.ebuild | 101 +++++++++++++++++++++
sci-libs/proj/proj-9999.ebuild | 100 ++++++++++++++++++++
4 files changed, 240 insertions(+)
diff --git a/sci-libs/proj/Manifest b/sci-libs/proj/Manifest
index 0fb70532f15f..59bcfe52de4a 100644
--- a/sci-libs/proj/Manifest
+++ b/sci-libs/proj/Manifest
@@ -1,4 +1,6 @@
DIST proj-9.2.1.tar.gz 5536575 BLAKE2B e08dc370cfac2c6358e1b28e44f3893c75e07fd64a4235041edf836885d31af33605673486edb122cec8aa13a2c564156c429a68e5045de52d8ea970d2e440f1 SHA512 5640e9bd4ea24a0e0b1521c90b8f709b64b9ee357190aaf08af0cff5df68ae93bdfb27211bde5c50340b067fc218b4f2aa8fb998ed2852ebeb2c2ad0ac4629ef
DIST proj-9.3.0.tar.gz 5559825 BLAKE2B 83916294411a35094a2dbc89b1f219eff9b9baa4df6322a51a1965979044a36b4f1b75a99ea96fed8f59937ac000337a3e2e8ad4d9e1ef2ae929ccb7e06654b0 SHA512 1a79a7eaab0859cf615141723b68d6dd7b88390c3e590df12ec0d4c58ba69574863e5892d8108818dbc7e8abbf0b6372496228c02411d506b7169f732ff5cd57
+DIST proj-9.4.1.tar.gz 5665272 BLAKE2B 9751ca658e77650236e5d8888d4d3a5e3da4c5761494d1a544baa565bd0aea967c08d871d7b67de0b0f7ffb07fc16212edbbd3a91532c70677e1702e050a7f7e SHA512 e9e4a80125a9481709fa7a16c8ceed7c5480c1d9152fe0c16ff69cd976081b9f41e23783459ee2a50771ec7f6210f46167de5af9ee943ff274bd27a1de4b6305
DIST proj-data-1.13.tar.gz 709788173 BLAKE2B 33a487f327d2b35acfd6c7c12286bcd6e338c3459540482f968ef7038d78cea9d1519d89ba979f493e007fa961e0eb955889bf2348a235705ec3b71abf1e31c1 SHA512 14eca1b47dad913de608babc73708a35da8bb614c5374e990564a32549998a16e90d4c548f2dac0cd555fc8a4a645eeaf649db929cc38906bee1050e378a662e
DIST proj-data-1.15.tar.gz 727387470 BLAKE2B 03d5b69214e23741ae214ff18f523542247fdca5c301891616be6b79c8a916bf762d0a7ee3983cee62236bc0d4d1b5fc93151164b134db220d4582b15a84e8d7 SHA512 4007c639d5c9f0422652315e8d69527eb39e3d045cef3537361e16c61c9aae76d69e3eb7efefead04793350b8502114eec740efe970f25fbbee2db449b2e3694
+DIST proj-data-1.18.tar.gz 735652646 BLAKE2B 62ca77e6f0a58992a914ebc6a7558b5ddb4529a5bf20a96eedbc62ef7c1bcc5c05582663846e43e132a1b8eaf821bbbc0be792335bad03028db085422d3ed269 SHA512 805eadd29665697398f568f5e4f45df8eadea6fc2841ce901c703613fab13f6f064e6f187621e76017b9b67bb1ca0c6dc1dd2be9848c5169d7e6ebaa2aeea950
diff --git a/sci-libs/proj/files/proj-9.4.1-include-cstdint.patch b/sci-libs/proj/files/proj-9.4.1-include-cstdint.patch
new file mode 100644
index 000000000000..482e967805ac
--- /dev/null
+++ b/sci-libs/proj/files/proj-9.4.1-include-cstdint.patch
@@ -0,0 +1,37 @@
+https://github.com/rouault/PROJ/commit/35546a7eb1846b93bd035932562193b980c27520
+
+From 35546a7eb1846b93bd035932562193b980c27520 Mon Sep 17 00:00:00 2001
+From: Even Rouault <even.rouault@spatialys.com>
+Date: Wed, 7 Aug 2024 11:25:30 +0200
+Subject: [PATCH] Add missing include cstdint
+
+Fixes #4215
+---
+ src/apps/cct.cpp | 1 +
+ src/apps/cs2cs.cpp | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/src/apps/cct.cpp b/src/apps/cct.cpp
+index f7d46cd655..193fff6e47 100644
+--- a/src/apps/cct.cpp
++++ b/src/apps/cct.cpp
+@@ -79,6 +79,7 @@ Thomas Knudsen, thokn@sdfe.dk, 2016-05-25/2017-10-26
+ #include <string.h>
+
+ #include <algorithm>
++#include <cstdint>
+ #include <fstream> // std::ifstream
+ #include <iostream>
+
+diff --git a/src/apps/cs2cs.cpp b/src/apps/cs2cs.cpp
+index 27caa603cc..88353bf8f0 100644
+--- a/src/apps/cs2cs.cpp
++++ b/src/apps/cs2cs.cpp
+@@ -36,6 +36,7 @@
+ #include <string.h>
+
+ #include <cassert>
++#include <cstdint>
+ #include <iostream>
+ #include <string>
+ #include <vector>
diff --git a/sci-libs/proj/proj-9.4.1.ebuild b/sci-libs/proj/proj-9.4.1.ebuild
new file mode 100644
index 000000000000..2658f91d09c9
--- /dev/null
+++ b/sci-libs/proj/proj-9.4.1.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="PROJ coordinate transformation software"
+HOMEPAGE="https://proj.org/"
+
+if [[ ${PV} = *9999* ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/OSGeo/PROJ.git"
+ EGIT_DATA_REPO_URI="https://github.com/OSGeo/PROJ-data.git"
+else
+ # Check https://proj.org/download.html for latest data tarball
+ # https://github.com/OSGeo/PROJ-data/releases
+ PROJ_DATA_PV="1.18"
+ SRC_URI="
+ https://github.com/OSGeo/PROJ/releases/download/${PV}/${P}.tar.gz
+ https://github.com/OSGeo/PROJ-data/releases/download/${PROJ_DATA_PV}.0/${PN}-data-${PROJ_DATA_PV}.tar.gz
+ https://download.osgeo.org/proj/${P}.tar.gz
+ https://download.osgeo.org/proj/${PN}-data-${PROJ_DATA_PV}.tar.gz
+ "
+ KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+fi
+
+LICENSE="MIT"
+SLOT="0/$(ver_cut 1)"
+# Changes on every major release
+IUSE="curl test +tiff"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-db/sqlite:3
+ curl? ( net-misc/curl )
+ tiff? ( media-libs/tiff:= )
+"
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-cpp/gtest )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-9.4.1-include-cstdint.patch"
+)
+
+src_unpack() {
+ if [[ ${PV} = *9999* ]] ; then
+ git-r3_src_unpack
+
+ git-r3_fetch "${EGIT_DATA_REPO_URI}"
+ git-r3_checkout "${EGIT_DATA_REPO_URI}" "${S}/data"
+ else
+ unpack "${P}.tar.gz"
+
+ cd "${S}"/data || die
+ mv README README.DATA || die
+
+ unpack "${PN}-data-${PROJ_DATA_PV}.tar.gz"
+ fi
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TESTING=$(usex test)
+ -DBUILD_PROJSYNC=$(usex curl)
+ -DENABLE_CURL=$(usex curl)
+ -DENABLE_TIFF=$(usex tiff)
+ )
+
+ if use test ; then
+ mycmakeargs+=(
+ -DUSE_EXTERNAL_GTEST=ON
+ -DBUILD_BENCHMARKS=OFF
+ -DRUN_NETWORK_DEPENDENT_TESTS=OFF
+ )
+ fi
+
+ cmake_src_configure
+}
+
+src_test() {
+ CMAKE_SKIP_TESTS=(
+ # proj_test_cpp_api: https://lists.osgeo.org/pipermail/proj/2019-September/008836.html
+ # testprojinfo: Also related to map data?
+ "proj_test_cpp_api"
+ "testprojinfo"
+ )
+
+ cmake_src_test
+}
+
+src_install() {
+ cmake_src_install
+
+ cd data || die
+ dodoc README.DATA
+
+ find "${ED}" -name '*.la' -type f -delete || die
+}
diff --git a/sci-libs/proj/proj-9999.ebuild b/sci-libs/proj/proj-9999.ebuild
new file mode 100644
index 000000000000..c269939f1a73
--- /dev/null
+++ b/sci-libs/proj/proj-9999.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="PROJ coordinate transformation software"
+HOMEPAGE="https://proj.org/"
+
+if [[ ${PV} = *9999* ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/OSGeo/PROJ.git"
+ EGIT_DATA_REPO_URI="https://github.com/OSGeo/PROJ-data.git"
+else
+ # Check https://proj.org/download.html for latest data tarball
+ # https://github.com/OSGeo/PROJ-data/releases
+ PROJ_DATA_PV="1.18"
+ SRC_URI="
+ https://github.com/OSGeo/PROJ/releases/download/${PV}/${P}.tar.gz
+ https://github.com/OSGeo/PROJ-data/releases/download/${PROJ_DATA_PV}.0/${PN}-data-${PROJ_DATA_PV}.tar.gz
+ https://download.osgeo.org/proj/${P}.tar.gz
+ https://download.osgeo.org/proj/${PN}-data-${PROJ_DATA_PV}.tar.gz
+ "
+ KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+fi
+
+LICENSE="MIT"
+SLOT="0/$(ver_cut 1)"
+# Changes on every major release
+IUSE="curl test +tiff"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-db/sqlite:3
+ curl? ( net-misc/curl )
+ tiff? ( media-libs/tiff:= )
+"
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-cpp/gtest )
+"
+
+PATCHES=(
+)
+
+src_unpack() {
+ if [[ ${PV} = *9999* ]] ; then
+ git-r3_src_unpack
+
+ git-r3_fetch "${EGIT_DATA_REPO_URI}"
+ git-r3_checkout "${EGIT_DATA_REPO_URI}" "${S}/data"
+ else
+ unpack "${P}.tar.gz"
+
+ cd "${S}"/data || die
+ mv README README.DATA || die
+
+ unpack "${PN}-data-${PROJ_DATA_PV}.tar.gz"
+ fi
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TESTING=$(usex test)
+ -DBUILD_PROJSYNC=$(usex curl)
+ -DENABLE_CURL=$(usex curl)
+ -DENABLE_TIFF=$(usex tiff)
+ )
+
+ if use test ; then
+ mycmakeargs+=(
+ -DUSE_EXTERNAL_GTEST=ON
+ -DBUILD_BENCHMARKS=OFF
+ -DRUN_NETWORK_DEPENDENT_TESTS=OFF
+ )
+ fi
+
+ cmake_src_configure
+}
+
+src_test() {
+ CMAKE_SKIP_TESTS=(
+ # proj_test_cpp_api: https://lists.osgeo.org/pipermail/proj/2019-September/008836.html
+ # testprojinfo: Also related to map data?
+ "proj_test_cpp_api"
+ "testprojinfo"
+ )
+
+ cmake_src_test
+}
+
+src_install() {
+ cmake_src_install
+
+ cd data || die
+ dodoc README.DATA
+
+ find "${ED}" -name '*.la' -type f -delete || die
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-08-15 15:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-15 15:00 [gentoo-commits] repo/gentoo:master commit in: sci-libs/proj/files/, sci-libs/proj/ Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox