diff options
author | Patrick Lauer <patrick@gentoo.org> | 2023-09-04 07:51:23 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2023-09-04 07:55:21 +0000 |
commit | 6ebb17a0bbf4175bd499becbacaf8e0597f1e6b8 (patch) | |
tree | 06eca512942e4c852518d55bf8044b19f7632c0d /sci-libs/proj/proj-9.3.0.ebuild | |
parent | dev-java/jdbc-mysql: add 8.1.0 (diff) | |
download | gentoo-6ebb17a0bbf4175bd499becbacaf8e0597f1e6b8.tar.gz gentoo-6ebb17a0bbf4175bd499becbacaf8e0597f1e6b8.tar.bz2 gentoo-6ebb17a0bbf4175bd499becbacaf8e0597f1e6b8.zip |
sci-libs/proj: add 9.3.0
Signed-off-by: Patrick Lauer <patrick@gentoo.org>
Diffstat (limited to 'sci-libs/proj/proj-9.3.0.ebuild')
-rw-r--r-- | sci-libs/proj/proj-9.3.0.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/sci-libs/proj/proj-9.3.0.ebuild b/sci-libs/proj/proj-9.3.0.ebuild new file mode 100644 index 000000000000..d161662887a4 --- /dev/null +++ b/sci-libs/proj/proj-9.3.0.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +# Check https://proj.org/download.html for latest data tarball +PROJ_DATA="proj-data-1.15.tar.gz" +DESCRIPTION="PROJ coordinate transformation software" +HOMEPAGE="https://proj.org/" +SRC_URI=" + https://download.osgeo.org/proj/${P}.tar.gz + https://download.osgeo.org/proj/${PROJ_DATA} +" + +LICENSE="MIT" +# Changes on every major release +SLOT="0/$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +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 ) +" + +src_unpack() { + unpack ${P}.tar.gz + + cd "${S}"/data || die + mv README README.DATA || die + + unpack ${PROJ_DATA} +} + +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() { + local myctestargs=( + # proj_test_cpp_api: https://lists.osgeo.org/pipermail/proj/2019-September/008836.html + # testprojinfo: Also related to map data? + -E "(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 +} |