Commit f026c5cf authored by Xuetian Weng's avatar Xuetian Weng

[staging] rebuild inkscape

parent 9ddb93c3
Pipeline #123 passed with stages
in 25 minutes and 1 second
...@@ -2,22 +2,24 @@ ...@@ -2,22 +2,24 @@
pkgname=inkscape pkgname=inkscape
pkgver=0.92.2 pkgver=0.92.2
pkgrel=3 pkgrel=4
pkgdesc='Vector graphics editor using the SVG file format' pkgdesc='Professional vector graphics editor'
url='' url=''
license=('GPL' 'LGPL') license=('GPL' 'LGPL')
arch=('x86_64') arch=('x86_64')
makedepends=('boost' 'intltool')
depends=('gc' 'gsl' 'gtkmm' 'gtkspell' 'imagemagick' 'libxslt' 'poppler-glib' depends=('gc' 'gsl' 'gtkmm' 'gtkspell' 'imagemagick' 'libxslt' 'poppler-glib'
'popt' 'potrace' 'ttf-dejavu' 'python2' 'desktop-file-utils' 'popt' 'potrace' 'ttf-dejavu' 'python2' 'desktop-file-utils'
'hicolor-icon-theme') 'hicolor-icon-theme')
# python is needed for glib-genmarshal (at least with GLib 2.54)
makedepends=('boost' 'intltool' 'python3')
optdepends=('pstoedit: latex formulas' optdepends=('pstoedit: latex formulas'
'python2-scour: optimized SVG output'
'texlive-core: latex formulas' 'texlive-core: latex formulas'
'python2-numpy: some extensions' 'python2-numpy: some extensions'
'python2-lxml: some extensions and filters' 'python2-lxml: some extensions and filters'
'uniconvertor: reading/writing to some proprietary formats') 'uniconvertor: reading/writing to some proprietary formats')
source=("$pkgname-$pkgver.tar.bz2" source=("${pkgname}-${pkgver}.tar.bz2"
poppler-0.58.patch) poppler-0.58.patch)
sha256sums=('a628d0e04c254e9840947e6d866974f92c68ae31631a38b94d9b65e5cd84cfd3' sha256sums=('a628d0e04c254e9840947e6d866974f92c68ae31631a38b94d9b65e5cd84cfd3'
'0505f49cf69ad51159cda5aa5f497f001fe9d10f34d59e6ad704a1b1e1dc50c1') '0505f49cf69ad51159cda5aa5f497f001fe9d10f34d59e6ad704a1b1e1dc50c1')
...@@ -25,7 +27,7 @@ prepare() { ...@@ -25,7 +27,7 @@ prepare() {
cd "${srcdir}/${pkgname}-${pkgver}" cd "${srcdir}/${pkgname}-${pkgver}"
# #
patch -Np1 -i ../poppler-0.58.patch patch -Np1 -i ../poppler-0.58.patch
./ ./
sed -i 's|/usr/bin/python\>|/usr/bin/python2|g' cxxtest/*.py sed -i 's|/usr/bin/python\>|/usr/bin/python2|g' cxxtest/*.py
...@@ -33,7 +35,7 @@ prepare() { ...@@ -33,7 +35,7 @@ prepare() {
sed -i 's|"python" },|"python2" },|g' src/extension/implementation/script.cpp sed -i 's|"python" },|"python2" },|g' src/extension/implementation/script.cpp
sed -i 's|python -c|python2 -c|g' configure share/extensions/uniconv*.py sed -i 's|python -c|python2 -c|g' configure share/extensions/uniconv*.py
sed -i 's|"python"|"python2"|g' src/main.cpp sed -i 's|"python"|"python2"|g' src/main.cpp
sed -i 's| abs(| std::fabs(|g' src/ui/tools/flood-tool.cpp sed -i 's| abs(| std::fabs(|g' src/ui/tools/flood-tool.cpp
} }
...@@ -45,7 +47,7 @@ build() { ...@@ -45,7 +47,7 @@ build() {
--with-perl \ --with-perl \
--enable-lcms \ --enable-lcms \
--enable-poppler-cairo \ --enable-poppler-cairo \
--disable-strict-build \ --disable-strict-build \
--disable-dependency-tracking --disable-dependency-tracking
make make
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment