summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-12-01 14:42:53 +0100
committerMichał Górny <mgorny@gentoo.org>2024-12-01 14:56:12 +0100
commit76fa5c7df7c52e4c246424a675e7879a4b5c9cf6 (patch)
tree98cfb179e552c6cb420d9285fd8fd59c5a587a0b /sci-libs
parentdev-tex/sketch: build w/ -std=gnu17 (diff)
downloadgentoo-76fa5c7df7c52e4c246424a675e7879a4b5c9cf6.tar.gz
gentoo-76fa5c7df7c52e4c246424a675e7879a4b5c9cf6.tar.bz2
gentoo-76fa5c7df7c52e4c246424a675e7879a4b5c9cf6.zip
sci-libs/cfitsio: Bump to 4.5.0
Closes: https://bugs.gentoo.org/945499 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/cfitsio/Manifest1
-rw-r--r--sci-libs/cfitsio/cfitsio-4.5.0.ebuild71
2 files changed, 72 insertions, 0 deletions
diff --git a/sci-libs/cfitsio/Manifest b/sci-libs/cfitsio/Manifest
index e8ce87e899aa..e1d3aefbf235 100644
--- a/sci-libs/cfitsio/Manifest
+++ b/sci-libs/cfitsio/Manifest
@@ -1 +1,2 @@
DIST cfitsio-4.4.1.tar.gz 4308170 BLAKE2B 237a2f899b39a01ed73e3e41b420874c7654faf1f93e3c3b3454d2001a472f64b1c44fa2c88598ea21e3a8d60a1dcb76aa3001fee1e4443f91bcd565ce605a4f SHA512 a49e4e09a2e5f6e0ae823a68f02b3f6285cf3e0af66c9a1f8dadcd2867fa83c17fd27e446e8e5af9374ff2dc7b7a18334663ce977a1691c4ed4ced14d33232b7
+DIST cfitsio-4.5.0.tar.gz 4648097 BLAKE2B 5e0e09a3e6f43ce00bb5e5dd90e88c1aa2a873b407f3156147b064904ab341da219e69dc2a763e6b02eea0392a78e0ce74c15f921054bf72cac9b6e425765f99 SHA512 03746bf49cfcd97991be54f3e4dd51fb45c7b3a75f581dc6ab9ee5726a342dc11b651667807fd67e5318576d9b15e3580dd62ceab02fd684feff7ee6bb2edc7c
diff --git a/sci-libs/cfitsio/cfitsio-4.5.0.ebuild b/sci-libs/cfitsio/cfitsio-4.5.0.ebuild
new file mode 100644
index 000000000000..ef31390aa516
--- /dev/null
+++ b/sci-libs/cfitsio/cfitsio-4.5.0.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib fortran-2
+
+DESCRIPTION="C and Fortran library for manipulating FITS files"
+HOMEPAGE="https://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html"
+SRC_URI="https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0/10-r1"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+IUSE="bzip2 curl test tools"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+ app-alternatives/yacc
+ app-alternatives/lex
+"
+RDEPEND="
+ sys-libs/zlib[${MULTILIB_USEDEP}]
+ bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )
+ curl? ( net-misc/curl[${MULTILIB_USEDEP}] )
+"
+# Bug #803350
+DEPEND="
+ ${RDEPEND}
+ <dev-lang/cfortran-20110621
+"
+
+pkg_setup() {
+ fortran-2_pkg_setup
+}
+
+src_prepare() {
+ cmake_src_prepare
+
+ # fix libdir
+ sed -e 's:lib/::' -i CMakeLists.txt || die
+
+ # Avoid internal cfortran
+ rm cfortran.h || die
+}
+
+multilib_src_configure() {
+ local libdir=$(get_libdir)
+ local mycmakeargs=(
+ # used for .pc file
+ -DLIB_SUFFIX=${libdir#lib}
+
+ -DUSE_BZIP2=$(usex bzip2)
+ -DUSE_CURL=$(usex curl)
+ -DUSE_PTHREADS=ON
+ # just appending CFLAGS
+ -DUSE_SSE2=OFF
+ -DUSE_SSSE3=OFF
+
+ -DTESTS=$(usex test)
+ -DUTILS=$(multilib_native_usex tools)
+ )
+ cmake_src_configure
+}
+
+multilib_src_install_all() {
+ dodoc README.md docs/*.pdf
+
+ docinto examples
+ dodoc utilities/{cookbook.{c,f},testprog.c,testf77.f,speed.c,smem.c}
+}