diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2023-09-15 14:11:11 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-09-17 17:51:16 +0300 |
commit | dfb8fc1ab575e04ca6d8f6e8b4a11e4e1a4b4364 (patch) | |
tree | 02a35aa72a3ddb8fdff42ec1de5519426533f1dc /sci-astronomy/cpl/cpl-7.3.2.ebuild | |
parent | dev-util/shtool: EAPI8 bump, fixes #880289, #724276 (diff) | |
download | gentoo-dfb8fc1ab575e04ca6d8f6e8b4a11e4e1a4b4364.tar.gz gentoo-dfb8fc1ab575e04ca6d8f6e8b4a11e4e1a4b4364.tar.bz2 gentoo-dfb8fc1ab575e04ca6d8f6e8b4a11e4e1a4b4364.zip |
sci-astronomy/cpl: add 7.3.2, update EAPI 6 -> 8
Bug: https://bugs.gentoo.org/834577
Bug: https://bugs.gentoo.org/905683
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'sci-astronomy/cpl/cpl-7.3.2.ebuild')
-rw-r--r-- | sci-astronomy/cpl/cpl-7.3.2.ebuild | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/sci-astronomy/cpl/cpl-7.3.2.ebuild b/sci-astronomy/cpl/cpl-7.3.2.ebuild new file mode 100644 index 000000000000..14ed1365f279 --- /dev/null +++ b/sci-astronomy/cpl/cpl-7.3.2.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_OPT_USE=gasgano + +inherit autotools java-pkg-opt-2 + +DESCRIPTION="ESO common pipeline library for astronomical data reduction" +HOMEPAGE="https://www.eso.org/sci/software/cpl/" +SRC_URI="https://ftp.eso.org/pub/dfs/pipelines/libraries/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0/26" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + +IUSE="doc gasgano static-libs threads" + +RDEPEND=" + dev-libs/libltdl + sci-astronomy/wcslib:0= + sci-libs/cfitsio:0= + sci-libs/fftw:3.0= + gasgano? ( sci-astronomy/gasgano )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen )" + +src_prepare() { + default + # remove cpu chcking + sed -e '/CPL_CHECK_CPU/d' \ + -i configure.ac libcext/configure.ac || die + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-ltdl-install + --without-included-ltdl + --with-cfitsio="${EPREFIX}/usr" + --with-wcs="${EPREFIX}/usr" + --with-fftw="${EPREFIX}/usr" + $(use_enable doc maintainer-mode) + $(use_enable static-libs static) + $(use_enable threads) + ) + if use gasgano; then + myeconfargs+=( + --enable-gasgano + --with-gasgano="${EPREFIX}/usr" + --with-gasgano-classpath="${EPREFIX}/usr/share/gasgano/lib" + --with-java="$(java-config -O)" + ) + else + myeconfargs+=( --disable-gasgano ) + fi + econf ${myeconfargs[@]} +} + +src_compile() { + default + use doc && emake html +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die + use doc && emake install-html +} |