Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=bouleetbiltesting.git;a=commitdiff;h=e4a8437d71cdd7f54b6d20bbc8ba0c903e5de567
commit e4a8437d71cdd7f54b6d20bbc8ba0c903e5de567 Author: bouleetbil <bouleet...@frogdev.info> Date: Sat Apr 11 23:19:04 2009 +0200 xulrunner-dev-1.9.0.8-1-i686 *new package diff --git a/source/xlib/xulrunner-dev/000_flex-configure-LANG.patch b/source/xlib/xulrunner-dev/000_flex-configure-LANG.patch new file mode 100644 index 0000000..03ad580 --- /dev/null +++ b/source/xlib/xulrunner-dev/000_flex-configure-LANG.patch @@ -0,0 +1,41 @@ +The LANG vars aren't reset early enough so when sed tries to use [a-zA-Z] in +option parsing, it may break. + +http://bugs.gentoo.org/103483 + +--- mozilla/configure ++++ mozilla/configure +@@ -54,6 +54,16 @@ + infodir='${prefix}/info' + mandir='${prefix}/man' + ++# NLS nuisances. ++# Only set these to C if already set. These must not be set unconditionally ++# because not all systems understand e.g. LANG=C (notably SCO). ++# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! ++# Non-C LC_CTYPE values break the ctype check. ++if test "${LANG+set}" = set; then LANG=C; export LANG; fi ++if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi ++if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi ++if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi ++ + # Initialize some other variables. + subdirs= + MFLAGS= MAKEFLAGS= +@@ -452,16 +463,6 @@ + esac + done + +-# NLS nuisances. +-# Only set these to C if already set. These must not be set unconditionally +-# because not all systems understand e.g. LANG=C (notably SCO). +-# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! +-# Non-C LC_CTYPE values break the ctype check. +-if test "${LANG+set}" = set; then LANG=C; export LANG; fi +-if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi +-if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi +-if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi +- + # confdefs.h avoids OS command line length limits that DEFS can exceed. + rm -rf conftest* confdefs.h + # AIX cpp loses on an empty file, so make sure it contains at least a newline. diff --git a/source/xlib/xulrunner-dev/080_gcc-4.4-elif.patch b/source/xlib/xulrunner-dev/080_gcc-4.4-elif.patch new file mode 100644 index 0000000..9fc4017 --- /dev/null +++ b/source/xlib/xulrunner-dev/080_gcc-4.4-elif.patch @@ -0,0 +1,12 @@ +diff -Naurp mozilla-orig/toolkit/xre/nsAppRunner.cpp mozilla/toolkit/xre/nsAppRunner.cpp +--- mozilla-orig/toolkit/xre/nsAppRunner.cpp 2008-11-17 08:36:43.000000000 -0600 ++++ mozilla/toolkit/xre/nsAppRunner.cpp 2009-03-01 20:35:11.000000000 -0600 +@@ -1459,7 +1459,7 @@ XRE_GetBinaryPath(const char* argv0, nsI + if (NS_FAILED(rv)) + return rv; + +-#elif ++#else + #error Oops, you need platform-specific code here + #endif + diff --git a/source/xlib/xulrunner-dev/FrugalBuild b/source/xlib/xulrunner-dev/FrugalBuild new file mode 100644 index 0000000..34ef427 --- /dev/null +++ b/source/xlib/xulrunner-dev/FrugalBuild @@ -0,0 +1,69 @@ +# Compiling Time: 5.65 SBU +# Maintainer: crazy <cr...@frugalware.org> +# Contributor: AlexExtreme <a...@alex-smith.me.uk> + +pkgname=xulrunner-dev +_F_archive_name=xulrunner +pkgver=1.9.0.8 +pkgrel=1 +pkgdesc="XULRunner is a Mozilla runtime package that can be used to bootstrap XUL+XPCOM applications that are as rich as Firefox and Thunderbird." +url="http://developer.mozilla.org/en/docs/XULRunner" +depends=('gtk+2>=2.16.0' 'libidl' 'nss>=3.12' 'dbus-glib' 'curl') +makedepends=('zip' 'pkgconfig') +groups=('xlib') +options=('scriptlet') +archs=('i686' 'x86_64' 'ppc') +up2date="lynx -dump 'http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/?C=M;O=D'|grep -m1 'releases/[0-9]'|sed 's/.*s\/\(.*\)/\/\1/;s/\///g'" +source=(http://dev.gentoo.org/~armin76/dist/$_F_archive_name-$pkgver.tar.bz2 mozconfig 000_flex-configure-LANG.patch 080_gcc-4.4-elif.patch) +sha1sums=('99adcd31779105778d03b2cfdbe59fb1d3607f7e' \ + '768b05573bc98cd5c345888094cf81653c2fd71e' \ + '289369d1de4d67cd80b6a01057c8a2f5db1c3e90' \ + '7abf918e76a60adf10010b71b79e702cf8f5337e') + +unset MAKEFLAGS +_F_cd_path="mozilla" + +build() { + Fcd + Fpatchall + # x86_64 fixes + [ "${CARCH}" = "x86_64" ] && echo "ac_cv_visibility_pragma=no" >> $Fsrcdir/mozconfig + + # Get our optimization flags in + sed "s/#OPTIMIZE#/${CFLAGS}/g" $Fsrcdir/mozconfig > .mozconfig || Fdie + + # Fix buggy default DPI setting + sed -i '/layout.css.dpi/s/-1/72/' modules/libpref/src/init/all.js || Fdie + + # Fix dir install + Fsed "/etc/gre.d" "$Fdestdir/etc/gre.d" xulrunner/installer/Makefile.in + + # Build it + make -f client.mk build || Fdie + + # fix broken pkgconfig + Fsed "$Fdestdir/usr" "/usr" xulrunner/installer/*.pc + + # Install it + Fmakeinstall DISTDIR=$Fdestdir + + Frm usr/bin/defaults + + # nss and nspr aren't built, remove stuff for them + Frm usr/lib/pkgconfig/xulrunner-ns{s,pr}.pc + Frm usr/share/aclocal + Frm usr/bin + + #fixe broken link + Frm usr/lib/xulrunner-devel-$pkgver/bin + Frm usr/lib/xulrunner-devel-$pkgver/lib + Frm usr/lib/xulrunner-devel-$pkgver/idl + Frm usr/lib/xulrunner-devel-$pkgver/include + + Fln /usr/lib/xulrunner-devel-$pkgver/sdk/lib /usr/lib/xulrunner-devel-$pkgver/lib + Fln /usr/lib/xulrunner-$pkgver /usr/lib/xulrunner-devel-$pkgver/bin + Fln /usr/share/idl/xulrunner-$pkgver/unstable /usr/lib/xulrunner-devel-$pkgver/idl + Fln /usr/include/xulrunner-$pkgver/unstable /usr/lib/xulrunner-devel-$pkgver/include +} + +# optimization OK diff --git a/source/xlib/xulrunner-dev/mozconfig b/source/xlib/xulrunner-dev/mozconfig new file mode 100644 index 0000000..5729a23 --- /dev/null +++ b/source/xlib/xulrunner-dev/mozconfig @@ -0,0 +1,39 @@ +. $topsrcdir/xulrunner/config/mozconfig +ac_add_options --disable-activex +ac_add_options --disable-activex-scripting +ac_add_options --disable-debug +ac_add_options --disable-gnomevfs +ac_add_options --disable-installer +ac_add_options --disable-javaxpcom +ac_add_options --disable-long-long-warning +ac_add_options --disable-pedantic +ac_add_options --disable-profilesharing +ac_add_options --disable-tests +ac_add_options --disable-toolkit-xlib +ac_add_options --disable-toolkit-qt +ac_add_options --disable-toolkit-gtk +ac_add_options --disable-xprint +ac_add_options --enable-canvas +ac_add_options --enable-crypto +ac_add_options --disable-mochitest +ac_add_options --enable-default-toolkit=cairo-gtk2 +ac_add_options --enable-extensions=default,cookie,permissions +ac_add_options --disable-ldap +ac_add_options --enable-optimize="#OPTIMIZE#" +ac_add_options --enable-pango +ac_add_options --enable-single-profile +ac_add_options --enable-strip +ac_add_options --enable-svg +ac_add_options --enable-svg-renderer=cairo +ac_add_options --enable-system-cairo +ac_add_options --enable-toolkit-gtk2 +ac_add_options --enable-xft +ac_add_options --prefix=/usr +ac_add_options --with-default-mozilla-five-home=/usr +ac_add_options --with-pthreads +ac_add_options --with-system-jpeg +ac_add_options --with-system-mng +ac_add_options --with-system-nspr +ac_add_options --with-system-nss +ac_add_options --without-system-png +ac_add_options --with-system-zlib _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git