[Lunar-commits] <moonbase> xulrunner2: new module - 2.0 release of xulrunner - firefox4 based
Zbigniew Luszpinski
zbiggy at lunar-linux.org
Sun May 8 04:13:21 CEST 2011
commit b6d4df0a362be14a4d00ce0fbfb67fa227350d7d
Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
Date: Sun May 8 04:13:21 2011 +0200
xulrunner2: new module - 2.0 release of xulrunner - firefox4 based
---
web/xulrunner2/BUILD | 48 +++++++++++++++++++++++++++++++++++++++++++
web/xulrunner2/CONFLICTS | 1 +
web/xulrunner2/DEPENDS | 8 +++++++
web/xulrunner2/DETAILS | 21 ++++++++++++++++++
web/xulrunner2/POST_INSTALL | 24 +++++++++++++++++++++
web/xulrunner2/POST_REMOVE | 1 +
6 files changed, 103 insertions(+), 0 deletions(-)
diff --git a/web/xulrunner2/BUILD b/web/xulrunner2/BUILD
new file mode 100644
index 0000000..7b29359
--- /dev/null
+++ b/web/xulrunner2/BUILD
@@ -0,0 +1,48 @@
+(
+
+ 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/xulrunner2/CONFLICTS b/web/xulrunner2/CONFLICTS
new file mode 100644
index 0000000..fc92674
--- /dev/null
+++ b/web/xulrunner2/CONFLICTS
@@ -0,0 +1 @@
+conflicts xulrunner
diff --git a/web/xulrunner2/DEPENDS b/web/xulrunner2/DEPENDS
new file mode 100644
index 0000000..2af156a
--- /dev/null
+++ b/web/xulrunner2/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/xulrunner2/DETAILS b/web/xulrunner2/DETAILS
new file mode 100644
index 0000000..5e1ef94
--- /dev/null
+++ b/web/xulrunner2/DETAILS
@@ -0,0 +1,21 @@
+ MODULE=xulrunner2
+ VERSION=2.0
+ SOURCE=xulrunner-$VERSION.source.tar.bz2
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/mozilla-2.0
+ 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
+ SOURCE_VFY=sha1:45ce820989e0bb7b5758f94c087f21d4190c2441
+ WEB_SITE=http://www.mozilla.org
+ ENTERED=20080624
+ UPDATED=20110428
+ 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/xulrunner2/POST_INSTALL b/web/xulrunner2/POST_INSTALL
new file mode 100644
index 0000000..178132e
--- /dev/null
+++ b/web/xulrunner2/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/xulrunner2/POST_REMOVE b/web/xulrunner2/POST_REMOVE
new file mode 100644
index 0000000..e0ea243
--- /dev/null
+++ b/web/xulrunner2/POST_REMOVE
@@ -0,0 +1 @@
+rm -rf /usr/{include,lib,share/idl}/xulrunner-*
More information about the Lunar-commits
mailing list