Import edbrowse a command-line editor / web browser

OK afresh1@
This commit is contained in:
abieber 2019-05-13 22:11:20 +00:00
parent a88cc65212
commit 4437965eb7
6 changed files with 101 additions and 0 deletions

34
www/edbrowse/Makefile Normal file
View File

@ -0,0 +1,34 @@
# $OpenBSD: Makefile,v 1.1.1.1 2019/05/13 22:11:20 abieber Exp $
COMMENT = command-line editor and web browser
DISTNAME = edbrowse-3.7.4
CATEGORIES = www
MAINTAINER = Aaron Bieber <abieber@openbsd.org>
HOMEPAGE = http://edbrowse.org/
# GPL
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c curl duktape m pcre readline tidy
MASTER_SITES = https://deftly.net/dist/
MODULES = devel/cmake
CONFIGURE_ARGS += -DCMAKE_INSTALL_PREFIX:Path=${PREFIX}
LIB_DEPENDS = devel/pcre \
lang/duktape \
net/curl \
www/tidy
SUBST_VARS += PREFIX
pre-configure:
${SUBST_CMD} ${WRKDIST}/CMakeLists.txt
.include <bsd.port.mk>

2
www/edbrowse/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (edbrowse-3.7.4.tar.gz) = t55kF8EXDJbvaJaMM9WFcl8PLSeFnj/oB8mAqcM+pxk=
SIZE (edbrowse-3.7.4.tar.gz) = 765794

View File

@ -0,0 +1,34 @@
$OpenBSD: patch-CMakeLists_txt,v 1.1.1.1 2019/05/13 22:11:20 abieber Exp $
Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -238,16 +238,16 @@ if (UNIX)
FILE (GLOB UnixManFile "doc/man-edbrowse-debian.1")
set (UnixManDir "/usr/share/man/man1")
set (UnixDocDir "/usr/share/doc/edbrowse")
- if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
+ if (${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" OR ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
FILE (GLOB UnixManFile "doc/man-edbrowse-freebsd.1")
- set (UnixManDir "/usr/local/man/man1")
- set (UnixDocDir "/usr/local/share/doc/edbrowse")
+ set (UnixManDir "${PREFIX}/man/man1")
+ set (UnixDocDir "${PREFIX}/share/doc/edbrowse")
endif()
# copy to build dir
configure_file( ${UnixManFile} ${CMAKE_BINARY_DIR}/edbrowse.1 )
# find 'gzip' - warn if not...
find_program(GZIP_EXE gzip PATHS /bin )
- if (GZIP_EXE)
+ if (GZIP_EXE AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
# gzip it in place
execute_process(COMMAND ${GZIP_EXE} -f "edbrowse.1"
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
@@ -257,6 +257,7 @@ if (UNIX)
install(FILES ${CMAKE_BINARY_DIR}/edbrowse.1.gz DESTINATION ${UnixManDir})
else ()
message(WARNING "Unable to locate 'gzip'! No man page...")
+ install(FILES ${CMAKE_BINARY_DIR}/edbrowse.1 DESTINATION ${UnixManDir})
endif ()
# install user guide
install(FILES doc/usersguide.html doc/usersguide_fr.html doc/sample.ebrc doc/sample_fr.ebrc doc/sample_it.ebrc DESTINATION ${UnixDocDir})

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-src_http_c,v 1.1.1.1 2019/05/13 22:11:20 abieber Exp $
Index: src/http.c
--- src/http.c.orig
+++ src/http.c
@@ -1554,7 +1554,6 @@ void ebcurl_setError(CURLcode curlret, const char *url
(*fn) (MSG_Timeout);
break;
- case CURLE_PEER_FAILED_VERIFICATION:
case CURLE_SSL_CACERT:
(*fn) (MSG_NoCertify, host);
break;

9
www/edbrowse/pkg/DESCR Normal file
View File

@ -0,0 +1,9 @@
Edbrowse is a combination editor, browser, and 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 the unique scripting capabilities of this program,
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. edbrowse can also tap into databases through odbc. It was primarily
written by Karl Dahlke.

9
www/edbrowse/pkg/PLIST Normal file
View File

@ -0,0 +1,9 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2019/05/13 22:11:20 abieber Exp $
@bin bin/edbrowse
@man man/man1/edbrowse.1
share/doc/edbrowse/
share/doc/edbrowse/sample.ebrc
share/doc/edbrowse/sample_fr.ebrc
share/doc/edbrowse/sample_it.ebrc
share/doc/edbrowse/usersguide.html
share/doc/edbrowse/usersguide_fr.html