inkscape-1.1.

This commit is contained in:
4fury-c3440d8
2021-06-04 20:48:32 +03:00
parent e89448a50e
commit b9f6df75ad
2 changed files with 60 additions and 16 deletions
+13 -12
View File
@@ -9,21 +9,22 @@ 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")
j = ''.join([
'-DWITH_DBUS=ON ',
'-DBUILD_TESTING=OFF -L ',
'-DWITH_GSPELL=OFF ',
'-DBUILD_SHARED_LIBS=ON ',
'-DWITH_IMAGE_MAGICK=OFF ',
'-DBUILD_STATIC_LIBS=OFF ',
'-DCMAKE_INSTALL_LIBDIR=lib ',
'-DCYTHON_EXECUTABLE=/usr/bin/cython3 ',
'-DCMAKE_BUILD_TYPE=Release ',
'-DCMAKE_INSTALL_PREFIX=/usr '
])
def setup():
# fix shebang
shelltools.system("find share/extensions -iname '*.py' -exec sed -i 's|env\ python$|env python3|g' {} \;")
# 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")