sci-geosciences/GeographicLib: new package, add 1.52-r2
Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
parent
7bf28bc95c
commit
dabb7aae59
@ -617,12 +617,12 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
|
||||
|
||||
## Licenses
|
||||
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
|
||||
There are 1829 Ebuilds in total, 1818 of them have in total 1837 (42 different) licenses assigned.
|
||||
There are 1831 Ebuilds in total, 1820 of them have in total 1839 (42 different) licenses assigned.
|
||||
|
||||
|License| Ebuilds using it|
|
||||
|-------|-----|
|
||||
|MIT|1038|
|
||||
|Apache-2.0|412|
|
||||
|MIT|1039|
|
||||
|Apache-2.0|413|
|
||||
|GPL-3|120|
|
||||
|BSD|103|
|
||||
|LGPL-3|24|
|
||||
|
106
sci-geosciences/GeographicLib/GeographicLib-1.52-r2.ebuild
Normal file
106
sci-geosciences/GeographicLib/GeographicLib-1.52-r2.ebuild
Normal file
@ -0,0 +1,106 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..12} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
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 -> ${P}.gh.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/19"
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
||||
IUSE="doc examples python"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
RDEPEND="python? ( ${PYTHON_DEPS} )"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
doc? (
|
||||
>=app-text/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
|
||||
}
|
3
sci-geosciences/GeographicLib/Manifest
Normal file
3
sci-geosciences/GeographicLib/Manifest
Normal file
@ -0,0 +1,3 @@
|
||||
DIST GeographicLib-1.52.gh.tar.gz 2432658 BLAKE2B 87328de1774ab9aec05355362c9a1760cf62864135b97a3e9cb1382b0ec9825b032f6c67a5e02b762c3009a3876a9cd995e3a49a3ad3c051dcd36446b55d0191 SHA512 98a4d33764db4a4755851a7db639fd9e055dcf4f1f949258e112fce2e198076b5896fcae2c1ea36b37fe1000d28eec326636a730e70f25bc19a1610423ba6859
|
||||
EBUILD GeographicLib-1.52-r2.ebuild 2185 BLAKE2B 809c71a392895726a05781b78564ad81d3220ae97e321c1fc35025f2b154f1a6db2b71940336a856c43d6d95e6b9107d84dd24b3147f58f3eacadddc14c914ea SHA512 98a66f99388af31857ab0bb85a2c695c9f833a719fbda5ae70b7b576ff72c30289c22a5d5037c5f85cd784ae0aff32149d4d060ea3becefa2d19019493d398c7
|
||||
MISC metadata.xml 518 BLAKE2B 404f7ddd4dbb5fdb25b715ab90b125d052e9d553d6f5cffda9abf6aff80860205d7bc752a0ba4215122f209193c7f412f7c731744dc018312b37811864de0168 SHA512 d742bd7a6545b46973fc7c5040745a5a83fe974967e640a9d3463252afc8f44c9f7eafaff6e1307329cd5edd4a91c119fd2e32e4aa9d3c142fefd1132482f2dc
|
16
sci-geosciences/GeographicLib/metadata.xml
Normal file
16
sci-geosciences/GeographicLib/metadata.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>b@edevau.net</email>
|
||||
<name>Andreas Billmeier</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">geographiclib</remote-id>
|
||||
<remote-id type="sourceforge">geographiclib</remote-id>
|
||||
<maintainer status="unknown">
|
||||
<email>charles@karney.com</email>
|
||||
<name>Charles Karney</name>
|
||||
</maintainer>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
x
Reference in New Issue
Block a user