summaryrefslogtreecommitdiff
blob: 579baf03ad7f7d5245a39be3492008d988dd0245 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit autotools versionator

MY_PV1=$(replace_version_separator 2 'r')
MY_PV=$(delete_version_separator 1 ${MY_PV1})

DESCRIPTION="Computing automorphism groups of graphs and digraphs"
HOMEPAGE="http://pallini.di.uniroma1.it/"
DEBIAN_PATCH_VERSION="1"
SRC_URI="http://cs.anu.edu.au/~bdm/${PN}/${PN}${MY_PV}.tar.gz
	mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${MY_PV1}+ds-${DEBIAN_PATCH_VERSION}.debian.tar.xz
	http://pkgs.fedoraproject.org/cgit/rpms/nauty.git/plain/nauty-popcnt.patch"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 ~arm x86"
IUSE="test"
RESTRICT="!test? ( test )"

DEPEND="dev-libs/gmp:0
	sys-libs/zlib"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${PN}${MY_PV}"
DOCS=( schreier.txt config.txt formats.txt changes24-26.txt )
PATCHES=(
	"${WORKDIR}"/debian/patches/upstream-lintian-spelling-error.patch
	"${WORKDIR}"/debian/patches/upstream-fix-gt_numorbits.patch
	"${WORKDIR}"/debian/patches/upstream-fix-include-extern.patch
	"${WORKDIR}"/debian/patches/upstream-zlib-blisstog_c.patch
	"${WORKDIR}"/debian/patches/upstream-C2help2man.patch
	"${WORKDIR}"/debian/patches/upstream-autotoolization.patch
	"${WORKDIR}"/debian/patches/system-preprocessing-examples.patch
	"${DISTDIR}"/nauty-popcnt.patch
)

src_prepare() {
	default
	rm -f makefile
	eautoreconf
}

src_configure() {
	econf --disable-static --enable-runtime-popcnt --enable-tls
}