aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-graphviz/APKBUILD
blob: 67f8449b64ba02d9e3332c86b4b45282318fac19 (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
# 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.22
pkgrel=0
pkgdesc="Interface to AT&T's GraphViz. Deprecated. See GraphViz2"
url="http://search.cpan.org/dist/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="http://search.cpan.org/CPAN/authors/id/R/RS/RSAVAGE/$_pkgreal-$pkgver.tgz"

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

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 && make test
}

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



md5sums="8711db245c84d2e15b8c344bd8bebad0  GraphViz-2.22.tgz"
sha256sums="72ee8892421152ecd5d91a822fbfaeccb5ad83d7191c4b6e2f57f99e27d046a3  GraphViz-2.22.tgz"
sha512sums="5c1f3353341f791508ab813cd3b6e17965caed76fc32b09b15d63aa260242f991cb3a7e8200778df71d31633636fb589b5aec9c3b4dc1ba9716581783b5e1bf3  GraphViz-2.22.tgz"