diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /sci-astronomy/wcslib | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'sci-astronomy/wcslib')
| -rw-r--r-- | sci-astronomy/wcslib/Manifest | 1 | ||||
| -rw-r--r-- | sci-astronomy/wcslib/metadata.xml | 27 | ||||
| -rw-r--r-- | sci-astronomy/wcslib/wcslib-8.3-r1.ebuild | 79 |
3 files changed, 107 insertions, 0 deletions
diff --git a/sci-astronomy/wcslib/Manifest b/sci-astronomy/wcslib/Manifest new file mode 100644 index 000000000000..0d262df65da7 --- /dev/null +++ b/sci-astronomy/wcslib/Manifest @@ -0,0 +1 @@ +DIST wcslib-8.3.tar.bz2 3245293 BLAKE2B 0f420d1c6e3b4a7e97b3227971f745d70f5c51e907f0315b7f57e79a34ef32446bbd7fa29ffd25c800e888b8aab6227b774375ed8d89d21f7315916fdd06d788 SHA512 248518489431cbcba7a5df9e34a747e2a007128639d8ab655ceee35250e609d952fe466b67cdca5defe16d3e926730d00bfc5c362c369f74851cd88973b506ba diff --git a/sci-astronomy/wcslib/metadata.xml b/sci-astronomy/wcslib/metadata.xml new file mode 100644 index 000000000000..1d07913bc157 --- /dev/null +++ b/sci-astronomy/wcslib/metadata.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci-astronomy@gentoo.org</email> + <name>Gentoo Astronomy Project</name> + </maintainer> + <longdescription lang="en"> + WCSLIB is a C library, supplied with a full set of Fortran wrappers, + that implements the "World Coordinate System" (WCS) convention in FITS + (Flexible Image Transport System). It also includes a PGPLOT-based routine, + PGSBOX, for drawing general curvilinear coordinate graticules and a number of + utility programs. + </longdescription> + <use> + <flag name="fits"> + Enable support for the FITS format through <pkg>sci-libs/cfitsio</pkg> + </flag> + <flag name="pgplot"> + Builds PGBSOX routines, needs <pkg>sci-libs/pgplot</pkg> library + </flag> + <flag name="tools"> + Builds and installs extra command line utilities for WCS checking + </flag> + </use> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/sci-astronomy/wcslib/wcslib-8.3-r1.ebuild b/sci-astronomy/wcslib/wcslib-8.3-r1.ebuild new file mode 100644 index 000000000000..89f26dce9678 --- /dev/null +++ b/sci-astronomy/wcslib/wcslib-8.3-r1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FORTRAN_NEEDED=fortran + +inherit flag-o-matic fortran-2 + +DESCRIPTION="Astronomical World Coordinate System transformations library" +HOMEPAGE="https://www.atnf.csiro.au/people/mcalabre/WCS/" +SRC_URI="ftp://ftp.atnf.csiro.au/pub/software/${PN}/${P}.tar.bz2" + +SLOT="0/$(ver_cut 1)" +LICENSE="LGPL-3" +KEYWORDS="amd64 ~x86" +IUSE="doc fortran fits pgplot static-libs +tools" + +RDEPEND=" + fits? ( + !sci-astronomy/montage + sci-libs/cfitsio:0= + ) + pgplot? ( sci-libs/pgplot:0= ) +" + +DEPEND="${RDEPEND}" +BDEPEND=" + app-alternatives/lex + virtual/pkgconfig" + +src_configure() { + # workaround until upstream fix it properly + append-fflags $(test-flags-FC -fallow-argument-mismatch) + + local myconf=( + --docdir="${EPREFIX}"/usr/share/doc/${PF} + --htmldir="${EPREFIX}"/usr/share/doc/${PF} + $(use_enable fortran) + $(use_enable tools utils) + --with-bindc + ) + # hacks because cfitsio and pgplot directories are hard-coded + if use fits; then + myconf+=( + --with-cfitsioinc="${EPREFIX}/usr/include" + --with-cfitsiolib="${EPREFIX}/usr/$(get_libdir)" + ) + else + myconf+=( --without-cfitsio ) + fi + if use pgplot; then + myconf+=( + --with-pgplotinc="${EPREFIX}/usr/include" + --with-pgplotlib="${EPREFIX}/usr/$(get_libdir)" + ) + else + myconf+=( --without-pgplot ) + fi + econf "${myconf[@]}" + sed -i -e 's/COPYING\*//' GNUmakefile || die +} + +src_install () { + default + # static libs share the same symbols as shared (i.e. compiled with PIC) + # so they are not compiled twice + if ! use static-libs; then + rm "${ED}"/usr/$(get_libdir)/lib*.a || die + fi + + if ! use doc; then + rm -r \ + "${ED}"/usr/share/doc/${PF}/html \ + "${ED}"/usr/share/doc/${PF}/*.pdf || die + fi + # always creates this symlink + rm "${ED}"/usr/share/doc/${PN} || die +} |
