aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-graphviz/APKBUILD
blob: 1872726e23b9b0b87a01b3df87921451fb0b2b17 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-graphviz
_pkgreal=GraphViz
pkgver=2.24
pkgrel=2
pkgdesc="Interface to AT&T's GraphViz. Deprecated. See GraphViz2"
url="https://metacpan.org/release/GraphViz/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-libwww perl-file-which perl-xml-twig perl-xml-xpath
	perl-ipc-run perl-parse-recdescent perl-module-build perl-test2-suite"
cpanmakedepends="perl-test-pod"
depends="$cpandepends"
makedepends="perl-dev graphviz $cpanmakedepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RS/RSAVAGE/$_pkgreal-$pkgver.tgz"

builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare

	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}



sha512sums="b37d1303c243a306443d5adf35d597f4e259cedaa7956d80bdb47cba811ce94e63da6b42a23d192fa9da628d999f1c023911f3f956a575aeabe673f77f3f01d9  GraphViz-2.24.tgz"