Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=8c9899c9238019e570c892dae847dce6ff356d9e

commit 8c9899c9238019e570c892dae847dce6ff356d9e
Author: Devil505 <devil505li...@gmail.com>
Date:   Sat Jan 30 16:58:58 2010 +0100

sunbird-0.9-1-i686
* new package
* added patches
* added custom mozconfig file
* closes request #3377

diff --git a/source/xapps-extra/sunbird/mozconfig 
b/source/xapps-extra/sunbird/mozconfig
new file mode 100644
index 0000000..6ebdc22
--- /dev/null
+++ b/source/xapps-extra/sunbird/mozconfig
@@ -0,0 +1,15 @@
+. $topsrcdir/calendar/sunbird/config/mozconfig
+
+ac_add_options --disable-debug
+ac_add_options --disable-tests
+ac_add_options --disable-installer
+ac_add_options --enable-default-toolkit=gtk2
+ac_add_options --with-system-nss
+ac_add_options --with-system-nspr
+ac_add_options --prefix=/usr
+ac_add_options --with-default-mozilla-five-home=/usr/lib/sunbird
+ac_add_options --enable-system-cairo
+ac_add_options --with-system-jpeg
+ac_add_options --with-system-zlib
+ac_add_options --with-system-png
+
diff --git a/source/xapps-extra/sunbird/sunbird-locale.patch 
b/source/xapps-extra/sunbird/sunbird-locale.patch
new file mode 100644
index 0000000..a2399b5
--- /dev/null
+++ b/source/xapps-extra/sunbird/sunbird-locale.patch
@@ -0,0 +1,27 @@
+diff -Naur mozilla-old/calendar/sunbird/app/mozilla.in 
mozilla/calendar/sunbird/app/mozilla.in
+--- mozilla-old/calendar/sunbird/app/mozilla.in        2008-01-11 
13:20:02.000000000 +1000
++++ mozilla/calendar/sunbird/app/mozilla.in    2008-09-24 20:37:12.000000000 
+1000
+@@ -250,14 +250,21 @@
+
+ export MRE_HOME
+
++## Get system language
++SHORTLOCALE=$(echo $LANG | sed "s|_\([^.]*\).*||g")
++LONGLOCALE=$(echo $LANG | sed "s|_\([^.]*\).*|-\1|g")
++LOCALEPARAM=""
++[ -f ${moz_libdir}/chrome/${SHORTLOCALE}.jar ] && LOCALEPARAM="-UILocale 
${SHORTLOCALE}"
++[ -f ${moz_libdir}/chrome/${LONGLOCALE}.jar ] && LOCALEPARAM="-UILocale 
${LONGLOCALE}"
++
+ ## Start addon scripts
+ moz_pis_startstop_scripts "start"
+
+ if [ $debugging = 1 ]
+ then
+-  echo $dist_bin/run-mozilla.sh $script_args $dist_bin/$MOZILLA_BIN "$@"
++  echo $dist_bin/run-mozilla.sh $script_args $dist_bin/$MOZILLA_BIN "$@" 
${LOCALEPARAM}
+ fi
+-"$dist_bin/run-mozilla.sh" $script_args "$dist_bin/$MOZILLA_BIN" "$@"
++"$dist_bin/run-mozilla.sh" $script_args "$dist_bin/$MOZILLA_BIN" "$@" 
${LOCALEPARAM}
+ exitcode=$?
+
+ ## Stop addon scripts
diff --git a/source/xapps-extra/sunbird/xulrunner-elif.patch 
b/source/xapps-extra/sunbird/xulrunner-elif.patch
new file mode 100644
index 0000000..f1f4977
--- /dev/null
+++ b/source/xapps-extra/sunbird/xulrunner-elif.patch
@@ -0,0 +1,12 @@
+diff -up mozilla/toolkit/xre/nsAppRunner.cpp.old 
mozilla/toolkit/xre/nsAppRunner.cpp
+--- mozilla/toolkit/xre/nsAppRunner.cpp.old    2008-12-10 20:07:01.000000000 
+0100
++++ mozilla/toolkit/xre/nsAppRunner.cpp        2009-02-27 17:17:59.000000000 
+0100
+@@ -1475,7 +1475,7 @@ XRE_GetBinaryPath(const char* argv0, nsI
+   if (NS_FAILED(rv))
+     return rv;
+
+-#elif
++#else
+ #error Oops, you need platform-specific code here
+ #endif
+
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to