[Lunar-commits] <moonbase> xulrunner5: new xulrunner 5.0

Zbigniew Luszpinski zbiggy at lunar-linux.org
Thu Jun 30 01:39:24 CEST 2011


commit 63056230c75611d00139099aa36d495270e73ec1
Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
Date:   Thu Jun 30 01:39:24 2011 +0200

    xulrunner5: new xulrunner 5.0
---
 web/xulrunner/CONFLICTS     |    1 +
 web/xulrunner2/CONFLICTS    |    1 +
 web/xulrunner5/BUILD        |   49 +++++++++++++++++++++++++++++++++++++++++++
 web/xulrunner5/CONFLICTS    |    2 +
 web/xulrunner5/DEPENDS      |    8 +++++++
 web/xulrunner5/DETAILS      |   24 +++++++++++++++++++++
 web/xulrunner5/POST_INSTALL |   24 +++++++++++++++++++++
 web/xulrunner5/POST_REMOVE  |    1 +
 8 files changed, 110 insertions(+), 0 deletions(-)

diff --git a/web/xulrunner/CONFLICTS b/web/xulrunner/CONFLICTS
index 72db570..4fe2eaa 100644
--- a/web/xulrunner/CONFLICTS
+++ b/web/xulrunner/CONFLICTS
@@ -1 +1,2 @@
 conflicts xulrunner2
+conflicts xulrunner5
diff --git a/web/xulrunner2/CONFLICTS b/web/xulrunner2/CONFLICTS
index fc92674..476d8d9 100644
--- a/web/xulrunner2/CONFLICTS
+++ b/web/xulrunner2/CONFLICTS
@@ -1 +1,2 @@
 conflicts xulrunner
