[Lunar-commits] <crater> xulrunner2: move it frm moonbase/zdeprecated
Florin Braescu
florin at lunar-linux.org
Wed Jan 11 18:17:56 CET 2012
commit ef9daac564766f4df5746fcbae9b35eec2d8a47c
Author: Florin Braescu <florin at lunar-linux.org>
Date: Wed Jan 11 18:17:56 2012 +0100
xulrunner2: move it frm moonbase/zdeprecated
---
web/xulrunner2/BUILD | 48 +++++++++++++++++++++++++++++++++++++++++++
web/xulrunner2/CONFLICTS | 2 +
web/xulrunner2/DEPENDS | 8 +++++++
web/xulrunner2/DETAILS | 21 ++++++++++++++++++
web/xulrunner2/POST_INSTALL | 24 +++++++++++++++++++++
web/xulrunner2/POST_REMOVE | 1 +
6 files changed, 104 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..476d8d9
--- /dev/null
+++ b/web/xulrunner2/CONFLICTS
@@ -0,0 +1,2 @@
+conflicts xulrunner
+conflicts xulrunner5
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