commit: f6c30c6b1a4e87998b06af4264c5742db2961b27 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sat Mar 15 06:25:40 2025 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sat Mar 15 07:44:51 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6c30c6b
sci-libs/cfitsio: Bump to 4.6.0 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> sci-libs/cfitsio/Manifest | 1 + sci-libs/cfitsio/cfitsio-4.6.0.ebuild | 75 +++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) diff --git a/sci-libs/cfitsio/Manifest b/sci-libs/cfitsio/Manifest index 9e0e49d52ba2..c80e49a44d5d 100644 --- a/sci-libs/cfitsio/Manifest +++ b/sci-libs/cfitsio/Manifest @@ -1 +1,2 @@ DIST cfitsio-4.5.0.tar.gz 4648097 BLAKE2B 5e0e09a3e6f43ce00bb5e5dd90e88c1aa2a873b407f3156147b064904ab341da219e69dc2a763e6b02eea0392a78e0ce74c15f921054bf72cac9b6e425765f99 SHA512 03746bf49cfcd97991be54f3e4dd51fb45c7b3a75f581dc6ab9ee5726a342dc11b651667807fd67e5318576d9b15e3580dd62ceab02fd684feff7ee6bb2edc7c +DIST cfitsio-4.6.0.tar.gz 4645987 BLAKE2B 7e83edff7f143a622e65f6d24e088aa6c5fbbd1b978c75cb0761bdbefeaeccc6b257abd9a586f8b140eb7a7b2a26e5d568a6f4cacc450a792aea8a3337286e2e SHA512 1d224401ceeaee5e879b81eca7eb200b47104f93ea33ccf83fb7b068753a72ad36658c371470b77860036fb5b731dedecd5b5df0c3745f0ef7cc3809eb84aea3 diff --git a/sci-libs/cfitsio/cfitsio-4.6.0.ebuild b/sci-libs/cfitsio/cfitsio-4.6.0.ebuild new file mode 100644 index 000000000000..e3005fc78611 --- /dev/null +++ b/sci-libs/cfitsio/cfitsio-4.6.0.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2025 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 ~loong ~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 + + # I hate CMake + sed -i -e 's:lib/:${CMAKE_INSTALL_LIBDIR}/:' \ + -e 's:lib$:${CMAKE_INSTALL_LIBDIR}:' CMakeLists.txt || die + + # Avoid internal cfortran + rm cfortran.h || die +} + +multilib_src_configure() { + local libdir=$(get_libdir) + local mycmakeargs=( + # used for .pc file + # note that we need to set them, as otherwise .pc file will mess up + # compiler command-line + -DLIB_DESTINATION="${EPREFIX}/usr/$(get_libdir)" + -DINCLUDE_INSTALL_DIR="${EPREFIX}/usr/include" + + -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} +}