From c6e62298405d39e635c0d8dd6e026c8cb667a478 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 12 Mar 2024 06:46:08 +0000 Subject: gentoo auto-resync : 12:03:2024 - 06:46:08 --- sci-mathematics/Manifest.gz | Bin 19319 -> 19316 bytes sci-mathematics/nauty/Manifest | 2 + .../nauty/files/nauty-2.8.8-autoconf-2.72.patch | 53 ++++++++++++++ sci-mathematics/nauty/nauty-2.8.8-r1.ebuild | 80 +++++++++++++++++++++ 4 files changed, 135 insertions(+) create mode 100644 sci-mathematics/nauty/files/nauty-2.8.8-autoconf-2.72.patch create mode 100644 sci-mathematics/nauty/nauty-2.8.8-r1.ebuild (limited to 'sci-mathematics') diff --git a/sci-mathematics/Manifest.gz b/sci-mathematics/Manifest.gz index c8e8f3e630c3..ae7714804dc5 100644 Binary files a/sci-mathematics/Manifest.gz and b/sci-mathematics/Manifest.gz differ diff --git a/sci-mathematics/nauty/Manifest b/sci-mathematics/nauty/Manifest index 8008e0bfe9dc..010d0cd72d61 100644 --- a/sci-mathematics/nauty/Manifest +++ b/sci-mathematics/nauty/Manifest @@ -1,5 +1,7 @@ +AUX nauty-2.8.8-autoconf-2.72.patch 1714 BLAKE2B 5ed587d4f8f5f30b1d07e318ffd8364ded515d2be3a34c641784d14b6ef5093b45ecacc9a6335b5b1884c6cde6d9b874d4b84fcca93920cd9099b1114991e029 SHA512 332abd0085352d9d25bcd2e5c0dbe3c7a06f6f1e10ecfeb3b310d6e0a29a7230989e7f86c1a2878332be9fafc52591b8ce6e19beccdab86db17d9d6a5a9a8082 DIST nauty-includes.patch 2530 BLAKE2B 8789bc2f65b89aa3bbf27e517f1c56340f9bde089ef54aa28757c66c3954b5c54e8a09b6989ad8d57098970240dd1838baa0003766fe10c7f6c32041abf461e3 SHA512 d11f530fecb86edc9e95f0b4d91240778047c0e84d6259c80490358baf0a3eeaa112acfe1fcdb594da6c6e17855f5e21cb75c88446b8d6d9e96402be0e5e6af2 DIST nauty2_8_8.tar.gz 2302360 BLAKE2B 4a37b345b239de11948d180f306e984dfec4aa26eb2720d0f0f09acd120a60b4f678375baa10d3f64f3e2f501c35cbfa58e10fc44252eb7b952a1592727a3b7f SHA512 c0495256b92b0742e7f0a3ad8b43f400e7b4bc4b58dff560e7d0a868f392b0462424566b8ebba5ec08499551eab091b6a8e2c0ddba4953ab7592906034812c18 DIST nauty_2.8.8+ds-1.debian.tar.xz 65176 BLAKE2B 3615819098169caf1648271c0725e146c87ab794776c02f5bd77b7092a2c1d9b93d663ef4a9cf027fda956d40f24bb99a909f89a4564b99429b67f781d39cfc2 SHA512 f81aa3c4a142c4efa5ce97c241f95cba9916d49f02c2b3dfbd76227f2db20ec5e2a3ebe371c5748681fc3492df9ff9bca2456d76e1c70e435aa5baf1522391d5 +EBUILD nauty-2.8.8-r1.ebuild 1996 BLAKE2B 6bb3ffca7159e075771ad6b7df4a41232559722a25795c18ee61ae16e9d2a8f0e736afa7f0e27982e4fbcac492c3e8750fade975874ab409a0516cf8d47cdbd7 SHA512 fc0609e09cb8d7c52f64e0e0decd2292f4ca02d0dd6e4f34c25878111e682a4e84876f81a0088f400eeafc0ca9b6fc1f96231c689cef3e80f31c3b192995a38b EBUILD nauty-2.8.8.ebuild 1955 BLAKE2B 44fdce9e00cc86fa9f2b31fbf3119ddcc29366dcd7d6e3c54b261dc185d780b3f3ca0d6ad8906e1bc260a385109b7738f990b413b9ef41513674dde6ecb1bf60 SHA512 f8c27dc70c207669eb8b9efb7caa38d7d7144e54e3fe192a8bc416469c2d904c4e22c81a808fb8400cacd1188f004467086c80b495a24e95486dbb64cd44711d MISC metadata.xml 554 BLAKE2B a6fbface4e867c9299680da9d2fefce4194771220489b4d9a81d295bbf1a8048fe1bf23e3c3225501a18b23af8a7daea3533f8a7c250afc7f9a4bbbf60fc8efd SHA512 c7b67c8516b9bad6cd9f60a54b3b3a4974a72e81071f53cd6562a5bea2e2b8ae990119e4391615dd3b2e30282bf70924c4f2f4b5ccd3dcf1cb7399e7de189387 diff --git a/sci-mathematics/nauty/files/nauty-2.8.8-autoconf-2.72.patch b/sci-mathematics/nauty/files/nauty-2.8.8-autoconf-2.72.patch new file mode 100644 index 000000000000..db8fa5e699c0 --- /dev/null +++ b/sci-mathematics/nauty/files/nauty-2.8.8-autoconf-2.72.patch @@ -0,0 +1,53 @@ +diff --git a/configure.ac b/configure.ac +index 5f28e30..69d42ff 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -186,9 +186,18 @@ dnl AC_PROG_CC + dnl CFLAGS=$user_cflags + MORECFLAGS="" + dnl we need AC_SYS_LARGEFILE and AC_FUNC_FSEEKO ++LARGEFILECFLAGS="" + AC_SYS_LARGEFILE +-AS_IF([test "x$ac_cv_sys_file_offset_bits" = xno],[ac_cv_sys_file_offset_bits=0]) +-AC_SUBST(ac_cv_sys_file_offset_bits) ++dnl AS_IF([test "x$ac_cv_sys_file_offset_bits" = xno],[ac_cv_sys_file_offset_bits=0]) ++dnl AC_SUBST(ac_cv_sys_file_offset_bits ++AS_CASE([$ac_cv_sys_largefile_opts], ++ ["none needed"], [], ++ ["support not detected"], [], ++ dnl otherwise it is a compiler flag ++ [LARGEFILECFLAGS="$ac_cv_sys_largefile_opts"] ++ ) ++MORECFLAGS="$LARGEFILECFLAGS" ++AC_SUBST(LARGEFILECFLAGS) + + dnl AS_IF([test "x$user_cflags" = x || test "x$user_cflags" = x-m32], + dnl [ +diff --git a/nauty-h.in b/nauty-h.in +index ae65bc9..51508d9 100644 +--- a/nauty-h.in ++++ b/nauty-h.in +@@ -60,13 +60,6 @@ it is necessary to check they are correct. + #define FLEX_ARRAY_OK @flex_array_ok@ + /* whether the compiler supports flexible array members in structures */ + +-#define _FILE_OFFSET_BITS @ac_cv_sys_file_offset_bits@ +-#if _FILE_OFFSET_BITS == 64 +-#define _LARGEFILE_SOURCE +-#else +-#undef _FILE_OFFSET_BITS +-#endif +- + /* Support of gcc extensions __builtin_clz, __builtin_clzl, __builtin_clzll */ + #ifndef HAVE_HWLZCNT + #define HAVE_HWLZCNT @have_hwlzcnt@ +diff --git a/nauty-pc.in b/nauty-pc.in +index cde86b3..c0bcef8 100644 +--- a/nauty-pc.in ++++ b/nauty-pc.in +@@ -9,4 +9,4 @@ Version: @PACKAGE_VERSION@ + URL: @PACKAGE_URL@ + Libs: -L${libdir} -l@PACKAGE@ + Libs.private: -lpthread +-Cflags: -I${includedir} ++Cflags: -I${includedir} @LARGEFILECFLAGS@ diff --git a/sci-mathematics/nauty/nauty-2.8.8-r1.ebuild b/sci-mathematics/nauty/nauty-2.8.8-r1.ebuild new file mode 100644 index 000000000000..af2ba2a10de8 --- /dev/null +++ b/sci-mathematics/nauty/nauty-2.8.8-r1.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +MY_PV=${PV//./_} +DEBIAN_PATCH_VERSION=1 + +DESCRIPTION="Computing automorphism groups of graphs and digraphs" +HOMEPAGE="https://pallini.di.uniroma1.it/" + +SRC_URI="https://pallini.di.uniroma1.it/${PN}${MY_PV}.tar.gz + mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}+ds-${DEBIAN_PATCH_VERSION}.debian.tar.xz + https://src.fedoraproject.org/rpms/nauty/raw/rawhide/f/nauty-includes.patch" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~riscv ~x86" +IUSE="cpu_flags_x86_popcnt examples" + +BDEPEND="sys-apps/help2man" +DEPEND="dev-libs/gmp:0 + sys-libs/zlib + sci-mathematics/cliquer" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN}${MY_PV}" + +DOCS=( schreier.txt formats.txt changes24-28.txt ) + +PATCHES=( + "${WORKDIR}/debian/patches/upstream-fix-gt_numorbits.patch" + "${WORKDIR}/debian/patches/upstream-zlib-dimacs2g.patch" + "${WORKDIR}/debian/patches/upstream-C2help2man.patch" + "${WORKDIR}/debian/patches/upstream-autotoolization.patch" + "${DISTDIR}/nauty-includes.patch" + "${WORKDIR}/debian/patches/unbundle-cliquer.patch" + "${WORKDIR}/debian/patches/format.patch" + "${WORKDIR}/debian/patches/uninitialized.patch" + "${WORKDIR}/debian/patches/fall-off.patch" + "${WORKDIR}/debian/patches/noreturn.patch" + "${FILESDIR}/${P}-autoconf-2.72.patch" +) + +src_prepare() { + default + rm makefile || die + + # The debian patch looks for , but the autotools-form of + # cliquer installs that header as . + sed -e 's~~~' -i nautycliquer.h || die + + eautoreconf +} + +src_configure() { + econf --disable-static \ + --enable-tls \ + --enable-generic \ + $(use_enable cpu_flags_x86_popcnt popcnt) +} + +src_test() { + # It arrives non-executable in v2.8.8. + chmod +x runalltests || die + default +} + +src_install() { + default + + if use examples; then + docinto examples + dodoc nautyex*.c + fi + + find "${ED}" -name '*.la' -delete || die +} -- cgit v1.2.3