From 1b013d9d13c304bf66a4a6c16d272d25bc480b83 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 22 Feb 2023 02:26:51 +0000 Subject: gentoo auto-resync : 22:02:2023 - 02:26:50 --- .../GeographicLib/GeographicLib-1.52-r1.ebuild | 106 --------------------- .../GeographicLib/GeographicLib-1.52-r2.ebuild | 106 +++++++++++++++++++++ sci-geosciences/GeographicLib/Manifest | 2 +- 3 files changed, 107 insertions(+), 107 deletions(-) delete mode 100644 sci-geosciences/GeographicLib/GeographicLib-1.52-r1.ebuild create mode 100644 sci-geosciences/GeographicLib/GeographicLib-1.52-r2.ebuild (limited to 'sci-geosciences/GeographicLib') diff --git a/sci-geosciences/GeographicLib/GeographicLib-1.52-r1.ebuild b/sci-geosciences/GeographicLib/GeographicLib-1.52-r1.ebuild deleted file mode 100644 index 6acffe7cf2eb..000000000000 --- a/sci-geosciences/GeographicLib/GeographicLib-1.52-r1.ebuild +++ /dev/null @@ -1,106 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{9..10} ) - -inherit cmake distutils-r1 - -MY_PN="${PN,,}" - -DESCRIPTION="C++ library for converting geographic coordinate systems" -HOMEPAGE="https://sourceforge.net/projects/geographiclib/" -SRC_URI="mirror://sourceforge/${MY_PN}/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0/19" -KEYWORDS="~amd64 ~arm" -IUSE="doc examples python" - -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" -RDEPEND="python? ( ${PYTHON_DEPS} )" -DEPEND="${RDEPEND}" -BDEPEND=" - doc? ( - >=app-doc/doxygen-1.8.7 - >=dev-lang/perl-5.26.1-r1 - >=dev-python/sphinx-1.6.3-r2 - >=sys-apps/util-linux-2.31 - ) -" - -distutils_enable_tests setup.py -# there are additional docs in the python dir -distutils_enable_sphinx python/doc - -src_prepare() { - cmake_src_prepare - - if use python; then - pushd "python" || die - distutils-r1_src_prepare - popd || die - fi -} - -src_configure() { - export GEODATAPATH="/usr/share/${MY_PN}" - - local mycmakeargs=( - -DGEOGRAPHICLIB_DOCUMENTATION=$(usex doc ON OFF) - -DGEOGRAPHICLIB_LIB_TYPE="SHARED" - -DGEOGRAPHICLIB_DATA="${GEODATAPATH}" - ) - cmake_src_configure -} - -src_compile() { - cmake_src_compile - - if use python; then - pushd "python" || die - distutils-r1_src_compile - popd || die - fi -} - -src_test() { - cmake_src_test - - if use python; then - pushd "python" || die - distutils-r1_src_test - popd || die - fi -} - -src_install() { - cmake_src_install - - # Remove python things added by the cmake_src_install function - rm -r "${ED}/usr/$(get_libdir)/python" || die - - # If using Python, we re-add these python files for each implementation - if use python; then - pushd "python" || die - distutils-r1_src_install - popd || die - fi - - # TODO: find out if java stuff need something - - # Installs to wrong doc dir for some reason - # Also happens with USE="-doc" - mv "${D}/usr/share/doc/${PN}" "${D}/usr/share/doc/${PF}" || die - - if use examples; then - dodoc -r examples - docompress -x "/usr/share/doc/${PF}/examples" - fi - - insinto "/usr/share/maxima/${MY_PN}" - doins -r maxima/. - - find "${D}" -name "*.la" -delete || die -} diff --git a/sci-geosciences/GeographicLib/GeographicLib-1.52-r2.ebuild b/sci-geosciences/GeographicLib/GeographicLib-1.52-r2.ebuild new file mode 100644 index 000000000000..2443936aaaec --- /dev/null +++ b/sci-geosciences/GeographicLib/GeographicLib-1.52-r2.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) + +inherit cmake distutils-r1 + +MY_PN="${PN,,}" + +DESCRIPTION="C++ library for converting geographic coordinate systems" +HOMEPAGE="https://sourceforge.net/projects/geographiclib/" +SRC_URI="mirror://sourceforge/${MY_PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/19" +KEYWORDS="~amd64 ~arm" +IUSE="doc examples python" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +RDEPEND="python? ( ${PYTHON_DEPS} )" +DEPEND="${RDEPEND}" +BDEPEND=" + doc? ( + >=app-doc/doxygen-1.8.7 + >=dev-lang/perl-5.26.1-r1 + >=dev-python/sphinx-1.6.3-r2 + >=sys-apps/util-linux-2.31 + ) +" + +distutils_enable_tests setup.py +# there are additional docs in the python dir +distutils_enable_sphinx python/doc + +src_prepare() { + cmake_src_prepare + + if use python; then + pushd "python" || die + distutils-r1_src_prepare + popd || die + fi +} + +src_configure() { + export GEODATAPATH="/usr/share/${MY_PN}" + + local mycmakeargs=( + -DGEOGRAPHICLIB_DOCUMENTATION=$(usex doc ON OFF) + -DGEOGRAPHICLIB_LIB_TYPE="SHARED" + -DGEOGRAPHICLIB_DATA="${GEODATAPATH}" + ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + if use python; then + pushd "python" || die + distutils-r1_src_compile + popd || die + fi +} + +src_test() { + cmake_src_test + + if use python; then + pushd "python" || die + distutils-r1_src_test + popd || die + fi +} + +src_install() { + cmake_src_install + + # Remove python things added by the cmake_src_install function + rm -r "${ED}/usr/$(get_libdir)/python" || die + + # If using Python, we re-add these python files for each implementation + if use python; then + pushd "python" || die + distutils-r1_src_install + popd || die + fi + + # TODO: find out if java stuff need something + + # Installs to wrong doc dir for some reason + # Also happens with USE="-doc" + mv "${D}/usr/share/doc/${PN}" "${D}/usr/share/doc/${PF}" || die + + if use examples; then + dodoc -r examples + docompress -x "/usr/share/doc/${PF}/examples" + fi + + insinto "/usr/share/maxima/${MY_PN}" + doins -r maxima/. + + find "${D}" -name "*.la" -delete || die +} diff --git a/sci-geosciences/GeographicLib/Manifest b/sci-geosciences/GeographicLib/Manifest index 88cc463124ec..3a7419147b22 100644 --- a/sci-geosciences/GeographicLib/Manifest +++ b/sci-geosciences/GeographicLib/Manifest @@ -1,3 +1,3 @@ DIST GeographicLib-1.52.tar.gz 2432658 BLAKE2B 87328de1774ab9aec05355362c9a1760cf62864135b97a3e9cb1382b0ec9825b032f6c67a5e02b762c3009a3876a9cd995e3a49a3ad3c051dcd36446b55d0191 SHA512 98a4d33764db4a4755851a7db639fd9e055dcf4f1f949258e112fce2e198076b5896fcae2c1ea36b37fe1000d28eec326636a730e70f25bc19a1610423ba6859 -EBUILD GeographicLib-1.52-r1.ebuild 2126 BLAKE2B 8b95bacb2b4b886f5365f782f679a9b210820c26e65f3bade4b078a3156764c01d0762ade2b0a749945b96b6b9a7ffd2e7b58c320579926d21db957ccf43792d SHA512 443321e327ff1a0e1c7edc85029a8f11c3699157a8a37f94ca5924e4befe505fedd86607ee8511a2348180f050c419808fc1f16de9d68db38d56a5cfa3783eeb +EBUILD GeographicLib-1.52-r2.ebuild 2126 BLAKE2B a962077e12a67f3f83497866198841372246b4ef62ba39b29c1f4aa6aab3f5ff14839259097c3308d91c805f0cdc4a1cde4c734e822d6cd4c029d92cbdd4a7ab SHA512 99cc353765f58a84bd53b6df7ae276161f914894e6e1e6bd10b8f39ba38827f795915892448a4e967f2c561d4f24d684def88e6d60cec92332f5c6aeb5a1a0a2 MISC metadata.xml 875 BLAKE2B c383ecf94641b3ebdcb225b61eaec0077f83a03647306af59142fa633e8865ec46e809bd75410258dd9141cdca1141efd94f0a005ab273dfa2039811d419db24 SHA512 800b4153192b66e848a79a3e5ce915b21d61008d4b43e0f8c5da34142823af15367220589db1a04a8e3cddeb3ad0d300f002c2264e71408200595c67bcc7a625 -- cgit v1.2.3