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
+41 -39
View File
@@ -1,39 +1,41 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
from pisi.actionsapi import cmaketools
from pisi.actionsapi import shelltools
j = "-DBUILD_TESTING=OFF -L \
-DBUILD_SHARED_LIBS=ON \
-DWITH_IMAGE_MAGICK=OFF \
-DBUILD_STATIC_LIBS=OFF \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
"
shelltools.export("PYTHON", "/usr/bin/python3")
def setup():
# fix shebang
shelltools.system("find share/extensions -iname '*.py' -exec sed -i 's|env\ python$|env python3|g' {} \;")
shelltools.makedirs("build")
shelltools.cd("build")
cmaketools.configure(j, sourceDir = '..')
def build():
shelltools.cd("build")
cmaketools.make()
def install():
shelltools.cd("build")
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
shelltools.cd("..")
pisitools.dodoc("COPYING", "README.md")
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
from pisi.actionsapi import cmaketools
from pisi.actionsapi import shelltools
j = "-DWITH_DBUS=ON \
-DBUILD_TESTING=OFF -L \
-DBUILD_SHARED_LIBS=ON \
-DWITH_IMAGE_MAGICK=OFF \
-DBUILD_STATIC_LIBS=OFF \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
"
shelltools.export("PYTHON", "/usr/bin/python3")
def setup():
# fix shebang
shelltools.system("find share/extensions -iname '*.py' -exec sed -i 's|env\ python$|env python3|g' {} \;")
# if with imagemagick build.
# shelltools.export("PKG_CONFIG_PATH", "${PKG_CONFIG_PATH}:/usr/lib/imagemagick6/pkgconfig")
shelltools.makedirs("build")
shelltools.cd("build")
cmaketools.configure(j, sourceDir = '..')
def build():
shelltools.cd("build")
cmaketools.make()
def install():
shelltools.cd("build")
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("../COPYING", "../README.md")