inkscape.

This commit is contained in:
4fury-c3440d8
2021-01-18 15:20:11 +00:00
parent 01fad8fafe
commit 9634b65050
3 changed files with 92 additions and 85 deletions
+26 -26
View File
@@ -13,32 +13,32 @@ from pisi.actionsapi import perlmodules
KeepSpecial=["libtool"] KeepSpecial=["libtool"]
j = "--with-lqr \ j = "--with-lqr \
--with-wmf \ --with-wmf \
--with-xml \ --with-xml \
--with-perl \ --with-perl \
--with-rsvg \ --with-rsvg \
--with-webp \ --with-webp \
--without-gvc \ --without-gvc \
--prefix=/usr \ --prefix=/usr \
--enable-hdri \ --enable-hdri \
--without-dps \ --without-dps \
--without-fpx \ --without-fpx \
--with-modules \ --with-modules \
--with-openexr \ --with-openexr \
--with-openjp2 \ --with-openjp2 \
--without-djvu \ --without-djvu \
--without-fftw \ --without-fftw \
--enable-opencl \ --enable-opencl \
--without-gslib \ --without-gslib \
--sysconfdir=/etc \ --sysconfdir=/etc \
--without-autotrace \ --without-autotrace \
PSDelegate=/usr/bin/gs \ PSDelegate=/usr/bin/gs \
XPSDelegate=/usr/bin/gxps \ XPSDelegate=/usr/bin/gxps \
PCLDelegate=/usr/bin/gpcl6 \ PCLDelegate=/usr/bin/gpcl6 \
--with-perl-options=INSTALLDIRS=vendor \ --with-perl-options=INSTALLDIRS=vendor \
--with-dejavu-font-dir=/usr/share/fonts/dejavu \ --with-dejavu-font-dir=/usr/share/fonts/dejavu \
--with-gs-font-dir=/usr/share/fonts/default/ghostscript \ --with-gs-font-dir=/usr/share/fonts/default/ghostscript \
PKG_CONFIG='/usr/bin/env PKG_CONFIG_PATH=/usr/lib/imagemagick6/pkgconfig pkg-config' \ PKG_CONFIG='/usr/bin/env PKG_CONFIG_PATH=/usr/lib/imagemagick6/pkgconfig pkg-config' \
" "
def setup(): def setup():
+41 -39
View File
@@ -1,39 +1,41 @@
#!/usr/bin/python #!/usr/bin/python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# #
# Licensed under the GNU General Public License, version 3. # Licensed under the GNU General Public License, version 3.
# See the file https://www.gnu.org/licenses/gpl-3.0.txt # See the file https://www.gnu.org/licenses/gpl-3.0.txt
from pisi.actionsapi import get from pisi.actionsapi import get
from pisi.actionsapi import pisitools from pisi.actionsapi import pisitools
from pisi.actionsapi import cmaketools from pisi.actionsapi import cmaketools
from pisi.actionsapi import shelltools from pisi.actionsapi import shelltools
j = "-DBUILD_TESTING=OFF -L \ j = "-DWITH_DBUS=ON \
-DBUILD_SHARED_LIBS=ON \ -DBUILD_TESTING=OFF -L \
-DWITH_IMAGE_MAGICK=OFF \ -DBUILD_SHARED_LIBS=ON \
-DBUILD_STATIC_LIBS=OFF \ -DWITH_IMAGE_MAGICK=OFF \
-DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_STATIC_LIBS=OFF \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \
" -DCMAKE_INSTALL_PREFIX=/usr \
"
shelltools.export("PYTHON", "/usr/bin/python3")
shelltools.export("PYTHON", "/usr/bin/python3")
def setup():
# fix shebang def setup():
shelltools.system("find share/extensions -iname '*.py' -exec sed -i 's|env\ python$|env python3|g' {} \;") # fix shebang
shelltools.makedirs("build") shelltools.system("find share/extensions -iname '*.py' -exec sed -i 's|env\ python$|env python3|g' {} \;")
shelltools.cd("build") # if with imagemagick build.
cmaketools.configure(j, sourceDir = '..') # shelltools.export("PKG_CONFIG_PATH", "${PKG_CONFIG_PATH}:/usr/lib/imagemagick6/pkgconfig")
shelltools.makedirs("build")
def build(): shelltools.cd("build")
shelltools.cd("build") cmaketools.configure(j, sourceDir = '..')
cmaketools.make()
def build():
def install(): shelltools.cd("build")
shelltools.cd("build") cmaketools.make()
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
def install():
shelltools.cd("..") shelltools.cd("build")
pisitools.dodoc("COPYING", "README.md") cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("../COPYING", "../README.md")
+25 -20
View File
@@ -12,9 +12,10 @@
<License>GPLv2</License> <License>GPLv2</License>
<License>LGPLv2.1</License> <License>LGPLv2.1</License>
<IsA>app:gui</IsA> <IsA>app:gui</IsA>
<Summary>SVG vector graphics application</Summary> <Summary>SVG vector graphics application.</Summary>
<Description>Inkscape is an application to create, edit, and convert SVG vector graphics images that can also import from and export to bitmap image files.</Description> <Description>Inkscape is an application to create, edit, and convert SVG vector graphics images that can also import from and export to bitmap image files.</Description>
<Archive sha1sum="4977844aa1da0e6992c6e836561f8a12eb58dca0" type="tarbz2">https://gitlab.com/inkscape/inkscape/-/archive/INKSCAPE_1_0_1/inkscape-INKSCAPE_1_0_1.tar.bz2</Archive> <Archive sha1sum="a190f3ec3bf24379ccac402490276361435c2732" type="tarbz2">
https://gitlab.com/inkscape/inkscape/-/archive/INKSCAPE_1_0_2/inkscape-INKSCAPE_1_0_2.tar.bz2</Archive>
<BuildDependencies> <BuildDependencies>
<Dependency>cmake</Dependency> <Dependency>cmake</Dependency>
<Dependency>potrace</Dependency> <Dependency>potrace</Dependency>
@@ -22,6 +23,16 @@
<Dependency>intltool</Dependency> <Dependency>intltool</Dependency>
<Dependency>gsl-devel</Dependency> <Dependency>gsl-devel</Dependency>
<Dependency>gdl-devel</Dependency> <Dependency>gdl-devel</Dependency>
<!-- stable deps. -->
<Dependency>libXt-devel</Dependency>
<Dependency>libXv-devel</Dependency>
<Dependency>libSM-devel</Dependency>
<Dependency>libXpm-devel</Dependency>
<Dependency>libXres-devel</Dependency>
<Dependency>libXtst-devel</Dependency>
<Dependency>libxkbfile-devel</Dependency>
<!-- -->
<Dependency>dbus-devel</Dependency>
<Dependency>gtk3-devel</Dependency> <Dependency>gtk3-devel</Dependency>
<Dependency>popt-devel</Dependency> <Dependency>popt-devel</Dependency>
<Dependency>lcms2-devel</Dependency> <Dependency>lcms2-devel</Dependency>
@@ -56,11 +67,12 @@
<Package> <Package>
<Name>inkscape</Name> <Name>inkscape</Name>
<Summary>SVG vector graphics application</Summary> <Summary>SVG vector graphics application.</Summary>
<RuntimeDependencies> <RuntimeDependencies>
<Dependency>gc</Dependency> <Dependency>gc</Dependency>
<Dependency>gdl</Dependency> <Dependency>gdl</Dependency>
<Dependency>gsl</Dependency> <Dependency>gsl</Dependency>
<Dependency>dbus</Dependency>
<Dependency>gtk3</Dependency> <Dependency>gtk3</Dependency>
<Dependency>zlib</Dependency> <Dependency>zlib</Dependency>
<Dependency>atkmm</Dependency> <Dependency>atkmm</Dependency>
@@ -85,12 +97,11 @@
<Dependency>libxslt</Dependency> <Dependency>libxslt</Dependency>
<Dependency>pangomm</Dependency> <Dependency>pangomm</Dependency>
<Dependency>poppler</Dependency> <Dependency>poppler</Dependency>
<!-- <Dependency>libyaml</Dependency> -->
<Dependency>freetype</Dependency> <Dependency>freetype</Dependency>
<Dependency>harfbuzz</Dependency> <Dependency>harfbuzz</Dependency>
<Dependency>libvisio</Dependency> <Dependency>libvisio</Dependency>
<Dependency>libspiro</Dependency> <Dependency>libspiro</Dependency>
<!-- <Dependency>dbus-glib</Dependency> --> <Dependency>dbus-glib</Dependency>
<Dependency>gtkspell3</Dependency> <Dependency>gtkspell3</Dependency>
<Dependency>libsigc++</Dependency> <Dependency>libsigc++</Dependency>
<Dependency>fontconfig</Dependency> <Dependency>fontconfig</Dependency>
@@ -118,25 +129,19 @@
<Path fileType="localedata">/usr/share/bash-completion/completions/inkscape</Path> <Path fileType="localedata">/usr/share/bash-completion/completions/inkscape</Path>
</Files> </Files>
</Package> </Package>
<!--Package>
<Name>inkscape-devel</Name>
<Summary>Development files for Inkscape</Summary>
<RuntimeDependencies>
<Dependency release="current">inkscape</Dependency>
<Dependency>glib2-devel</Dependency>
<Dependency>dbus-glib-devel</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="library">/usr/lib/pkgconfig</Path>
</Files>
</Package-->
<History> <History>
<Update release="10">
<Date>2021-01-18</Date>
<Version>1.0.2</Version>
<Comment>Version bump.</Comment>
<Name>fury</Name>
<Email>wascheme@tuta.io</Email>
</Update>
<Update release="9"> <Update release="9">
<Date>2020-09-11</Date> <Date>2020-09-11</Date>
<Version>1.0.1</Version> <Version>1.0.1</Version>
<Comment>ver bump, gtk3.</Comment> <Comment>Ver bump, gtk3.</Comment>
<Name>fury</Name> <Name>fury</Name>
<Email>wascheme@tuta.io</Email> <Email>wascheme@tuta.io</Email>
</Update> </Update>
@@ -197,4 +202,4 @@
<Email>groni@pisilinux.org</Email> <Email>groni@pisilinux.org</Email>
</Update> </Update>
</History> </History>
</PISI> </PISI>