+conflicts xulrunner5
diff --git a/web/xulrunner5/BUILD b/web/xulrunner5/BUILD
new file mode 100644
index 0000000..9ea2663
--- /dev/null
+++ b/web/xulrunner5/BUILD
@@ -0,0 +1,49 @@
+(
+
+  patch_it $SOURCE2 1 &&
+  OPTS+=" --enable-application=xulrunner \
+          --prefix=/usr \
+          --libdir=/usr/lib \
+          --with-system-jpeg \
+          --with-system-zlib \
+          --with-system-bz2 \
+          --enable-system-lcms \
+          --enable-system-sqlite \
+          --enable-system-cairo \
+          --with-pthreads \
+          --enable-strip \
+          --disable-tests \
+          --disable-mochitest \
+          --disable-installer \
+          --disable-debug \
+          --enable-optimize \
+          --enable-default-toolkit=cairo-gtk2 \
+          --enable-pango \
+          --enable-svg \
+          --enable-canvas \
+          --disable-javaxpcom \
+          --disable-crashreporter \
+          --enable-safe-browsing \
+          --disable-necko-wifi \
+          --enable-startup-notification" &&
+
+# wifi breaks build due to incompatibile header files
+  #OPTS+=" --enable-application=xulrunner \
+  #        --disable-test \
+  #        --enable-system-sqlite \
+  #        --enable-image-encoder=all \
+  #        --enable-js-binary \
+  #        --enable-storage --enable-places --enable-places_bookmarks \
+  #        --enable-jsd \
+  #        --enable-xpctools \
+  #        --enable-gnomeui \
+  #        --disable-libxul \
+  #        --disable-javaxpcom"
+
+  export MOZ_CO_PROJECT=xulrunner &&
+  export MOZILLA_OFFICIAL=1 &&
+  export BUILD_OFFICIAL=1 &&
+
+  default_build 
+
+) > $C_FIFO 2>&1
diff --git a/web/xulrunner5/CONFLICTS b/web/xulrunner5/CONFLICTS
new file mode 100644
index 0000000..4afc59e
--- /dev/null
+++ b/web/xulrunner5/CONFLICTS
@@ -0,0 +1,2 @@
+conflicts xulrunner
+conflicts xulrunner2
diff --git a/web/xulrunner5/DEPENDS b/web/xulrunner5/DEPENDS
new file mode 100644
index 0000000..2af156a
--- /dev/null
+++ b/web/xulrunner5/DEPENDS
@@ -0,0 +1,8 @@
+depends ORBit2
+depends zip
+depends unzip
+depends expat
+depends startup-notification
+depends lcms
+depends sqlite
+depends libnotify
diff --git a/web/xulrunner5/DETAILS b/web/xulrunner5/DETAILS
new file mode 100644
index 0000000..4130d6f
--- /dev/null
+++ b/web/xulrunner5/DETAILS
@@ -0,0 +1,24 @@
+          MODULE=xulrunner5
+         VERSION=5.0
+          SOURCE=xulrunner-$VERSION.source.tar.bz2
+         SOURCE2=firefox5-bug644692fix.patch
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/mozilla-release
+   SOURCE_URL[0]=ftp://ftp.uni-erlangen.de/pub/mozilla.org/xulrunner/releases/$VERSION/source
+   SOURCE_URL[1]=ftp://mozilla.isc.org/pub/mozilla.org/xulrunner/releases/$VERSION/source
+   SOURCE_URL[2]=ftp://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/$VERSION/source
+     SOURCE2_URL=$PATCH_URL
+      SOURCE_VFY=sha1:abaac5c52296519f7293e61682a98c9a3450bb7b
+     SOURCE2_VFY=sha1:4f57bc9a5ced79c60fab7b166f84441fce83f63c
+        WEB_SITE=http://www.mozilla.org
+         ENTERED=20080624
+         UPDATED=20110625
+           SHORT="a XUL runtime that requires no browser"
+PSAFE=no
+cat << EOF
+XULRunner is a Mozilla runtime package that can be used to bootstrap XUL+XPCOM
+applications that are as rich as Firefox and Thunderbird. It will provide
+mechanisms for installing, upgrading, and uninstalling these applications.
+
+XULRunner will also provide libxul, a solution which allows the embedding of
+Mozilla technologies in other projects and products.
+EOF
diff --git a/web/xulrunner5/POST_INSTALL b/web/xulrunner5/POST_INSTALL
new file mode 100644
index 0000000..178132e
--- /dev/null
+++ b/web/xulrunner5/POST_INSTALL
@@ -0,0 +1,24 @@
+OLD_VER="`get_module_config OLD_VER`"
+NEW_VER="`get_module_config NEW_VER`"
+XULRUNNER_HOME=/usr
+XUL_LIBDIR=xulrunner-$NEW_VER
+
+if [ ! -z "$OLD_VER" ] && [ "$OLD_VER" != "$NEW_VER" ] ; then
+  for old_version in $OLD_VER
+  do
+    rm -rf /usr/lib/xulrunner-$old_version
+    rm -rf /usr/lib/xulrunner-devel-$old_version
+    rm -rf /usr/include/xulrunner-$old_version
+    rm -rf /usr/share/idl/xulrunner-$old_version
+    rm -rf /usr/lib/gcc/i686-pc-linux-gnu/4.5.2/include-fixed/xulrunner-$old_version
+  done
+fi
+
+# Old xulrunner cleanup
+rm -rf /usr/lib/xulrunner-1*
+rm -rf /usr/lib/xulrunner-devel-1*
+rm -rf /usr/include/xulrunner-1*
+rm -rf /usr/share/idl/xulrunner-1*
+rm -rf /usr/lib/gcc/i686-pc-linux-gnu/4.5.2/include-fixed/xulrunner-1*
+ 
+unset_module_config OLD_VER
diff --git a/web/xulrunner5/POST_REMOVE b/web/xulrunner5/POST_REMOVE
new file mode 100644
index 0000000..e0ea243
--- /dev/null
+++ b/web/xulrunner5/POST_REMOVE
@@ -0,0 +1 @@
+rm -rf /usr/{include,lib,share/idl}/xulrunner-*


More information about the Lunar-commits mailing list