diff options
Diffstat (limited to 'sci-astronomy/wcslib')
-rw-r--r-- | sci-astronomy/wcslib/Manifest | 7 | ||||
-rw-r--r-- | sci-astronomy/wcslib/metadata.xml | 26 | ||||
-rw-r--r-- | sci-astronomy/wcslib/wcslib-5.15.ebuild | 71 | ||||
-rw-r--r-- | sci-astronomy/wcslib/wcslib-5.16.ebuild | 71 |
4 files changed, 175 insertions, 0 deletions
diff --git a/sci-astronomy/wcslib/Manifest b/sci-astronomy/wcslib/Manifest new file mode 100644 index 000000000000..4c00c52a6f10 --- /dev/null +++ b/sci-astronomy/wcslib/Manifest @@ -0,0 +1,7 @@ +DIST wcslib-5.15.tar.bz2 2222193 SHA256 8bbe40a7b055578d1a6b77e92a733d2a01ce439814ea9e5a8d8bbc23c68b56e8 SHA512 b98111d7ca4b14dd479b56a368fd89a4d6f5d3741a61edeecc4a738def35bf448b68daf6a553fe88d4c84f91f5fcab3bc8d3ead1dccbd4e7c4190f31de2242ef WHIRLPOOL ea91609f0e0493e6df9d7eccd3391168ee4c5fdaa1153a62b574e8fd39fec4980ba141aa223b9d900af26df1042a0b11a0da47c7a95c9803bc841b7161015094 +DIST wcslib-5.16.tar.bz2 2222111 SHA256 ed031e0cf1cec0e9cabfc650423efa526fec341441865001c1e2c56bfffc99ef SHA512 bf7ab586995bdade8b96c77dee891c7d7ab6de82a7e2f94a09d89643e93658063f832efdb66e0bba11ad114b6e0ca555cba9308a84f0f22fb833e3a6303cefe6 WHIRLPOOL 6a8224360cf314863e0252aa96256f159a5ca7eff8d4ef9509085185dd3bb5c94ec4351f0272d0431f69bc4769494b496aa507d0c34ad308c1adae579fd6fce4 +EBUILD wcslib-5.15.ebuild 1675 SHA256 03de3e7cc1041672c667c3f576ef71a4c704b674ac1887fd1c739533ddf6664e SHA512 d2648e929258ceaa92d9651c456b8f71493143035a8950d21189cadf31921d2a92d7d1fd7cde7a07d8fdf7a105b3097da8a57eaf9f1484b08ae69e050f532f42 WHIRLPOOL 272b2abcb227c60402a50df7d9d210272cf9a7dd14fa7943d40df06ea21408986271f21f2a3700ad95620b3c4226739438e471a9054f64e33ca6fb1ff7f24aa2 +EBUILD wcslib-5.16.ebuild 1677 SHA256 cd0398030710a32dbdb3a0b9a4b843497c62dd58147129067c32dd187e2b9211 SHA512 5c9a572e8cf41b650da3a7f98cc8abe331386c896193366b7ed6d73052208c5ab89ce8b68434268f2420da8a770a2368c2e5f90fb3c43d4c7257cbdcd0dea244 WHIRLPOOL 686450b9f33f141a5943944de63de1585ad62e3c2c95438d8a71983be9efae255e0af27e89e6ed8e9acf182def8484acab08460005587ab9dd0d679c6772ba5e +MISC ChangeLog 3639 SHA256 9f190a32735bbc2e3121d06a19ee3c041e22f4d78024d3668249ea967e07d9cf SHA512 31808cc37112a0fbdfb6b3636134f2cf5d72eaef7ff7411286a5c76b4f969882d14514879716478dca29a590c27c99191047a469d8414c23b44f0abed41f97f4 WHIRLPOOL 504c6bb0c81feaaabdc69a5f95e6639bc8164d062d2c5a634467c16eb4e6934d44ad0de6ddd7a9f60e58632e1239a48e8e694f8b53824bde11a2cc0ad7cc2e5a +MISC ChangeLog-2015 7248 SHA256 eaf8c8b07a1fdbc22992e175ae52f7de3e552e13b0cb8ce68b5a50d6befafb45 SHA512 63f7294fc2e50000fd6eabf560ce3d4516b8cbf4d8cbddddc3c65a5329b1823c424a7c8977c0eddd63f434e5efc256e313bbc03e7e71ef0ff22322543d1fe1c5 WHIRLPOOL f986a9289a47896b9dbd670a1de79aa2d2394d5cf61f7aa2fc72fe3ebda6a63da1b3cb8169f40c43da7a2ef83f49167f554fbe3ad96a6f458f62acc5a910a946 +MISC metadata.xml 976 SHA256 f040ad8248dc33be5fd52f95a974de1a777b665b147a2948cbb59305f466d5c1 SHA512 cd4bc1614ea120e04ced965a92fdd343db9e4d1a6046b57efd503674547cfa45ce6a03bb3a2d34a472dccd885d598cbf3cd3d9d9fe182a2fc067a801e8eb9577 WHIRLPOOL 1b8f512c4da0b4163a51158e6b2aa2923d5f9f774f6dd6c348190898a85078e142afe5d7efd1f8a5c8e2ae73f06b52a03e39542d1b15594d96a98ef79f23c8c6 diff --git a/sci-astronomy/wcslib/metadata.xml b/sci-astronomy/wcslib/metadata.xml new file mode 100644 index 000000000000..f74e78465e2d --- /dev/null +++ b/sci-astronomy/wcslib/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/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> +</pkgmetadata> diff --git a/sci-astronomy/wcslib/wcslib-5.15.ebuild b/sci-astronomy/wcslib/wcslib-5.15.ebuild new file mode 100644 index 000000000000..035f15d89123 --- /dev/null +++ b/sci-astronomy/wcslib/wcslib-5.15.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +FORTRAN_NEEDED=fortran + +inherit fortran-2 + +DESCRIPTION="Astronomical World Coordinate System transformations library" +HOMEPAGE="http://www.atnf.csiro.au/people/mcalabre/WCS/" +SRC_URI="ftp://ftp.atnf.csiro.au/pub/software/${PN}/${P}.tar.bz2" + +SLOT="0/5" +LICENSE="LGPL-3" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" +IUSE="doc fortran fits pgplot static-libs +tools" + +RDEPEND=" + fits? ( sci-libs/cfitsio:0= ) + pgplot? ( sci-libs/pgplot:0= )" +DEPEND="${RDEPEND} + sys-devel/flex + virtual/pkgconfig" + +src_configure() { + local myconf=( + --docdir="${EPREFIX}"/usr/share/doc/${PF} + --htmldir="${EPREFIX}"/usr/share/doc/${PF} + $(use_enable fortran) + $(use_enable tools utils) + ) + # 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_compile() { + # nasty makefile, debugging means probably full rewrite + emake -j1 +} + +src_test() { + emake -j1 check +} + +src_install () { + default + # static libs share the same symbols as shared (i.e. compiled with PIC) + # so they are not compiled twice + use static-libs || rm "${ED}"/usr/$(get_libdir)/lib*.a + use doc || rm -r \ + "${ED}"/usr/share/doc/${PF}/html \ + "${ED}"/usr/share/doc/${PF}/*.pdf +} diff --git a/sci-astronomy/wcslib/wcslib-5.16.ebuild b/sci-astronomy/wcslib/wcslib-5.16.ebuild new file mode 100644 index 000000000000..7b3cdbfbdf79 --- /dev/null +++ b/sci-astronomy/wcslib/wcslib-5.16.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +FORTRAN_NEEDED=fortran + +inherit fortran-2 + +DESCRIPTION="Astronomical World Coordinate System transformations library" +HOMEPAGE="http://www.atnf.csiro.au/people/mcalabre/WCS/" +SRC_URI="ftp://ftp.atnf.csiro.au/pub/software/${PN}/${P}.tar.bz2" + +SLOT="0/5" +LICENSE="LGPL-3" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc fortran fits pgplot static-libs +tools" + +RDEPEND=" + fits? ( sci-libs/cfitsio:0= ) + pgplot? ( sci-libs/pgplot:0= )" +DEPEND="${RDEPEND} + sys-devel/flex + virtual/pkgconfig" + +src_configure() { + local myconf=( + --docdir="${EPREFIX}"/usr/share/doc/${PF} + --htmldir="${EPREFIX}"/usr/share/doc/${PF} + $(use_enable fortran) + $(use_enable tools utils) + ) + # 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_compile() { + # nasty makefile, debugging means probably full rewrite + emake -j1 +} + +src_test() { + emake -j1 check +} + +src_install () { + default + # static libs share the same symbols as shared (i.e. compiled with PIC) + # so they are not compiled twice + use static-libs || rm "${ED}"/usr/$(get_libdir)/lib*.a + use doc || rm -r \ + "${ED}"/usr/share/doc/${PF}/html \ + "${ED}"/usr/share/doc/${PF}/*.pdf +} |