blob: 7d891e9612ae3951d16c7d358f39c4c7a6b01f0a (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=graphviz
pkgver=7.0.2
pkgrel=0
pkgdesc="Graph Visualization Tools"
url="https://www.graphviz.org/"
arch="all"
license="EPL-1.0"
_luaver=5.4
depends_dev="
cairo-dev
expat-dev
fontconfig-dev
freetype-dev
gd-dev
gmp-dev
libjpeg-turbo-dev
libpng-dev
libsm-dev
libxext-dev
pango-dev
python3-dev
zlib-dev
"
makedepends="
$depends_dev
bison
flex
libltdl
libxaw-dev
lua$_luaver-dev
m4
swig
tcl
"
install="$pkgname.pre-deinstall"
triggers="$pkgname.trigger=/usr/lib/graphviz"
subpackages="
$pkgname-dev
$pkgname-libs
$pkgname-doc
py3-gv:_py3
lua$_luaver-$pkgname:_lua
$pkgname-graphs::noarch
"
source="https://gitlab.com/api/v4/projects/4207231/packages/generic/graphviz-releases/$pkgver/graphviz-$pkgver.tar.xz"
# secfixes:
# 2.46.0-r0:
# - CVE-2020-18032
build() {
LIBPOSTFIX=/ \
LUA=lua$_luaver \
lua_suffix=$_luaver \
CFLAGS="$CFLAGS -flto=auto" \
CXXFLAGS="$CXXFLAGS -flto=auto" \
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--disable-python \
--disable-silent-rules \
--disable-static \
--disable-dependency-tracking \
--disable-ltdl-install \
--enable-ltdl \
--enable-sharp=no \
--enable-go=no \
--enable-guile=no \
--enable-java=no \
--enable-lua=yes \
--enable-ocaml=no \
--enable-perl=no \
--enable-php=no \
--enable-python3=yes \
--enable-r=no \
--enable-ruby=no \
--enable-tcl=no \
--without-included-ltdl \
--with-gdk-pixbuf=yes \
--with-ipsepcola=yes \
--with-jpeg \
--with-libgd=yes \
--with-pangocairo=yes \
--with-rsvg=yes \
--with-x
if [ "$CARCH" = "x86_64" ]; then
# the configure script thinks we have sincos. we dont.
sed -i -e '/HAVE_SINCOS/d' config.h
fi
make
}
package() {
# Install has race conditions...
make -j1 DESTDIR="$pkgdir" \
pkgconfigdir=/usr/lib/pkgconfig \
install
}
_py3() {
pkgdesc="Python3 extension for graphviz"
depends="python3"
amove usr/lib/graphviz/python3* \
usr/lib/python3*
}
_lua() {
pkgdesc="Lua$_luaver extension for graphviz"
provides="lua-$pkgname=$pkgver-r$pkgrel" # for backward compatibility
replaces="lua-$pkgname" # for backward compatibility
mkdir -p "$subpkgdir"/usr/lib/lua
mv "$pkgdir"/usr/lib/lua "$subpkgdir"/usr/lib/lua/$_luaver
amove usr/lib/graphviz/lua
}
graphs() {
pkgdesc="Demo graphs for graphviz"
amove usr/share/graphviz/graphs
}
sha512sums="
cff40066f80d29a8ca19f8c12410c293b58ef4abf03f2c3b36472a856bc39e6a2bf6badfad4f036e45e430b7d2fec40d5d1fdb0b47778b1857a46b2b07700d98 graphviz-7.0.2.tar.xz
"
|