diff options
author | Matt Turner <mattst88@gentoo.org> | 2024-09-24 20:58:13 -0400 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2024-10-01 17:02:08 -0400 |
commit | 3323b801872efdaa994d72135b5cf5a190b1d992 (patch) | |
tree | 228d9effa6c7efdc939e1f4ddc8af07038454004 /dev-libs/isl | |
parent | dev-libs/boehm-gc: Version bump to 8.2.8 (diff) | |
download | gentoo-3323b801872efdaa994d72135b5cf5a190b1d992.tar.gz gentoo-3323b801872efdaa994d72135b5cf5a190b1d992.tar.bz2 gentoo-3323b801872efdaa994d72135b5cf5a190b1d992.zip |
dev-libs/isl: Version bump to 0.27
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'dev-libs/isl')
-rw-r--r-- | dev-libs/isl/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/isl/isl-0.27.ebuild | 78 |
2 files changed, 79 insertions, 0 deletions
diff --git a/dev-libs/isl/Manifest b/dev-libs/isl/Manifest index 0d86e71006ab..0d5f552cf3ca 100644 --- a/dev-libs/isl/Manifest +++ b/dev-libs/isl/Manifest @@ -1 +1,2 @@ DIST isl-0.26.tar.xz 2035560 BLAKE2B 2cfe2e0774a991d2385e66f58490c5454382cabc82d74eb4bbe5a603293b7bdc34ca3b087f0884f9da319c447747edc76275ecaf2f171237939f9c7d3c52ced7 SHA512 9b5ec16d14e48f9ac9bf9cd379d3022959cfc617ade9e0d4caf2862299564fecba09d67dbdf1a4071f2f743a4fd0fabd0b0c3d15f5cddfe7226cdd5d6c2a0c66 +DIST isl-0.27.tar.xz 2056436 BLAKE2B 88a68de0b7952eb0038d10aa450b0ab25da4f4aa49fcdf70700ec4131d2686a2a2e9a64e5cb8ac0a53ef5d7cff034e60c449b201ba88a24001ad33f0dd17c732 SHA512 6d6f50c3f6f26e0d3f67586dee6427d87999c426c94069a6f3012ec3c9a41adeebd50f43b5d2705db6abc12e38eb01c19f55dba113c0799da5f667eef46b2be0 diff --git a/dev-libs/isl/isl-0.27.ebuild b/dev-libs/isl/isl-0.27.ebuild new file mode 100644 index 000000000000..c72e96eab647 --- /dev/null +++ b/dev-libs/isl/isl-0.27.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools multilib multilib-minimal preserve-libs toolchain-funcs + +DESCRIPTION="A library for manipulating integer points bounded by linear constraints" +HOMEPAGE="https://libisl.sourceforge.io/" +SRC_URI="https://libisl.sourceforge.io/${P}.tar.xz" + +LICENSE="LGPL-2.1" +SLOT="0/23" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="static-libs" + +RDEPEND=">=dev-libs/gmp-5.1.3-r1:=[${MULTILIB_USEDEP}]" +DEPEND="${RDEPEND}" +BDEPEND="app-arch/xz-utils + virtual/pkgconfig" + +DOCS=( ChangeLog AUTHORS doc/manual.pdf ) + +PATCHES=( + "${FILESDIR}"/${PN}-0.24-gdb-autoload-dir.patch + "${FILESDIR}"/${PN}-0.24-respect-flags.patch +) + +src_prepare() { + default + + eautoreconf +} + +multilib_src_configure() { + local econf_opts=( + $(use_enable static-libs static) + + # AX_PROG_CC_FOR_BUILD deficiency: + # https://wiki.gentoo.org/wiki/Project:Toolchain/use_native_symlinks + CC_FOR_BUILD="$(tc-getBUILD_CC)" + ) + + if ! tc-is-cross-compiler; then + # Incorrect CFLAGS handling as CFLAGS_FOR_BUILD + # even for native builds. As a result -O3 is being used + # regardless of user's CFLAGS. + econf_opts+=( + CFLAGS_FOR_BUILD="${CFLAGS}" + ) + fi + + ECONF_SOURCE="${S}" econf "${econf_opts[@]}" +} + +multilib_src_install_all() { + einstalldocs + + find "${ED}" -type f -name '*.la' -delete || die +} + +pkg_preinst() { + preserve_old_lib \ + /usr/$(get_libdir)/libisl$(get_libname 14) \ + /usr/$(get_libdir)/libisl$(get_libname 15) \ + /usr/$(get_libdir)/libisl$(get_libname 19) \ + /usr/$(get_libdir)/libisl$(get_libname 21) \ + /usr/$(get_libdir)/libisl$(get_libname 22) +} + +pkg_postinst() { + preserve_old_lib_notify \ + /usr/$(get_libdir)/libisl$(get_libname 14) \ + /usr/$(get_libdir)/libisl$(get_libname 15) \ + /usr/$(get_libdir)/libisl$(get_libname 19) \ + /usr/$(get_libdir)/libisl$(get_libname 21) \ + /usr/$(get_libdir)/libisl$(get_libname 22) +} |