def make(parameters=''): '''build source with given parameters''' if ctx.config.get_option("verbose") and ctx.config.get_option("debug"): command = 'make VERBOSE=1 %s %s' % (get.makeJOBS(), parameters) else: command = 'make %s %s' % (get.makeJOBS(), parameters) if system(command): raise MakeError(_('Make failed.'))
def make(parameters = ''): '''build source with given parameters''' if ctx.config.get_option("verbose") and ctx.config.get_option("debug"): command = 'make VERBOSE=1 %s %s' % (get.makeJOBS(), parameters) else: command = 'make %s %s' % (get.makeJOBS(), parameters) if system(command): raise MakeError(_('Make failed.'))
def make(parameters=""): """build source with given parameters""" if ctx.config.get_option("verbose") and ctx.config.get_option("debug"): command = "make VERBOSE=1 %s %s" % (get.makeJOBS(), parameters) else: command = "make %s %s" % (get.makeJOBS(), parameters) if crosscompiling: command = "sb2 %s" % command if system(command): raise MakeError(_("Make failed."))
def make(parameters = ''): '''build source with given parameters''' if can_access_file('Makefile'): if system('make %s %s' % (get.makeJOBS(), parameters)): raise MakeError(_('Make failed.')) else: raise InstallError(_('No Makefile found.'))
def setup(): # Fix build with new freetype pisitools.dosed(".", "freetype\/(.*\.h)", r"\1", filePattern="system-headers") pisitools.dosed("gfx/", "freetype\/(.*\.h)", r"\1", filePattern=".*\.cpp$") pisitools.dosed("gfx/", "freetype\/(.*\.h)", r"\1", filePattern=".*\.h$") # Write xulrunner version correctly including the minor part for f in ("xulrunner/installer/Makefile.in", ".mozconfig", "20-xulrunner.conf"): pisitools.dosed(f, "PSPEC_VERSION", XulVersion) # Mozilla sticks on with autoconf-213, so use autoconf-213 which we provide via a hacky patch to produce configure shelltools.chmod("autoconf-213/autoconf-2.13", 0755) # Set job count for make pisitools.dosed(".mozconfig", "%%JOBS%%", get.makeJOBS()) shelltools.system( "/bin/bash ./autoconf-213/autoconf-2.13 --macro-dir=autoconf-213/m4") shelltools.cd("js/src") shelltools.system( "/bin/bash ../../autoconf-213/autoconf-2.13 --macro-dir=../../autoconf-213/m4" ) shelltools.cd("../..") shelltools.makedirs(ObjDir)
def setup(): presetup() confFlags = "--prefix=/usr \ --sysconfdir=/etc \ --with-vendor=\"Evolve OS\" \ --with-lang=ALL \ --with-help \ --with-myspell-dicts \ --with-alloc=system \ --without-java \ --without-system-dicts \ --disable-gconf \ --disable-odk \ --disable-postgresql-sdbc \ --enable-release-build=yes \ --enable-python=system \ --with-system-boost \ --with-system-cairo \ --with-system-curl \ --with-system-expat \ --with-system-harfbuzz \ --with-system-icu \ --with-system-jpeg \ --with-system-lcms2 \ --with-system-libpng \ --with-system-libxml \ --with-system-mesa-headers \ --with-system-nss \ --with-system-openssl \ --with-system-poppler \ --with-system-zlib \ --enable-gtk3 \ --with-parallelism=%s" % (get.makeJOBS().replace("-j","")) shelltools.system("./autogen.sh %s" % confFlags)
def setup(): shelltools.system('export DISTRIBUTION_PATCHES="patches/fontconfig-paths.diff \ patches/openjdk7_nonreparenting-wm.diff"') autotools.rawConfigure("\ --disable-tests \ --disable-Werror \ --disable-downloading \ --with-parallel-jobs=%s \ --enable-pulse-java \ --enable-nss \ --with-rhino \ --enable-bootstrap \ --with-ecj-jar=/usr/share/java/ecj.jar \ --with-jdk-home=/usr/lib/jvm/java-7-openjdk \ --with-openjdk-src-zip=13970e76b784.tar.gz \ --with-hotspot-src-zip=69b542696e5b.tar.gz \ --with-corba-src-zip=e6ad5b912691.tar.gz \ --with-jaxp-src-zip=94b7e8e0d96f.tar.gz \ --with-jaxws-src-zip=bd9a50a78d04.tar.gz \ --with-jdk-src-zip=9448fff93286.tar.gz \ --with-langtools-src-zip=8c26a3c39128.tar.gz \ --with-abs-install-dir=/usr/lib/jvm/java-7-openjdk \ --with-pkgversion='PisiLinux build 7.u51_2.4.6' \ " % get.makeJOBS().replace("-j", ""))
def setup(): pisitools.dosed("browser/installer/Makefile.in", "MOZ_PKG_FATAL_WARNINGS = 1", "MOZ_PKG_FATAL_WARNINGS = 0") pisitools.ldflags.add("-Wl,-rpath,/usr/lib/xulrunner-%s" % XulVersion) # Write xulrunner version correctly including the minor part for f in ("xulrunner/installer/Makefile.in", ".mozconfig", "20-xulrunner.conf"): pisitools.dosed(f, "PSPEC_VERSION", XulVersion) # Mozilla sticks on with autoconf-213, so use autoconf-213 which we provide via a hacky patch to produce configure shelltools.chmod("autoconf-213/autoconf-2.13", 0755) # Set job count for make pisitools.dosed(".mozconfig", "%%JOBS%%", get.makeJOBS()) shelltools.system( "/bin/bash ./autoconf-213/autoconf-2.13 --macro-dir=autoconf-213/m4") shelltools.cd("js/src") shelltools.system( "/bin/bash ../../autoconf-213/autoconf-2.13 --macro-dir=../../autoconf-213/m4" ) shelltools.cd("../..") # configure script misdetects the preprocessor without an optimization level # https://bugs.archlinux.org/task/34644 shelltools.system("sed -i '/ac_cpp=/s/$CPPFLAGS/& -O2/' configure") shelltools.makedirs(ObjDir)
def build(): # Required for scons to "see" intermediate install location pisitools.dodir(get.installDIR()) if get.ARCH() == "x86_64": ARCHFLAGS = "-DARCH_X86 -DBUILD_SSE_OPTIMIZATIONS -DUSE_X86_64_ASM -msse -mfpmath=sse -DUSE_XMMINTRIN" TARGETCPU = "x86_64" else: ARCHFLAGS = "-DARCH_X86 -DBUILD_SSE_OPTIMIZATIONS -msse -mfpmath=sse -DUSE_XMMINTRIN" TARGETCPU = "i386" # P.S: VST = 1 enables VST support which is only for personal use # FIXME: Drop makeJOBS() when the new pisi is merged. scons.make('%s DESTDIR="%s" \ FPU_OPTIMIZATION=1 \ FFT_ANALYSIS=1 \ SYSLIBS=1 \ SURFACES=1 \ TRANZPORT=1 \ NLS=1 \ FREEDESKTOP=1 \ AIBO=1 \ FREESOUND=1 \ WIIMOTE=1 \ LIBLO=1 \ CFLAGS="%s -ffast-math" \ LDFLAGS="%s" \ LV2=1 \ DIST_LIBDIR="lib" \ AUSTATE=1 \ ARCH="%s" \ DIST_TARGET="%s" \ PREFIX=/usr -j1' % (get.makeJOBS(), get.installDIR(), get.CFLAGS(), get.LDFLAGS(), ARCHFLAGS, TARGETCPU))
def setup(): # Google API key shelltools.echo("google_api_key", "AIzaSyBINKL31ZYd8W5byPuwTXYK6cEyoceGh6Y") pisitools.dosed(".mozconfig", "%%PWD%%", get.curDIR()) pisitools.dosed(".mozconfig", "%%FILE%%", "google_api_key") pisitools.dosed(".mozconfig", "##JOBCOUNT##", get.makeJOBS()) # LOCALE shelltools.system("rm -rf langpack-ff/*/browser/defaults") if not shelltools.isDirectory(xpidir): shelltools.makedirs(xpidir) for locale in locales: shelltools.system( "wget -c -P %s http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%s/linux-%s/xpi/%s.xpi" % (xpidir, ver, arch, locale)) #shelltools.makedirs("langpack-ff/langpack-%[email protected]" % locale) shelltools.makedirs("langpack-ff") #shelltools.system("unzip -uo %s/%s.xpi -d langpack-ff/langpack-%[email protected]" % (xpidir, locale, locale)) shelltools.system( "cp %s/%s.xpi langpack-ff/langpack-%[email protected]" % (xpidir, locale, locale)) print "Replacing browser.properties for %s locale" % locale #shelltools.copy("browserconfig.properties", "langpack-ff/langpack-%[email protected]/browser/chrome/%s/locale/branding/" % (locale, locale)) shelltools.copy("browserconfig.properties", "browser/branding/official/locales/") shelltools.makedirs(ObjDir) shelltools.cd(ObjDir) shelltools.system( "../configure --prefix=/usr --libdir=/usr/lib --disable-strip --disable-install-strip" )
def setup(): autotools.rawConfigure("--parallel=%s \ --system-libs \ --no-qt-gui \ --prefix=/usr \ --datadir=/share/cmake \ --docdir=/share/doc/cmake \ --mandir=/share/man" % get.makeJOBS().replace("-j", ""))
def setup(): shelltools.chmod("autoconf-213/autoconf-2.13", 0755) # Set job count for make pisitools.dosed(".mozconfig", "%%JOBS%%", get.makeJOBS()) pisitools.dosed(".pardus-default-prefs.js", "DISTRIB_ID", get.lsbINFO()["DISTRIB_ID"]) pisitools.dosed(".pardus-default-prefs.js", "DISTRIB_RELEASE", get.lsbINFO()["DISTRIB_RELEASE"])
def setup(): # Use autoconf 2.13, pff shelltools.chmod("autoconf-213/autoconf-2.13", 0755) # Set job count for make pisitools.dosed(".mozconfig", "%%JOBS%%", get.makeJOBS()) pisitools.dosed(".pardus-default-prefs.js", "DISTRIB_ID", get.lsbINFO()["DISTRIB_ID"]) pisitools.dosed(".pardus-default-prefs.js", "DISTRIB_RELEASE", get.lsbINFO()["DISTRIB_RELEASE"])
def setup(): pisitools.ldflags.add("-Wl,-rpath,/usr/lib/firefox") # Google API key shelltools.echo("google_api_key", "AIzaSyBINKL31ZYd8W5byPuwTXYK6cEyoceGh6Y") pisitools.dosed(".mozconfig", "%%PWD%%", get.curDIR()) pisitools.dosed(".mozconfig", "%%FILE%%", "google_api_key") # Fix build with new freetype #pisitools.dosed(".", "freetype\/(.*\.h)", r"\1", filePattern="system-headers") #pisitools.dosed("gfx/", "freetype\/(.*\.h)", r"\1", filePattern=".*\.cpp$") #pisitools.dosed("gfx/", "freetype\/(.*\.h)", r"\1", filePattern=".*\.h$") # LOCALE shelltools.system("rm -rf langpack-ff/*/browser/defaults") if not shelltools.isDirectory(xpidir): shelltools.makedirs(xpidir) for locale in locales: shelltools.system( "wget -c -P %s ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%s/linux-%s/xpi/%s.xpi" % (xpidir, ver, arch, locale)) shelltools.makedirs("langpack-ff/langpack-%[email protected]" % locale) shelltools.system( "unzip -uo %s/%s.xpi -d langpack-ff/langpack-%[email protected]" % (xpidir, locale, locale)) # replace browserconfig.properties print "Replacing browser.properties for %s locale" % locale shelltools.copy( "browserconfig.properties", "langpack-ff/langpack-%[email protected]/browser/chrome/%s/locale/branding/" % (locale, locale)) shelltools.copy("browserconfig.properties", "browser/branding/official/locales/") # Mozilla sticks on with autoconf-213 shelltools.chmod("autoconf-213/autoconf-2.13", 0755) # configure script misdetects the preprocessor without an optimization level # https://bugs.archlinux.org/task/34644 shelltools.system("sed -i '/ac_cpp=/s/$CPPFLAGS/& -O2/' configure") # Set job count for make pisitools.dosed(".mozconfig", "%%JOBS%%", get.makeJOBS()) shelltools.system( "/bin/bash ./autoconf-213/autoconf-2.13 --macro-dir=autoconf-213/m4") shelltools.cd("js/src") shelltools.system( "/bin/bash ../../autoconf-213/autoconf-2.13 --macro-dir=../../autoconf-213/m4" ) shelltools.cd("../..") shelltools.makedirs(ObjDir) shelltools.cd(ObjDir) #shelltools.export("DISPLAY", "99") shelltools.system( "../configure --prefix=/usr --libdir=/usr/lib --disable-strip --disable-install-strip" )
def make(parameters = ''): '''make source with given parameters = "all" || "doc" etc.''' # Set clang as compiler if supported if get.canClang(): export ("CC", "clang") export ("CXX", "clang++") if system('make %s %s' % (get.makeJOBS(), parameters)): raise MakeError(_('Make failed.'))
def setup(): shelltools.cd("build/workspaces/") shelltools.system("./update-workspaces.sh \ --enable-atlas \ --with-system-enet \ --with-system-miniupnpc \ --bindir=/usr/bin \ --libdir=/usr/lib/0ad \ --datadir=/usr/share/0ad/data \ JOBS=%s" % get.makeJOBS())
def setup(): pisitools.dosed(".mozconfig", "##JOBCOUNT##", get.makeJOBS()) # LOCALE shelltools.system("rm -rf langpack-tb/*/browser/defaults") if not shelltools.isDirectory(xpidir): shelltools.makedirs(xpidir) for locale in locales: shelltools.system("wget -c -P %s http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/%s/linux-%s/xpi/%s.xpi" % (xpidir, ver, arch, locale)) shelltools.makedirs("langpack-tb/langpack-%[email protected]" % locale) shelltools.system("unzip -uo %s/%s.xpi -d langpack-tb/langpack-%[email protected]" % (xpidir, locale, locale))
def setup(): #thanks to s.dalgic shelltools.export("pardusCC", get.CC()) shelltools.export("pardusCXX", get.CXX()) shelltools.export("pardusCFLAGS", get.CXX()) shelltools.export("pardusCPPFLAGS", get.CXXFLAGS()) shelltools.cd("build/workspaces/") shelltools.system("./update-workspaces.sh \ --with-system-enet \ JOBS=%s" % get.makeJOBS())
def setup(): # Fix sandbox violation #shelltools.export("BZR_HOME", get.workDIR()) autotools.rawConfigure("--parallel=%s \ --system-libs \ --no-qt-gui \ --prefix=/usr \ --datadir=/share/cmake \ --docdir=/share/doc/cmake \ --mandir=/share/man" % get.makeJOBS().replace("-j", ""))
def setup(): #thanks to s.dalgic shelltools.export("pardusCC", get.CC()) shelltools.export("pardusCXX", get.CXX()) shelltools.export("pardusCFLAGS", get.CXX()) shelltools.export("pardusCPPFLAGS", get.CXXFLAGS()) shelltools.cd("build/workspaces/") shelltools.system("./update-workspaces.sh \ --with-system-mozjs185 \ --with-system-enet \ JOBS=%s" % get.makeJOBS())
def setup(): #This command disables applications using cmake from attempting to install files in /usr/lib64/ pisitools.dosed('Modules/GNUInstallDirs.cmake', '"lib64"', '"lib"') autotools.rawConfigure("--parallel=%s \ --system-libs \ --no-qt-gui \ --no-system-jsoncpp \ --prefix=/usr \ --no-system-librhash \ --datadir=/share/cmake \ --docdir=/share/doc/cmake \ --mandir=/share/man" % get.makeJOBS().replace("-j", ""))
def setup(): shelltools.cd("build/workspaces/") shelltools.export("WX_CONFIG", "/usr/bin/wx-config-2.8 ") shelltools.system("./update-workspaces.sh \ --enable-atlas \ --with-system-enet \ --with-system-mozjs24 \ --with-system-miniupnpc \ --bindir=/usr/bin \ --libdir=/usr/lib/0ad \ --datadir=/usr/share/0ad/data \ JOBS=%s" % get.makeJOBS())
def setup(): shelltools.export("pardusCC", get.CC()) shelltools.export("pardusCXX", get.CXX()) shelltools.export("pardusCFLAGS", get.CXX()) shelltools.export("pardusCPPFLAGS", get.CXXFLAGS()) #shelltools.makedirs("binaries/usr/lib/0ad") shelltools.system("./build/workspaces/update-workspaces.sh \ --verbose \ --with-system-enet \ JOBS=%s" % get.makeJOBS())
def make(parameters=''): '''make sources with given parameters''' # if crosscompiling, then add CROSS_COMPILE parameter # we prefer traditional cross-build style since kernel # has very good build system. if crosscompiling: parameters += ' CROSS_COMPILE=%s-' % get.HOST() cmd = 'make %s ARCH=%s %s' % (get.makeJOBS(), __getKernelARCH(), parameters) if shelltools.system(cmd): raise MakeError(_('Make failed.'))
def build(): #scons.make("WITH_BF_PLAYER=1 WITH_BF_OPENAL=1 BF_FANCY=0") shelltools.export("RPM_OPT_FLAGS", get.CFLAGS()) scons.make( "WITH_BF_PLAYER=1 WITH_BF_OPENAL=1 WITH_BF_INTERNATIONAL=1 BF_QUIET=0 BF_NUMJOBS=%s" % get.makeJOBS().replace("-j", "1")) shelltools.makedirs("release/plugins/include") shelltools.copy("source/blender/blenpluginapi/*.h", "release/plugins/include") shelltools.chmod("release/plugins/bmake", 0755) autotools.make("-C release/plugins")
def setup(): shelltools.cd("build/workspaces/") shelltools.chmod("update-workspaces.sh", 0755) shelltools.export("WX_CONFIG", "/usr/bin/wxconfig") shelltools.export("SHELL","SHELL=/bin/bash") shelltools.system("sh update-workspaces.sh \ --bindir=/usr/bin \ --disable-atlas \ --without-pch \ --libdir=/usr/lib/0ad \ --datadir=/usr/share/0ad/data \ JOBS=%s" % get.makeJOBS())
def setup(): shelltools.system( 'sed -i "s:mdds >= 0.12.0:mdds-1.0 >= 0.12.0:g" configure.ac') shelltools.chmod("%s/bin/unpack-sources" % OurWorkDir) shelltools.export("LO_PREFIX", "/usr") shelltools.export("PYTHON", "python3.6") shelltools.cd(OurWorkDir) shelltools.touch("autogen.lastrun") shelltools.system('sed -e "/distro-install-file-lists/d" -i Makefile.in') #shelltools.system('sed -e "/ustrbuf/a #include <algorithm>" \ ###-i svl/source/misc/gridprinter.cxx') shelltools.system('./autogen.sh \ --prefix=/usr \ --sysconfdir=/etc \ --with-vendor="Lime Linux" \ --with-lang="ALL" \ --enable-gtk3 \ --with-help \ --with-myspell-dicts \ --with-alloc=system \ --with-java \ --without-system-dicts \ --disable-postgresql-sdbc \ --enable-release-build=yes \ --enable-python=system \ --with-system-boost \ --with-system-curl \ --with-system-cairo \ --with-system-expat \ --with-system-harfbuzz \ --with-system-icu \ --with-system-jpeg \ --with-system-lcms2 \ --with-system-libpng \ --with-system-libxml \ --with-system-nss \ --with-system-openssl \ --with-system-poppler \ --with-system-zlib \ --enable-scripting-beanshell \ --enable-scripting-javascript \ --disable-odk \ --enable-ext-wiki-publisher \ --enable-ext-nlpsolver \ --disable-firebird-sdbc \ --with-jdk-home=/usr/lib/jvm/java-7-openjdk \ --with-gdrive-client-id=413772536636.apps.googleusercontent.com \ --with-gdrive-client-secret=0ZChLK6AxeA3Isu96MkwqDR4 \ --with-parallelism=%s' % (get.makeJOBS().replace("-j", "")))
def setup(): shelltools.system('sed -i "s:mdds >= 0.12.0:mdds-1.0 >= 0.12.0:g" configure.ac') shelltools.chmod("%s/bin/unpack-sources" % OurWorkDir) shelltools.export("LO_PREFIX", "/usr") shelltools.export("PYTHON", "python3.4") shelltools.cd(OurWorkDir) shelltools.touch("autogen.lastrun") shelltools.system('sed -e "/distro-install-file-lists/d" -i Makefile.in') shelltools.system( 'sed -e "/ustrbuf/a #include <algorithm>" \ -i svl/source/misc/gridprinter.cxx' ) shelltools.system( './autogen.sh \ --prefix=/usr \ --sysconfdir=/etc \ --with-vendor=PisiLinux \ --with-lang="ALL" \ --enable-gtk3 \ --with-help \ --with-myspell-dicts \ --with-alloc=system \ --with-java \ --without-system-dicts \ --disable-postgresql-sdbc \ --enable-release-build=yes \ --enable-python=system \ --with-system-boost \ --with-system-curl \ --with-system-cairo \ --with-system-expat \ --with-system-harfbuzz \ --with-system-icu \ --with-system-jpeg \ --with-system-lcms2 \ --with-system-libpng \ --with-system-libxml \ --with-system-nss \ --with-system-openssl \ --with-system-poppler \ --with-system-zlib \ --enable-scripting-beanshell \ --enable-scripting-javascript \ --disable-odk \ --enable-ext-wiki-publisher \ --enable-ext-nlpsolver \ --with-jdk-home=/usr/lib/jvm/java-7-openjdk \ --with-parallelism=%s' % (get.makeJOBS().replace("-j", "")) )
def setup(): pisitools.dosed(".mozconfig", "##JOBCOUNT##", get.makeJOBS()) # LOCALE shelltools.system("rm -rf langpack-tb/*/browser/defaults") if not shelltools.isDirectory(xpidir): shelltools.makedirs(xpidir) for locale in locales: shelltools.system( "wget -c -P %s http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/%s/linux-%s/xpi/%s.xpi" % (xpidir, ver, arch, locale)) shelltools.makedirs("langpack-tb/langpack-%[email protected]" % locale) shelltools.system( "unzip -uo %s/%s.xpi -d langpack-tb/langpack-%[email protected]" % (xpidir, locale, locale))
def make(parameters='', ld_lib_path="", no_sb2=False): '''make source with given parameters = "all" || "doc" etc.''' cmd = '%s make %s %s' % (ld_lib_path, get.makeJOBS(), parameters) try: ld_lib_path += ":%s" % os.environ['LD_LIBRARY_PATH'] except: pass export('LD_LIBRARY_PATH', ld_lib_path) if crosscompiling and not no_sb2: cmd = "sb2 %s" % cmd if system(cmd): raise MakeError(_('Make failed.'))
def make(parameters = '', ld_lib_path="", no_sb2=False): '''make source with given parameters = "all" || "doc" etc.''' cmd = '%s make %s %s' % (ld_lib_path, get.makeJOBS(), parameters) try: ld_lib_path += ":%s" % os.environ['LD_LIBRARY_PATH'] except: pass export('LD_LIBRARY_PATH', ld_lib_path) if crosscompiling and not no_sb2: cmd = "sb2 %s" % cmd if system(cmd): raise MakeError(_('Make failed.'))
def setup(): shelltools.export("pardusCC", get.CC()) shelltools.export("pardusCXX", get.CXX()) shelltools.export("pardusCFLAGS", get.CXX()) shelltools.export("pardusCPPFLAGS", get.CXXFLAGS()) # shelltools.makedirs("binaries/usr/lib/0ad") shelltools.system( "./build/workspaces/update-workspaces.sh \ --verbose \ --with-system-enet \ JOBS=%s" % get.makeJOBS() )
def setup(): # Mozilla sticks on with autoconf-213 shelltools.chmod("autoconf-213/autoconf-2.13", 0755) # Set job count for make pisitools.dosed(".mozconfig", "%%JOBS%%", get.makeJOBS()) shelltools.system("/bin/bash ./autoconf-213/autoconf-2.13 --macro-dir=autoconf-213/m4") shelltools.cd("js/src") shelltools.system("/bin/bash ../../autoconf-213/autoconf-2.13 --macro-dir=../../autoconf-213/m4") shelltools.cd("../..") shelltools.makedirs(ObjDir) shelltools.cd(ObjDir) shelltools.system("../configure --prefix=/usr --libdir=/usr/lib --disable-strip --disable-install-strip")
def build(parameters='', build_dir='build'): """ Builds the project into the build directory with the parameters using ninja. Instead of letting ninja to detect number of cores, this function gets the number from PISI configurations. Args: parameters (str): Extra parameters for the command. Default is empty string. build_dir (str): Build directory. Default is 'build'. Examples: >>> mesontools.build() >>> mesontools.build('extra parameters') >>> mesontools.build('extra parameters', 'custom_build_dir') """ if system('ninja -C %s %s %s' % (build_dir, parameters, get.makeJOBS())): raise CompileError(_('Make failed.'))
def setup(): # Write xulrunner version correctly including the minor part for f in ("xulrunner/installer/Makefile.in", ".mozconfig", "20-xulrunner.conf"): pisitools.dosed(f, "PSPEC_VERSION", XulVersion) # Mozilla sticks on with autoconf-213, so use autoconf-213 which we provide via a hacky patch to produce configure shelltools.chmod("autoconf-213/autoconf-2.13", 0755) # Set job count for make pisitools.dosed(".mozconfig", "%%JOBS%%", get.makeJOBS()) shelltools.system("/bin/bash ./autoconf-213/autoconf-2.13 --macro-dir=autoconf-213/m4") shelltools.cd("js/src") shelltools.system("/bin/bash ../../autoconf-213/autoconf-2.13 --macro-dir=../../autoconf-213/m4") shelltools.cd("../..") shelltools.makedirs(ObjDir)
def setup(): shelltools.system('export DISTRIBUTION_PATCHES="patches/fontconfig-paths.diff \ patches/openjdk7_nonreparenting-wm.diff\ patches/giflib_5.1.diff"') autotools.rawConfigure("\ --disable-tests \ --disable-Werror \ --with-parallel-jobs=%s \ --enable-nss \ --with-rhino \ --enable-bootstrap \ --with-ecj-jar=/usr/share/java/ecj.jar \ --with-jdk-home=/usr/lib/jvm/java-7-openjdk \ --with-abs-install-dir=/usr/lib/jvm/java-7-openjdk \ --with-pkgversion='PisiLinux build 7.u79_2.5.5' \ " % get.makeJOBS().replace("-j", ""))
def setup(): shelltools.chmod("%s/bin/unpack-sources" % OurWorkDir) shelltools.export("LO_PREFIX", "/usr") shelltools.export("PYTHON", "python2.7") shelltools.cd(OurWorkDir) shelltools.touch("autogen.lastrun") shelltools.system('sed -e "/distro-install-file-lists/d" -i Makefile.in') shelltools.system('sed -e "/ustrbuf/a #include <algorithm>" \ -i svl/source/misc/gridprinter.cxx') shelltools.system('./autogen.sh \ --prefix=/usr \ --sysconfdir=/etc \ --with-vendor=PisiLinux \ --with-lang="ALL" \ --with-help \ --with-myspell-dicts \ --with-alloc=system \ --with-java \ --without-system-dicts \ --disable-postgresql-sdbc \ --enable-release-build=yes \ --enable-python=system \ --with-system-boost \ --with-system-curl \ --with-system-cairo \ --with-system-expat \ --with-system-harfbuzz \ --with-system-icu \ --with-system-jpeg \ --with-system-lcms2 \ --with-system-libpng \ --with-system-libxml \ --with-system-nss \ --with-system-openssl \ --with-system-poppler \ --with-system-zlib \ --enable-scripting-beanshell \ --enable-scripting-javascript \ --disable-odk \ --enable-ext-wiki-publisher \ --enable-ext-nlpsolver \ --with-jdk-home=/usr/lib/jvm/java-7-openjdk \ --with-parallelism=%s' % (get.makeJOBS().replace("-j", "")))
def setup(): shelltools.system( 'export DISTRIBUTION_PATCHES="patches/fontconfig-paths.diff \ patches/openjdk7_nonreparenting-wm.diff\ patches/giflib_5.1.diff"') autotools.rawConfigure("\ --disable-tests \ --disable-Werror \ --with-parallel-jobs=%s \ --enable-nss \ --with-rhino \ --enable-bootstrap \ --with-ecj-jar=/usr/share/java/ecj.jar \ --with-jdk-home=/usr/lib/jvm/java-7-openjdk \ --with-abs-install-dir=/usr/lib/jvm/java-7-openjdk \ --with-pkgversion='PisiLinux build 7.u65_2.5.2' \ " % get.makeJOBS().replace("-j", ""))
def setup(): pisitools.ldflags.add("-Wl,-rpath,/usr/lib/firefox") # Google API key shelltools.echo("google_api_key", "AIzaSyBINKL31ZYd8W5byPuwTXYK6cEyoceGh6Y") pisitools.dosed(".mozconfig", "%%PWD%%", get.curDIR()) pisitools.dosed(".mozconfig", "%%FILE%%", "google_api_key") # Fix build with new freetype #pisitools.dosed(".", "freetype\/(.*\.h)", r"\1", filePattern="system-headers") #pisitools.dosed("gfx/", "freetype\/(.*\.h)", r"\1", filePattern=".*\.cpp$") #pisitools.dosed("gfx/", "freetype\/(.*\.h)", r"\1", filePattern=".*\.h$") # LOCALE shelltools.system("rm -rf langpack-ff/*/browser/defaults") if not shelltools.isDirectory(xpidir): shelltools.makedirs(xpidir) for locale in locales: shelltools.system("wget -c -P %s ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%s/linux-%s/xpi/%s.xpi" % (xpidir, ver, arch, locale)) shelltools.makedirs("langpack-ff/langpack-%[email protected]" % locale) shelltools.system("unzip -uo %s/%s.xpi -d langpack-ff/langpack-%[email protected]" % (xpidir, locale, locale)) # replace browserconfig.properties print "Replacing browser.properties for %s locale" % locale shelltools.copy("browserconfig.properties", "langpack-ff/langpack-%[email protected]/browser/chrome/%s/locale/branding/" % (locale, locale)) shelltools.copy("browserconfig.properties", "browser/branding/official/locales/") # Mozilla sticks on with autoconf-213 shelltools.chmod("autoconf-213/autoconf-2.13", 0755) # configure script misdetects the preprocessor without an optimization level # https://bugs.archlinux.org/task/34644 shelltools.system("sed -i '/ac_cpp=/s/$CPPFLAGS/& -O2/' configure") # Set job count for make pisitools.dosed(".mozconfig", "%%JOBS%%", get.makeJOBS()) shelltools.system("/bin/bash ./autoconf-213/autoconf-2.13 --macro-dir=autoconf-213/m4") shelltools.cd("js/src") shelltools.system("/bin/bash ../../autoconf-213/autoconf-2.13 --macro-dir=../../autoconf-213/m4") shelltools.cd("../..") shelltools.makedirs(ObjDir) shelltools.cd(ObjDir) #shelltools.export("DISPLAY", "99") shelltools.system("../configure --prefix=/usr --libdir=/usr/lib --disable-strip --disable-install-strip")
def setup(): pisitools.ldflags.add("-Wl,-rpath,/usr/lib/xulrunner-%s" % XulVersion) # Write xulrunner version correctly including the minor part for f in ("xulrunner/installer/Makefile.in", ".mozconfig", "20-xulrunner.conf"): pisitools.dosed(f, "PSPEC_VERSION", XulVersion) # Mozilla sticks on with autoconf-213, so use autoconf-213 which we provide via a hacky patch to produce configure shelltools.chmod("autoconf-213/autoconf-2.13", 0755) # Set job count for make pisitools.dosed(".mozconfig", "%%JOBS%%", get.makeJOBS()) shelltools.system("/bin/bash ./autoconf-213/autoconf-2.13 --macro-dir=autoconf-213/m4") shelltools.cd("js/src") shelltools.system("/bin/bash ../../autoconf-213/autoconf-2.13 --macro-dir=../../autoconf-213/m4") shelltools.cd("../..") # configure script misdetects the preprocessor without an optimization level # https://bugs.archlinux.org/task/34644 shelltools.system("sed -i '/ac_cpp=/s/$CPPFLAGS/& -O2/' configure") shelltools.makedirs(ObjDir)
def setup(): # Google API key shelltools.echo("google_api_key", "AIzaSyBINKL31ZYd8W5byPuwTXYK6cEyoceGh6Y") pisitools.dosed(".mozconfig", "%%PWD%%", get.curDIR()) pisitools.dosed(".mozconfig", "%%FILE%%", "google_api_key") pisitools.dosed(".mozconfig", "##JOBCOUNT##", get.makeJOBS()) # LOCALE shelltools.system("rm -rf langpack-ff/*/browser/defaults") if not shelltools.isDirectory(xpidir): shelltools.makedirs(xpidir) for locale in locales: shelltools.system("wget -c -P %s http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%s/linux-%s/xpi/%s.xpi" % (xpidir, ver, arch, locale)) shelltools.makedirs("langpack-ff/langpack-%[email protected]" % locale) shelltools.system("unzip -uo %s/%s.xpi -d langpack-ff/langpack-%[email protected]" % (xpidir, locale, locale)) print "Replacing browser.properties for %s locale" % locale shelltools.copy("browserconfig.properties", "langpack-ff/langpack-%[email protected]/browser/chrome/%s/locale/branding/" % (locale, locale)) shelltools.copy("browserconfig.properties", "browser/branding/official/locales/") shelltools.makedirs(ObjDir) shelltools.cd(ObjDir) shelltools.system("../configure --prefix=/usr --libdir=/usr/lib --disable-strip --disable-install-strip")
def setup(): shelltools.export("CFLAGS", "%s -fPIC -O3" % get.CFLAGS()) shelltools.export("CXXFLAGS", "%s -fPIC -O3" % get.CXXFLAGS()) shelltools.export("CC", "gcc") shelltools.export("CXX", "g++") #shelltools.system('export DISTRIBUTION_PATCHES="patches/fontconfig-paths.diff \ #patches/openjdk7_nonreparenting-wm.diff"') #patches/giflib_5.1.diff autotools.rawConfigure("\ --disable-tests \ --disable-Werror \ --with-parallel-jobs=%s \ --enable-nss \ --disable-system-kerberos \ --disable-system-pcsc \ --disable-system-sctp \ --enable-bootstrap \ --with-jdk-home=/usr/lib/jvm/java-8-openjdk \ --with-ecj-jar=/usr/share/java/ecj.jar \ --with-pkgversion='PisiLinux build 8.u252_3.16.0' \ " % get.makeJOBS().replace("-j", ""))
def setup(): # LOCALE shelltools.system("rm -rf langpack-ff/*/browser/defaults") # replace browserconfig.properties for locale in ["-".join(ls.split("@")[0].split("-")[1:]) for ls in shelltools.ls("langpack-ff")]: print "Replacing browser.properties for %s locale" % locale shelltools.copy("browserconfig.properties", "langpack-ff/langpack-%[email protected]/browser/chrome/%s/locale/branding/" % (locale, locale)) # Mozilla sticks on with autoconf-213 shelltools.chmod("autoconf-213/autoconf-2.13", 0755) # Set job count for make pisitools.dosed(".mozconfig", "%%JOBS%%", get.makeJOBS()) shelltools.system("/bin/bash ./autoconf-213/autoconf-2.13 --macro-dir=autoconf-213/m4") shelltools.cd("js/src") shelltools.system("/bin/bash ../../autoconf-213/autoconf-2.13 --macro-dir=../../autoconf-213/m4") shelltools.cd("../..") shelltools.makedirs(ObjDir) shelltools.cd(ObjDir) shelltools.system("../configure --prefix=/usr --libdir=/usr/lib --disable-strip --disable-install-strip")
def build(): # Required for scons to "see" intermediate install location pisitools.dodir(get.installDIR()) # P.S: VST = 1 enables VST support which is only for personal use scons.make('%s DESTDIR="%s" \ FPU_OPTIMIZATION=1 \ FFT_ANALYSIS=1 \ SYSLIBS=1 \ SURFACES=1 \ TRANZPORT=1 \ NLS=1 \ FREEDESKTOP=1 \ AIBO=1 \ FREESOUND=1 \ WIIMOTE=1 \ LIBLO=1 \ CFLAGS="%s -ffast-math" \ LDFLAGS="%s" \ LV2=1 \ AUSTATE=1 \ ARCH="-DARCH_X86 -DBUILD_SSE_OPTIMIZATIONS -msse -mfpmath=sse -DUSE_XMMINTRIN" \ PREFIX=/usr' % (get.makeJOBS(), get.installDIR(), get.CFLAGS(), get.LDFLAGS()))
def setup(): pisitools.dosed("mozconfig", "##JOBCOUNT##", get.makeJOBS())
def make(parameters = ''): '''make source with given parameters = "all" || "doc" etc.''' if system('make %s %s' % (get.makeJOBS(), parameters)): raise MakeError(_('Make failed.'))
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt from pisi.actionsapi import get from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import shelltools shelltools.export("ALT_PARALLEL_COMPILE_JOBS", get.makeJOBS()) shelltools.export("HOTSPOT_BUILD_JOBS", get.makeJOBS()) shelltools.export("LC_ALL", "C") def setup(): shelltools.system('export DISTRIBUTION_PATCHES="patches/fontconfig-paths.diff \ patches/openjdk7_nonreparenting-wm.diff"') #patches/giflib_5.1.diff autotools.rawConfigure("\ --disable-tests \ --disable-Werror \ --with-parallel-jobs=%s \ --enable-nss \ --with-rhino \ --disable-system-kerberos \ --disable-system-pcsc \ --disable-system-sctp \ --enable-bootstrap \ --with-ecj-jar=/usr/share/java/ecj.jar \
#!/usr/bin/python # -*- coding: utf-8 -*- # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt from pisi.actionsapi import get from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import shelltools shelltools.export("JOBS", get.makeJOBS().replace("-j", "")) shelltools.export("LC_ALL", "C") def setup(): autotools.rawConfigure("--prefix=/usr \ --enable-nls \ --update-po \ --enable-docs \ --enable-apidocs \ --enable-unique \ --disable-gtk3 \ --enable-addons") def build(): shelltools.system("make") def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.removeDir("/usr/share/gir-1.0")