| From | Sent On | Attachments |
|---|---|---|
| Zak Johnson | Aug 7, 2002 7:52 pm |
| Subject: | ports/41434: New port: www/light: another Mozilla-based browser | |
|---|---|---|
| From: | Zak Johnson (zakj...@nox.cx) | |
| Date: | Aug 7, 2002 7:52:27 pm | |
| List: | org.freebsd.freebsd-ports | |
Number: 41434 Category: ports Synopsis: New port: www/light: another Mozilla-based browser Confidential: no Severity: non-critical Priority: medium Responsible: freebsd-ports State: open Quarter: Keywords: Date-Required: Class: change-request Submitter-Id: current-users Arrival-Date: Wed Aug 07 20:00:03 PDT 2002 Closed-Date: Last-Modified: Originator: Zak Johnson Release: FreeBSD 4.6.1-RELEASE-p5 i386 Organization: Environment:
System: FreeBSD opiate.nox.cx 4.6.1-RELEASE-p5 FreeBSD 4.6.1-RELEASE-p5 #4: Thu
Aug 1 00:21:44 EDT 2002 ro...@opiate.nox.cx:/usr/obj/usr/src/sys/GENERIC i386
Description:
This is a port of light, a very lightweight front-end to the Mozilla HTML rendering engine. While most projects of this nature seem to be trying to duplicate Mozilla using the GTK+ interface, the primary goal of this project is to provide a quick and easy-to-use browser. It uses the same shortcut keys as Netscape 4.x.
WWW: http://www.ne.jp/asahi/linux/timecop/#light
How-To-Repeat:
Fix:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# light
# light/pkg-comment
# light/distinfo
# light/pkg-message
# light/files
# light/files/patch-aa
# light/files/patch-ab
# light/files/patch-ac
# light/pkg-descr
# light/Makefile
# light/pkg-plist
#
echo c - light
mkdir -p light > /dev/null 2>&1
echo x - light/pkg-comment
sed 's/^X//' >light/pkg-comment << 'END-of-light/pkg-comment'
XA lightweight web browser based on Mozilla and GTK
END-of-light/pkg-comment
echo x - light/distinfo
sed 's/^X//' >light/distinfo << 'END-of-light/distinfo'
XMD5 (light-1.4.12.tar.bz2) = b83da71a3504cbb7812d0b56bf709cd9
END-of-light/distinfo
echo x - light/pkg-message
sed 's/^X//' >light/pkg-message << 'END-of-light/pkg-message'
XYou must add %%PREFIX%%/lib/mozilla-embedded to your LD_LIBRARY_PATH in
Xorder to run light.
END-of-light/pkg-message
echo c - light/files
mkdir -p light/files > /dev/null 2>&1
echo x - light/files/patch-aa
sed 's/^X//' >light/files/patch-aa << 'END-of-light/files/patch-aa'
X--- src/Makefile.in.orig Wed Aug 7 21:37:52 2002
X+++ src/Makefile.in Wed Aug 7 21:39:43 2002
X@@ -10,9 +10,10 @@
X OPT = -O3
X WARN = -Wall
X MOZ_CFLAGS = $(OPT) $(WARN) @PTHREAD_CFLAGS@
X-GTK_INCLUDE = $(shell gtk-config --cflags)
X-GTK_LIBS = $(shell gtk-config --libs)
X-MOZ_INCLUDE = @MOZILLA_INCLUDES@
X+GTK_INCLUDE = `${GTK_CONFIG} --cflags`
X+GTK_LIBS = `${GTK_CONFIG} --libs`
X+MOZ_INCLUDE = @MOZILLA_INCLUDES@ \
X+ `for i in ${PREFIX}/include/mozilla/*; do test -d $$i && echo -I$$i; done`
X MOZ_LIBS = @MOZILLA_LIBS@
X
X CFLAGS = $(MOZ_CFLAGS) $(GTK_INCLUDE) $(MOZ_INCLUDE) @DEFS@
END-of-light/files/patch-aa
echo x - light/files/patch-ab
sed 's/^X//' >light/files/patch-ab << 'END-of-light/files/patch-ab'
X--- src/main.c.orig Fri Jun 7 22:06:52 2002
X+++ src/main.c Wed Aug 7 22:30:55 2002
X@@ -2,7 +2,6 @@
X #include <gtkmozembed.h>
X #include <stdio.h>
X #include <stdlib.h>
X-#include <getopt.h>
X #include <unistd.h>
X #include <signal.h>
X #include <sys/types.h>
X@@ -32,6 +31,7 @@
X
X /* edit as necessary */
X static char *searchpath[] = {
X+ "/usr/X11R6/lib/mozilla-embedded", /* FreeBSD */
X "/usr/local/mozilla", /* me */
X "/usr/lib/mozilla", /* monkey-spank */
X "/opt/mozilla", /* roothat */
END-of-light/files/patch-ab
echo x - light/files/patch-ac
sed 's/^X//' >light/files/patch-ac << 'END-of-light/files/patch-ac'
X--- src/moz_cb.c.orig Wed Aug 7 21:34:39 2002
X+++ src/moz_cb.c Wed Aug 7 21:33:02 2002
X@@ -420,7 +420,9 @@
X /* get the mouse event info */
X info = g_new0(MouseEventInfo, 1);
X rv = moz_mouse_info(event, info, browser);
X+ /*
X g_print("Got %d from moz_mouse_info\n", rv);
X+ */
X
X switch (info->button) {
X case 2:
END-of-light/files/patch-ac
echo x - light/pkg-descr
sed 's/^X//' >light/pkg-descr << 'END-of-light/pkg-descr'
XThis is a port of light, a very lightweight front-end to the Mozilla HTML
Xrendering engine. While most projects of this nature seem to be trying to
Xduplicate Mozilla using the GTK+ interface, the primary goal of this project is
Xto provide a quick and easy-to-use browser. It uses the same shortcut keys as
XNetscape 4.x.
X
XWWW: http://www.ne.jp/asahi/linux/timecop/#light
END-of-light/pkg-descr
echo x - light/Makefile
sed 's/^X//' >light/Makefile << 'END-of-light/Makefile'
X# New ports collection makefile for: light
X# Date created: 1 August 2002
X# Whom: zakj...@nox.cx
X#
X# $FreeBSD$
X#
X
XPORTNAME= light
XPORTVERSION= 1.4.12
XCATEGORIES= www
XMASTER_SITES= http://www.ne.jp/asahi/linux/timecop/software/
X
XMAINTAINER= zakj...@nox.cx
X
XBUILD_DEPENDS=
${X11BASE}/include/mozilla/gtkembedmoz/gtkmozembed.h:${PORTSDIR}/www/mozilla-headers
\
X
${X11BASE}/lib/mozilla-embedded/libgtkembedmoz.so:${PORTSDIR}/www/mozilla-embedded
XRUN_DEPENDS=
${X11BASE}/lib/mozilla-embedded/libgtkembedmoz.so:${PORTSDIR}/www/mozilla-embedded
X
XGNU_CONFIGURE= yes
XCONFIGURE_ARGS= --with-mozilla-includes=${PREFIX}/include/mozilla \
X --with-mozilla-libs=${PREFIX}/lib/mozilla-embedded
XUSE_BZIP2= yes
XUSE_GTK= yes
XUSE_X_PREFIX= yes
X
Xdo-install:
X @${INSTALL_PROGRAM} ${WRKSRC}/src/light ${PREFIX}/bin
X
Xpost-install:
X @${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-light/Makefile
echo x - light/pkg-plist
sed 's/^X//' >light/pkg-plist << 'END-of-light/pkg-plist'
Xbin/light
END-of-light/pkg-plist
exit
Release-Note: Audit-Trail: Unformatted:
To Unsubscribe: send mail to majo...@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message





