diff -u gnome-web-photo-0.5/debian/changelog gnome-web-photo-0.5/debian/changelog --- gnome-web-photo-0.5/debian/changelog +++ gnome-web-photo-0.5/debian/changelog @@ -1,3 +1,10 @@ +gnome-web-photo (0.5-0ubuntu3) jaunty; urgency=low + + * Create a launcher script to allow it to load xulrunner. + * debian/control: make it depend on xulrunner-1.9. + + -- Emilio López Tue, 17 Mar 2009 16:19:46 -0300 + gnome-web-photo (0.5-0ubuntu2) jaunty; urgency=low * no changes upload for nss/nspr SONAME mini-transition diff -u gnome-web-photo-0.5/debian/control gnome-web-photo-0.5/debian/control --- gnome-web-photo-0.5/debian/control +++ gnome-web-photo-0.5/debian/control @@ -8,7 +8,7 @@ Package: gnome-web-photo Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends} +Depends: ${shlibs:Depends}, ${misc:Depends}, xulrunner-1.9 Description: tool to generate full-size image files from webpages GNOME Web Photographer is a tool to generate full-size image files and thumbnails from HTML files and web pages. diff -u gnome-web-photo-0.5/debian/rules gnome-web-photo-0.5/debian/rules --- gnome-web-photo-0.5/debian/rules +++ gnome-web-photo-0.5/debian/rules @@ -7,0 +8,3 @@ + +install/gnome-web-photo:: + mv $(CURDIR)/debian/gnome-web-photo/usr/bin/gnome-web-photo $(CURDIR)/debian/gnome-web-photo/usr/bin/gnome-web-photo.real only in patch2: unchanged: --- gnome-web-photo-0.5.orig/debian/gnome-web-photo.install +++ gnome-web-photo-0.5/debian/gnome-web-photo.install @@ -0,0 +1 @@ +debian/scripts/gnome-web-photo usr/bin only in patch2: unchanged: --- gnome-web-photo-0.5.orig/debian/scripts/gnome-web-photo +++ gnome-web-photo-0.5/debian/scripts/gnome-web-photo @@ -0,0 +1,29 @@ +#!/bin/bash + +# gnome-web-photo launcher, helps the application choose a xulrunner +# as Ubuntu doesn't include xulrunner on normal library locations + +# Author: Emilio López +# License: GPLv2 or later + +# Choose a xulrunner +MOZLIBPATH="NONE" +for possiblepath in /usr/lib/xulrunner-1.9.0*; do + if [ -d $possiblepath ]; then + MOZLIBPATH=$possiblepath + fi +done + +if [ "$MOZLIBPATH" == "NONE" ] ; then + #No 1.9 xulrunner, take any other + for possiblepath in /usr/lib/xulrunner-*; do + if [ -d $possiblepath ]; then + MOZLIBPATH=$possiblepath + fi + done + +fi + +#Launch gnome-web-photo +LD_LIBRARY_PATH="$MOZLIBPATH:$LD_LIBRARY_PATH" \ +/usr/bin/gnome-web-photo.real "$@"