[Lunar-commits]
CVS: moonbase/news/liferea BUILD, NONE, 1.1 DEPENDS, 1.1, 1.2
Jon South
striker at lunar-linux.org
Wed Dec 8 23:20:05 UTC 2004
Update of /var/cvs/lunar/moonbase/news/liferea
In directory espresso.foo-projects.org:/tmp/cvs-serv30614
Modified Files:
DEPENDS
Added Files:
BUILD
Log Message:
- Small but evil hack to use Mozilla/Firefox for HTML rendering
- fix optional_depends: libgtkhtml, firefox, or mozilla *is* required or configure fails
--- NEW FILE: BUILD ---
(
# I'll probably go to hell for this hack, but...who cares.
TEMPLINKS="" &&
# Check for mozilla first, do nothing if it's installed, since the
# pkg-config files should be there already...
if ! module_installed mozilla && ! module_installed mozilla-nightly; then
# Check for firefox, symlink the files if they dont already exist
if module_installed firefox; then
for PC in /usr/lib/pkgconfig/firefox-*.pc; do
# s/firefox/mozilla/
SUB="/usr/lib/pkgconfig/mozilla-`echo $PC | cut -d- -f 2`"
# This should catch any previous symlinks and overwrite them
# in the event the user hit ctrl+c in a previous lin
if [ ! -f "$SUB" ]; then
ln -fs $PC $SUB
# Record this for removal later...
TEMPLINKS="$TEMPLINKS $SUB"
fi
done
fi
fi &&
# </magic>
# You _will_ find firefox! I command it!
cat << EOF | patch -p0 &&
--- src/liferea 2004-12-08 16:17:51.000000000 -0600
+++ src/liferea 2004-12-08 16:18:09.000000000 -0600
@@ -42,0 +43 @@
+look_for_mozilla "/usr/lib/firefox*/chrome/comm.jar"
EOF
default_build &&
# Magic clean up.
for MYLINK in $TEMPLINKS; do
rm -f $MYLINK
done
) > $C_FIFO 2>&1
Index: DEPENDS
===================================================================
RCS file: /var/cvs/lunar/moonbase/news/liferea/DEPENDS,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- DEPENDS 24 Apr 2004 16:09:54 -0000 1.1
+++ DEPENDS 8 Dec 2004 23:20:02 -0000 1.2
@@ -1,4 +1,8 @@
depends gtk+-2 &&
depends GConf2 &&
depends libxml2 &&
-optional_depends "libgtkhtml" "" "" "For HTML support"
+depends libgtkhtml &&
+
+optional_depends "firefox" "" "" "For extra HTML rendering plugin" &&
+optional_depends "mozilla" "" "" "For extra HTML rendering plugin"
+
More information about the Lunar-commits
mailing list