blob: 2cfbbceb0e722613f4af358f077b269bc55a6359 (
plain)
1 # Description: GTK+ Diagramming Creation Software.
2 # URL: https://wiki.gnome.org/action/show/Apps/Dia
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: docbook-xsl gtk libart_lgpl python xorg-libxdamage
5
6 name=dia
7 version=0.97.3
8 release=2
9 source=(https://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz
10 # https://gitweb.gentoo.org/repo/gentoo.git/tree/app-office/dia/files
11 dia-0.97.2-underlinking.patch dia-0.97.3-freetype_pkgconfig.patch
12 dia-0.97.0-gnome-doc.patch)
13
14 build() {
15 cd $name-$version
16 # https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/dia
17 for file in `find -type f -name '*.py'`; do
18 sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' "$file"
19 done
20 sed -i 's#python2\.1#python2 python2.1#' configure
21 export PYTHON=/usr/bin/python2
22
23 patch -Np1 -i $SRC/dia-0.97.2-underlinking.patch
24 patch -Np1 -i $SRC/dia-0.97.3-freetype_pkgconfig.patch
25 patch -Np1 -i $SRC/dia-0.97.0-gnome-doc.patch
26 ./configure \
27 --prefix=/usr \
28 --mandir=/usr/share/man \
29 --with-cairo \
30 --with-python \
31 --without-hardbooks \
32 --disable-gnome \
33 --disable-nls
34
35 make
36 make DESTDIR=$PKG install
37 /usr/bin/python -mcompileall $PKG
38
39 rm -r \
40 $PKG/usr/share/locale \
41 $PKG/usr/share/doc \
42 $PKG/usr/share/man
43 }
|