2006-11-20 07:26:53 +10:00
|
|
|
# Description: GTK+ Diagramming Creation Software.
|
2020-12-05 18:26:06 +11:00
|
|
|
# URL: https://wiki.gnome.org/action/show/Apps/Dia
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2020-05-24 14:55:40 +00:00
|
|
|
# Depends on: docbook-xsl gtk libart_lgpl python xorg-libxdamage
|
2006-11-14 09:01:22 +10:00
|
|
|
|
|
|
|
name=dia
|
2015-03-03 13:56:45 +11:00
|
|
|
version=0.97.3
|
2020-05-24 15:18:13 +00:00
|
|
|
release=2
|
2020-12-05 18:26:06 +11:00
|
|
|
source=(https://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.xz
|
2020-05-24 14:55:40 +00:00
|
|
|
# https://gitweb.gentoo.org/repo/gentoo.git/tree/app-office/dia/files
|
|
|
|
dia-0.97.2-underlinking.patch dia-0.97.3-freetype_pkgconfig.patch
|
|
|
|
dia-0.97.0-gnome-doc.patch)
|
2006-11-14 09:01:22 +10:00
|
|
|
|
|
|
|
build() {
|
2011-12-30 03:40:42 +11:00
|
|
|
cd $name-$version
|
2020-05-24 14:55:40 +00:00
|
|
|
# https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/dia
|
|
|
|
for file in `find -type f -name '*.py'`; do
|
|
|
|
sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' "$file"
|
|
|
|
done
|
|
|
|
sed -i 's#python2\.1#python2 python2.1#' configure
|
|
|
|
export PYTHON=/usr/bin/python2
|
2006-11-14 09:01:22 +10:00
|
|
|
|
2020-05-24 14:55:40 +00:00
|
|
|
patch -Np1 -i $SRC/dia-0.97.2-underlinking.patch
|
|
|
|
patch -Np1 -i $SRC/dia-0.97.3-freetype_pkgconfig.patch
|
|
|
|
patch -Np1 -i $SRC/dia-0.97.0-gnome-doc.patch
|
2007-05-14 09:02:30 +10:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2020-05-24 14:55:40 +00:00
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--with-cairo \
|
2015-03-03 13:56:45 +11:00
|
|
|
--with-python \
|
2020-05-24 14:55:40 +00:00
|
|
|
--without-hardbooks \
|
|
|
|
--disable-gnome \
|
|
|
|
--disable-nls
|
2006-11-14 09:01:22 +10:00
|
|
|
|
2008-03-17 02:03:00 +11:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2020-05-24 15:18:13 +00:00
|
|
|
/usr/bin/python -mcompileall $PKG
|
2011-12-30 03:40:42 +11:00
|
|
|
|
|
|
|
rm -r \
|
|
|
|
$PKG/usr/share/locale \
|
|
|
|
$PKG/usr/share/doc \
|
|
|
|
$PKG/usr/share/man
|
2006-11-14 09:01:22 +10:00
|
|
|
}
|