Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/nauty/
Date: Thu, 11 Aug 2022 11:50:41
Message-Id: 1660218591.95f19838fef64c346e780e46937f0ae0eed5a6a2.mjo@gentoo
1 commit: 95f19838fef64c346e780e46937f0ae0eed5a6a2
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 11 11:30:32 2022 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 11 11:49:51 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95f19838
7
8 sci-mathematics/nauty: add 2.7.4
9
10 This version also modifies the nauty.pc file to report the same version
11 information that the ebuild contains. This is one of a few bad choices
12 we're bequeathed from the crazy upstream versioning scheme; it probably
13 does no harm and makes the QA warning go away.
14
15 Closes: https://bugs.gentoo.org/863053
16 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
17
18 sci-mathematics/nauty/Manifest | 2 +
19 sci-mathematics/nauty/nauty-2.7.4.ebuild | 83 ++++++++++++++++++++++++++++++++
20 2 files changed, 85 insertions(+)
21
22 diff --git a/sci-mathematics/nauty/Manifest b/sci-mathematics/nauty/Manifest
23 index be853df66729..67e1508661cb 100644
24 --- a/sci-mathematics/nauty/Manifest
25 +++ b/sci-mathematics/nauty/Manifest
26 @@ -1,3 +1,5 @@
27 DIST nauty-includes.patch 2530 BLAKE2B 8789bc2f65b89aa3bbf27e517f1c56340f9bde089ef54aa28757c66c3954b5c54e8a09b6989ad8d57098970240dd1838baa0003766fe10c7f6c32041abf461e3 SHA512 d11f530fecb86edc9e95f0b4d91240778047c0e84d6259c80490358baf0a3eeaa112acfe1fcdb594da6c6e17855f5e21cb75c88446b8d6d9e96402be0e5e6af2
28 DIST nauty27r3.tar.gz 1721200 BLAKE2B 2071f241dc531a056c678be0ec40497421440f2d5f1796ba20c1257feff426a452df592912faadca08010b29afbbc8cc0552c0517c168af3de9f3334b60d7f18 SHA512 8d6d92de8d348d3874677a55773088f4ff5b9a45fd9ed3802c9b1590072f5861946ac1d21892f4b383a9e36f6c9ac08270d021429cf36da3e5038e6a38d9fb6c
29 +DIST nauty27r4.tar.gz 1731562 BLAKE2B 104481e5af3333b60574a7185848832ad08b0cfeb8378e3c89ddd3f2cc87023cd701889356fa196b529ddbf19232a733fe3e694d9573adef04c2ad86baaf38e5 SHA512 2ed691bf0a6806f77cccbd95ee7687a66b6e6342493a0d65636166727cf4ea8cd887187d88a3154d911f665deb8d6f5bbaba33c8a1b740a564a1fc52bf4b4520
30 DIST nauty_2.7r3+ds-1.debian.tar.xz 45520 BLAKE2B 5078ab84d1fcdbddc0f7442ebed57fb63551701295615b99f2833c300168dd7f71205fa3cc2e9ea977f52e389b67883b68e7d5d39e1698c6040913e4571fa4f9 SHA512 8618c78a7c6f1d579cb20048fcf55fb45b69d8d1cebd7f2c9aee664768ab78f0ab1930863c8475a153c9ac9f4692cf6e43f96d01c4a219eae1f23bb61cb50407
31 +DIST nauty_2.7r4+ds-1.debian.tar.xz 45712 BLAKE2B e4a7a1d2b70b5fa969f708bbd56b47aaf422c268be23ffa7ceb3f9cc21ff8d27270556adadd43fe60309e7840e1541a586b1d9d42d90ba6207801e170b747922 SHA512 7384e7637a875c35f6da94707576aa26a94f981a750eb80991a837fa9ae245680f11ca57cf24a9efe1164dcd386c9888270688c1b3de30d1a81b67bb7c670dd9
32
33 diff --git a/sci-mathematics/nauty/nauty-2.7.4.ebuild b/sci-mathematics/nauty/nauty-2.7.4.ebuild
34 new file mode 100644
35 index 000000000000..d6f312ce894b
36 --- /dev/null
37 +++ b/sci-mathematics/nauty/nauty-2.7.4.ebuild
38 @@ -0,0 +1,83 @@
39 +# Copyright 1999-2022 Gentoo Authors
40 +# Distributed under the terms of the GNU General Public License v2
41 +
42 +EAPI=8
43 +
44 +inherit autotools
45 +
46 +MY_PV1=$(ver_rs 2 'r')
47 +MY_PV=$(ver_rs 1 '' $(ver_rs 2 'r'))
48 +DEBIAN_PATCH_VERSION=1
49 +
50 +DESCRIPTION="Computing automorphism groups of graphs and digraphs"
51 +HOMEPAGE="https://pallini.di.uniroma1.it/"
52 +
53 +SRC_URI="https://pallini.di.uniroma1.it/${PN}${MY_PV}.tar.gz
54 + mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${MY_PV1}+ds-${DEBIAN_PATCH_VERSION}.debian.tar.xz
55 + https://src.fedoraproject.org/rpms/nauty/raw/f35/f/nauty-includes.patch"
56 +
57 +LICENSE="Apache-2.0"
58 +SLOT="0"
59 +KEYWORDS="~amd64 ~arm ~riscv ~x86"
60 +IUSE="examples"
61 +
62 +BDEPEND="sys-apps/help2man"
63 +DEPEND="dev-libs/gmp:0
64 + sys-libs/zlib
65 + sci-mathematics/cliquer"
66 +RDEPEND="${DEPEND}"
67 +
68 +S="${WORKDIR}/${PN}${MY_PV}"
69 +
70 +DOCS=( schreier.txt formats.txt changes24-27.txt )
71 +
72 +PATCHES=(
73 + "${WORKDIR}"/debian/patches/upstream-fix-gt_numorbits.patch
74 + "${WORKDIR}"/debian/patches/upstream-C2help2man.patch
75 + "${WORKDIR}"/debian/patches/upstream-autotoolization.patch
76 + "${DISTDIR}"/nauty-includes.patch
77 + "${WORKDIR}"/debian/patches/unbundle-cliquer.patch
78 +)
79 +
80 +src_prepare() {
81 + default
82 + rm makefile || die
83 +
84 + # The debian patch looks for <cliquer.h>, but the autotools-form of
85 + # cliquer installs that header as <cliquer/cliquer.h>.
86 + sed -e 's~<cliquer\.h>~<cliquer/cliquer\.h>~' -i nautycliquer.h || die
87 +
88 + # The debian autotools patch has only a placeholder in LT_INIT for
89 + # the version that we must provide.
90 + sed -e "s/@INJECTVER@/${PV}/" -i configure.ac || die
91 +
92 + # This is not great, since consumers should expect to see the
93 + # upstream versioning scheme in e.g. PKG_CHECK_MODULES. However, the
94 + # upstream version is next to impossible to use for comparisons, so
95 + # at least this fixes the QA warning and makes the pkg-config
96 + # version useful on Gentoo?
97 + sed -e "s/^Version:.*/Version: ${PV}/" -i nauty.pc.in || die
98 +
99 + eautoreconf
100 +}
101 +
102 +src_configure() {
103 + # Fedora has a patch to enable popcnt at runtime on CPUs that support it,
104 + # but their patch isn't applying cleanly. What's worse, the patch doesn't
105 + # support clang (bug 732020).
106 + econf --disable-static \
107 + --disable-popcnt \
108 + --enable-tls \
109 + --enable-generic
110 +}
111 +
112 +src_install() {
113 + default
114 +
115 + if use examples; then
116 + docinto examples
117 + dodoc nautyex*.c
118 + fi
119 +
120 + find "${ED}" -name '*.la' -delete || die
121 +}