diff options
author | Sam James <sam@gentoo.org> | 2020-07-19 20:05:50 +0000 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2021-01-02 21:30:54 +0100 |
commit | a901fb5b9a1e317224a8126783bea78045554eaf (patch) | |
tree | 0760da748de63b84eabfbb5376e1b04390bb7b4b /sci-libs/cfitsio | |
parent | sci-astronomy/kstars: 3.5.0 version bump (diff) | |
download | gentoo-a901fb5b9a1e317224a8126783bea78045554eaf.tar.gz gentoo-a901fb5b9a1e317224a8126783bea78045554eaf.tar.bz2 gentoo-a901fb5b9a1e317224a8126783bea78045554eaf.zip |
sci-libs/cfitsio: security bump to 3.480
Changes:
* Update licence to ISC
* EAPI 7 bump
* Drop doc, examples USE flags
* Remove other now non-existent options upstream
Bug: https://bugs.gentoo.org/673944
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Sam James <sam@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/16749
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'sci-libs/cfitsio')
-rw-r--r-- | sci-libs/cfitsio/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/cfitsio/cfitsio-3.480.ebuild | 71 |
2 files changed, 72 insertions, 0 deletions
diff --git a/sci-libs/cfitsio/Manifest b/sci-libs/cfitsio/Manifest index 14225a2fe012..d9d1cb2960af 100644 --- a/sci-libs/cfitsio/Manifest +++ b/sci-libs/cfitsio/Manifest @@ -1,2 +1,3 @@ DIST cfitsio-3.360.tar.gz 4104894 BLAKE2B 7a84177c28679db5c27d0586cb6959a0663918a84d46ced9aea6ef7e6bdd32955946807efd4cd852e55128dbc887c4a2135b2eba26847b265011bfd6df049335 SHA512 158819b4a3a29c29a5f017283e2b20067420994e881d202dbf3ba199c9e564dc1e74f8be5ce84f78107126d2a8688cc55cc7ed284540ca647e44cdc3b0b02072 DIST cfitsio-3.410.tar.gz 4194529 BLAKE2B 31250b9add5b6a85c919c33251d127117ceab81c2243e0b9f8bbe2ef0fd09c85a938b7525338bc718a9b3035efa3660ecffa17ec79e3e278c8014e727f23473b SHA512 cc1de2a4314e7c82bdd6855e11dea4e18dc4e7bcb27b0d15b884cbaeb4acd3b1e12dadd17ab83c7917570934913f89337035470ee4921e7b62409a81052d70cd +DIST cfitsio-3.48.tar.gz 4928169 BLAKE2B 86e2af3f767c9572c07d1b81138973f81f0ad62a862fb2e457de363a552c17990aacd4f931f233f2cdbbe41c10dac3aa1bfb46220b34fc4407fea4ac01a46132 SHA512 08a13931726b0ee15bd4e2ad6dd4debb8268f3b0bc33adadec5c6a29295dd536bcccb3cc949721c6cebac6f43b6118e5e38332ac0ba8a07a43553416d8debae5 diff --git a/sci-libs/cfitsio/cfitsio-3.480.ebuild b/sci-libs/cfitsio/cfitsio-3.480.ebuild new file mode 100644 index 000000000000..53eb483eab33 --- /dev/null +++ b/sci-libs/cfitsio/cfitsio-3.480.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit fortran-2 multilib-minimal + +# Upstream call this release 3.480, but drop the 0 in the tarball filename +MY_PV="3.48" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="C and Fortran library for manipulating FITS files" +HOMEPAGE="https://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html" +SRC_URI="http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/${MY_P}.tar.gz" + +LICENSE="ISC" +SLOT="0/8" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris" +IUSE="bzip2 cpu_flags_x86_sse2 cpu_flags_x86_ssse3 curl" + +BDEPEND=" + sys-devel/bison + sys-devel/flex +" +RDEPEND=" + net-misc/curl[${MULTILIB_USEDEP}] + sys-libs/zlib[${MULTILIB_USEDEP}] + bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] ) +" +DEPEND=" + ${RDEPEND} + dev-lang/cfortran +" + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + fortran-2_pkg_setup +} + +src_prepare() { + default + + # Avoid internal cfortran + mv cfortran.h cfortran.h.disabled + ln -s "${EPREFIX}"/usr/include/cfortran.h . || die + + multilib_copy_sources +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf \ + $(use_with bzip2) \ + $(use_enable curl) \ + $(use_enable cpu_flags_x86_sse2 sse2) \ + $(use_enable cpu_flags_x86_ssse3 ssse3) +} + +multilib_src_install_all() { + dodoc README docs/changes.txt + + dodoc docs/{quick,cfitsio,fpackguide}.pdf + dodoc docs/fitsio.pdf + + insinto /usr/share/doc/${PF}/examples + doins cookbook.c testprog.c speed.c smem.c + doins cookbook.f testf77.f + + # Remove static libs + find "${ED}" -name '*.a' -delete || die +} |