gnome ver. bump

This commit is contained in:
Rmys
2025-10-13 15:17:08 +03:00
parent aa317f38d6
commit 818700f604
8 changed files with 32 additions and 215 deletions
+13 -45
View File
@@ -9,65 +9,33 @@ from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
#WorkDir = "mozjs%s/js/src" % get.srcVERSION()
ObjDir = "obj"
shelltools.export("SHELL","/bin/sh")
WorkDir = "firefox-%s" %get.srcVERSION()
shelltools.system("export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=pip")
shelltools.export("MOZBUILD_STATE_PATH", "mozbuild")
shelltools.system("export MOZ_NOSPAM=1")
def setup():
#shelltools.cd("js/src")
#shelltools.system("sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl ")
shelltools.export("CC", "gcc")
shelltools.export("CXX", "g++")
# shelltools.export("CC", "gcc")
# shelltools.export("CXX", "g++")
# shelltools.system("cp mozconfig .mozconfig")
shelltools.system("cp mozconfig js/src/.mozconfig")
shelltools.system("mkdir -p build-js")
shelltools.cd("build-js")
shelltools.system("sh ../js/src/configure \
--enable-readline \
--with-intl-api \
--disable-debug \
--disable-debug-symbols \
--disable-jemalloc \
--disable-strip \
--enable-hardening \
--enable-linker=gold \
--enable-optimize \
--enable-readline \
--enable-release \
--enable-shared-js \
--enable-tests \
--with-intl-api \
--with-system-zlib \
--with-system-nspr \
--without-system-icu")
# --prefix=/usr \
def build():
shelltools.cd("build-js")
autotools.make("prefix=/usr")
# def check():
# shelltools.cd("build-js")
#autotools.make("-C js/src check-jstests")
#autotools.make("-C js/src check-jit-test")
shelltools.system("./mach build")
def install():
shelltools.cd("build-js")
autotools.rawInstall("DESTDIR=%s prefix=/usr" % get.installDIR())
shelltools.system("DESTDIR=%s ./mach install " % get.installDIR())
pisitools.remove("/usr/lib/*.ajs")
pisitools.dosym("/usr/lib/libmozjs-128.so", "/usr/lib/libmozjs-128.so.0")
pisitools.dosym("/usr/lib/libmozjs-140.so", "/usr/lib/libmozjs-140.so.0")
pisitools.dosed("%s/usr/bin/js128-config" % get.installDIR(), "usr/local", "usr")
pisitools.dosed("%s/usr/lib/pkgconfig/mozjs-128.pc" % get.installDIR(), "usr/local", "usr")
#for polkit
#pisitools.rename("/usr/lib/pkgconfig/mozjs-..pc", "mozjs-17.0.pc")
#pisitools.remove("usr/lib/libmozjs-..a")
shelltools.cd("..")
pisitools.dodoc("README*")
# add link for polkit