aboutsummaryrefslogtreecommitdiffstats
path: root/www/edbrowse
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2014-01-18 01:08:41 +0800
committerdanilo <danilo@FreeBSD.org>2014-01-18 01:08:41 +0800
commit93a218ec0011b1fc6dded8225025c299a7423032 (patch)
treea40de9867ca2127377df2294802a0a43c49e3f16 /www/edbrowse
parenta8ce2316d8296fbe2f0d0aba24eb7f37eaacb04f (diff)
downloadfreebsd-ports-gnome-93a218ec0011b1fc6dded8225025c299a7423032.tar.gz
freebsd-ports-gnome-93a218ec0011b1fc6dded8225025c299a7423032.tar.zst
freebsd-ports-gnome-93a218ec0011b1fc6dded8225025c299a7423032.zip
- Add new port www/edbrowse
Edbrowse is an editor, a web browser, and a mail client that is 100% text based. The interface is similar to /bin/ed, though there are many more features, such as editing multiple files simultaneously, and rendering html. PR: ports/185590 Submitted by: David Vionnet <david.vionnet@vmailbox.org>
Diffstat (limited to 'www/edbrowse')
-rw-r--r--www/edbrowse/Makefile43
-rw-r--r--www/edbrowse/distinfo2
-rw-r--r--www/edbrowse/files/patch-doc-man-edbrowse-debian.149
-rw-r--r--www/edbrowse/files/patch-src-makefile.bsd18
-rw-r--r--www/edbrowse/pkg-descr12
-rw-r--r--www/edbrowse/pkg-plist13
6 files changed, 137 insertions, 0 deletions
diff --git a/www/edbrowse/Makefile b/www/edbrowse/Makefile
new file mode 100644
index 000000000000..e347f161736a
--- /dev/null
+++ b/www/edbrowse/Makefile
@@ -0,0 +1,43 @@
+# $FreeBSD$
+
+PORTNAME= edbrowse
+PORTVERSION= 3.4.10
+CATEGORIES= www editors
+MASTER_SITES= http://the-brannons.com/edbrowse/ \
+ http://rithmomachia.org/edbrowse/
+
+MAINTAINER= david.vionnet@vmailbox.org
+COMMENT= Line-oriented Web browser and text editor
+
+LICENSE= GPLv2
+
+BUILD_DEPENDS= ${UNZIP_CMD}:${PORTSDIR}/archivers/unzip
+LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre \
+ libmozjs185.so:${PORTSDIR}/lang/spidermonkey185 \
+ libcurl.so:${PORTSDIR}/ftp/curl
+
+USE_ZIP= yes
+USE_OPENSSL= yes
+USES= readline
+
+OPTIONS_DEFINE= DOCS
+
+WRKBASE= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+WRKSRC= ${WRKBASE}/src
+
+MAKEFILE= makefile.bsd
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/edbrowse ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKBASE}/doc/man-edbrowse-debian.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/edbrowse.1
+
+post-install:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${WRKBASE}/CHANGES ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${WRKBASE}/COPYING ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${WRKBASE}/README ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKBASE}/doc && \
+ ${FIND} . \( -name setup.ebrc -or -name "man-edbrowse*" \) -delete && \
+ ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
+
+.include <bsd.port.mk>
diff --git a/www/edbrowse/distinfo b/www/edbrowse/distinfo
new file mode 100644
index 000000000000..59da1ef49c96
--- /dev/null
+++ b/www/edbrowse/distinfo
@@ -0,0 +1,2 @@
+SHA256 (edbrowse-3.4.10.zip) = 58089879c31b571792f76fc53c41374fcbe8386ea82fe451737ae72e8a78e826
+SIZE (edbrowse-3.4.10.zip) = 737798
diff --git a/www/edbrowse/files/patch-doc-man-edbrowse-debian.1 b/www/edbrowse/files/patch-doc-man-edbrowse-debian.1
new file mode 100644
index 000000000000..09765a4416f5
--- /dev/null
+++ b/www/edbrowse/files/patch-doc-man-edbrowse-debian.1
@@ -0,0 +1,49 @@
+--- ../doc/man-edbrowse-debian.1.orig 2013-12-24 02:21:14.000000000 +0100
++++ ../doc/man-edbrowse-debian.1 2014-01-08 08:11:24.295380172 +0100
+@@ -30,22 +30,17 @@
+ .I " ..."
+ .LP
+ .SH DESCRIPTION
+-(This manual page was written for the Debian GNU/Linux distribution
+-because the original program does not have a man page. Instead the
+-program is documented in detail in the HTML documentation that
+-accompanies the program; see below.)
+ .PP
+ .BR edbrowse
+ is a line-oriented text editor very similar to
+-.BR ed (1),
++.BR ed (1).
+ It is used to create, display, modify and otherwise manipulate text
+ files.
+ .PP
+ In addition
+ .BR edbrowse
+-can be used to display web pages and edit the
+-contents of these pages. It supports the use of forms and Javascript in
+-web pages.
++can be used to display web pages and edit their
++content. It supports the use of forms and JavaScript.
+ .PP
+ If
+ .BR edbrowse
+@@ -70,9 +65,9 @@
+ browsing functions can be found in the HTML documentation.
+ .PP
+ .SH EXAMPLES
+-To read the HTML documentation on a Debian system you can do
++To read the HTML documentation you can do:
+ .IP
+-.BR "edbrowse file:///usr/share/doc/edbrowse/edbdoc.html"
++.BR "edbrowse /usr/local/share/doc/edbrowse/usersguide.html"
+ .PP
+ To read (say) 20 lines of the buffer at a time starting from
+ the top use the command
+@@ -155,7 +150,7 @@
+ .IR pcrepattern (3).
+ .PP
+ The
+-.URL "/usr/share/doc/edbrowse/edbdoc.html" "HTML documentation" " "
++.URL "/usr/local/share/doc/edbrowse/usersguide.html" "HTML documentation" " "
+ provides greater detail about the program.
+ .PP
+ .SH AUTHORS
diff --git a/www/edbrowse/files/patch-src-makefile.bsd b/www/edbrowse/files/patch-src-makefile.bsd
new file mode 100644
index 000000000000..6b5b73661fa8
--- /dev/null
+++ b/www/edbrowse/files/patch-src-makefile.bsd
@@ -0,0 +1,18 @@
+--- makefile.bsd.orig 2014-01-08 00:47:50.667199813 +0100
++++ makefile.bsd 2014-01-08 00:50:43.955208907 +0100
+@@ -2,13 +2,13 @@
+
+ # Flags for compilation.
+ # I know - I set the Linux flag here, but it seems to work.
+-CFLAGS = -I/usr/local/include -I/usr/local/include/js -DSYSBSD -DXP_UNIX
++CFLAGS = -I${LOCALBASE}/include -I${LOCALBASE}/include/js -DSYSBSD -DXP_UNIX
+
+ # Tell the dynamic linker to look in the pkg area.
+ LFLAGS = -s -Wl,--rpath -Wl,/usr/pkg/lib
+
+ # Libraries for edbrowse.
+-LIBS = -L /usr/local/lib -lpcre -lm -lssl -ljs -lcrypto -lpthread -lcurl
++LIBS = -L ${LOCALBASE}/lib -lpcre -lm -lssl -lmozjs185 -lcrypto -pthread -lcurl -lreadline
+
+ # Make the dynamically linked executable program by default.
+ # Edbrowse executable.
diff --git a/www/edbrowse/pkg-descr b/www/edbrowse/pkg-descr
new file mode 100644
index 000000000000..b227ea7ca202
--- /dev/null
+++ b/www/edbrowse/pkg-descr
@@ -0,0 +1,12 @@
+Edbrowse is an editor, a web browser, and a mail client that is 100%
+text based. The interface is similar to /bin/ed, though there are many
+more features, such as editing multiple files simultaneously, and
+rendering html.
+
+This program was originally written for blind users, but many sighted
+users have taken advantage of its unique scripting capabilities, which
+can be found nowhere else. A batch job, or cron job, can access web
+pages on the internet, submit forms, and send email, with no human
+intervention whatsoever.
+
+WWW: http://the-brannons.com/edbrowse/
diff --git a/www/edbrowse/pkg-plist b/www/edbrowse/pkg-plist
new file mode 100644
index 000000000000..b6f49b60c52b
--- /dev/null
+++ b/www/edbrowse/pkg-plist
@@ -0,0 +1,13 @@
+bin/edbrowse
+man/man1/edbrowse.1.gz
+%%PORTDOCS%%%%DOCSDIR%%/CHANGES
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/philosophy.html
+%%PORTDOCS%%%%DOCSDIR%%/philosophy_fr.html
+%%PORTDOCS%%%%DOCSDIR%%/sample.ebrc
+%%PORTDOCS%%%%DOCSDIR%%/sample_fr.ebrc
+%%PORTDOCS%%%%DOCSDIR%%/ssl-certs
+%%PORTDOCS%%%%DOCSDIR%%/usersguide.html
+%%PORTDOCS%%%%DOCSDIR%%/usersguide_fr.html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%