pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
www/edbrowse: Update edbrowse to version 3.8.19
Module Name: pkgsrc-wip
Committed By: adr <adr%sdf.org@localhost>
Pushed By: adr
Date: Sun Nov 29 13:04:36 2026 +0000
Changeset: 3d97e8e448d88a70e0810b17a02ddff055892b10
Modified Files:
Makefile
Added Files:
edbrowse/COMMIT_MSG
edbrowse/DESCR
edbrowse/Makefile
edbrowse/PLIST
edbrowse/distinfo
edbrowse/patches/patch-src_html.c
Log Message:
www/edbrowse: Update edbrowse to version 3.8.19
Upstream changes:
3.8.19
<div id=xyz> creates a link window.xyz to the div element,
iff that element is linked into the tree, and the id is not a reserved word,
and that name isn't being used as a variable for some other purpose.
Use this feature for getElementById, it satisfies it 99.5% of the time.
Add a test that uses edbrowse tracing, along with comments to describe the process.
Reverse the css shorthand, so that setting margin sets its four
constituents, and getting margin puts those four pieces back into one string.
Move the node invisible test into C, which makes rendering faster.
Move the node css injection test into C, which makes rendering faster.
Also, we can get rid of a truckload of confusing code in css,
that tried to anticipate these injections, it's much easier to determine
them at render time.
Make NamedNodeMap a proper class with the correct methods,
and use it in the attribute system.
make NodeList a proper class and wrap it around childNodes.
Make DOMTokenList a proper class and use it in the classList system.
Move most of the DOM classes from shared.js into startwindow.js,
so that users can muck with those classes and their prototypes if they
feel they must. Modernize the classses along the way.
Create many self-contained tests in the tests directory, and a runscript
to run them.
Implement assigned css properties in an array like structure.
Implement getPropertyValue, setProperty, removeProperty.
shadowroot, and styles wholly contained within a shadowRoot.
custom element connectedCallback and disconnectedCallback functions.
:r (reply) feature in irc.
Most of the Range class.
Arguments that are passed to the callback function on setTimeout and setInterval.
3.8.18
The if (input field) command to bring a textarea inline.
Plugin renders a page through headless chrome,
then hands the html back to edbrowse.
Bu and Bd, go up to the top or down to the bottom of a block
that is defined by indentation. This is for python programming.
build proper classes instead of just functions that stand in as classes.
These classes extend other classes, as directed by the DOM.
class HTMLElement extends Element extends Node etc.
Implement HTMLCollection, and let the getElements functions use these
collections to present live data to the user.
Restructure selectors and options to be more dynamic, as js changes options underneat us.
3.8.17
Fix some makefile issues, and warnings across different compilers.
Support custom Elements and the CustomElementRegistry.
Make html parsing more efficient, so it isn't quadratic in a file
containing thousands of hyperlinks, which is not unusual.
Customize the text decorationmarkup symbols in your config file.
tdmarks = **+@__~~
Support aria heading attributes:
role=heading aria-level=1 presents like h1
replace the earlier deminimizer, which has become out of date, with
https://github.com/beautifier/js-beautify
Basic support for javascript modules.
3.8.16
Use strict js in shared.js and startwindow.js
Append .html or .txt after running a rendering plugin.
Put standard plugins in the plugins directory, for the user.
Optimize the performance of the http cache.
the a:text c:text and i:text commands.
Expand variables in the prompt string.
Support placing the edbrowse config file at $XDG_CONFIG_HOME/edbrowse/ebrc.
We still fall back to $HOME/.ebrc if it's not there and use $HOME/.ebrc to
create the initial file.
include = relative-path now taken relative to the invoking config file,
like cpp and m4 and everything else in unix.
include = directory, include all files in that directory.
Download css files in parallel. Like the javascript files.
Subject to the jsbg flag.
More secure handling of temp files; there's no need to manually add the sticky
bit to a custom directory any more.
Mutation observers call their functions as microtasks.
Run html scripts (not deferred or async) when you see them, not after browse.
Implement some of the css shorthand properties, such as margin.
Transliterate <em>, and other tags, into concise punctuation
that indicates the meaning of the tag.
Implement <details> open and close.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3d97e8e448d88a70e0810b17a02ddff055892b10
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
edbrowse/COMMIT_MSG | 126 ++++++++++++++++++++++++++++++++++++++
edbrowse/DESCR | 4 ++
edbrowse/Makefile | 58 ++++++++++++++++++
edbrowse/PLIST | 5 ++
edbrowse/distinfo | 6 ++
edbrowse/patches/patch-src_html.c | 16 +++++
7 files changed, 216 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 532a512358..2f963635c7 100644
--- a/Makefile
+++ b/Makefile
@@ -845,6 +845,7 @@ SUBDIR+= eclipse
SUBDIR+= ecrire
SUBDIR+= edb-debugger
SUBDIR+= edb-debugger-git
+SUBDIR+= edbrowse
SUBDIR+= ede21
SUBDIR+= edelib21
SUBDIR+= edencommon
diff --git a/edbrowse/COMMIT_MSG b/edbrowse/COMMIT_MSG
new file mode 100644
index 0000000000..8b83e65811
--- /dev/null
+++ b/edbrowse/COMMIT_MSG
@@ -0,0 +1,126 @@
+www/edbrowse: Update edbrowse to version 3.8.15
+
+Update prepared in wip by adr
+
+3.8.19
+
+<div id=xyz> creates a link window.xyz to the div element,
+iff that element is linked into the tree, and the id is not a reserved word,
+and that name isn't being used as a variable for some other purpose.
+Use this feature for getElementById, it satisfies it 99.5% of the time.
+
+Add a test that uses edbrowse tracing, along with comments to describe the process.
+
+Reverse the css shorthand, so that setting margin sets its four
+constituents, and getting margin puts those four pieces back into one string.
+
+Move the node invisible test into C, which makes rendering faster.
+Move the node css injection test into C, which makes rendering faster.
+Also, we can get rid of a truckload of confusing code in css,
+that tried to anticipate these injections, it's much easier to determine
+them at render time.
+
+Make NamedNodeMap a proper class with the correct methods,
+and use it in the attribute system.
+
+make NodeList a proper class and wrap it around childNodes.
+
+Make DOMTokenList a proper class and use it in the classList system.
+
+Move most of the DOM classes from shared.js into startwindow.js,
+so that users can muck with those classes and their prototypes if they
+feel they must. Modernize the classses along the way.
+
+Create many self-contained tests in the tests directory, and a runscript
+to run them.
+
+Implement assigned css properties in an array like structure.
+Implement getPropertyValue, setProperty, removeProperty.
+
+shadowroot, and styles wholly contained within a shadowRoot.
+
+custom element connectedCallback and disconnectedCallback functions.
+
+:r (reply) feature in irc.
+
+Most of the Range class.
+
+Arguments that are passed to the callback function on setTimeout and setInterval.
+
+3.8.18
+
+The if (input field) command to bring a textarea inline.
+
+Plugin renders a page through headless chrome,
+then hands the html back to edbrowse.
+
+Bu and Bd, go up to the top or down to the bottom of a block
+that is defined by indentation. This is for python programming.
+
+build proper classes instead of just functions that stand in as classes.
+These classes extend other classes, as directed by the DOM.
+class HTMLElement extends Element extends Node etc.
+
+Implement HTMLCollection, and let the getElements functions use these
+collections to present live data to the user.
+
+Restructure selectors and options to be more dynamic, as js changes options underneat us.
+
+3.8.17
+
+Fix some makefile issues, and warnings across different compilers.
+
+Support custom Elements and the CustomElementRegistry.
+
+Make html parsing more efficient, so it isn't quadratic in a file
+containing thousands of hyperlinks, which is not unusual.
+
+Customize the text decorationmarkup symbols in your config file.
+tdmarks = **+@__~~
+
+Support aria heading attributes:
+role=heading aria-level=1 presents like h1
+
+replace the earlier deminimizer, which has become out of date, with
+https://github.com/beautifier/js-beautify
+
+Basic support for javascript modules.
+
+3.8.16
+
+Use strict js in shared.js and startwindow.js
+
+Append .html or .txt after running a rendering plugin.
+
+Put standard plugins in the plugins directory, for the user.
+
+Optimize the performance of the http cache.
+
+the a:text c:text and i:text commands.
+
+Expand variables in the prompt string.
+
+Support placing the edbrowse config file at $XDG_CONFIG_HOME/edbrowse/ebrc.
+We still fall back to $HOME/.ebrc if it's not there and use $HOME/.ebrc to
+create the initial file.
+
+include = relative-path now taken relative to the invoking config file,
+like cpp and m4 and everything else in unix.
+include = directory, include all files in that directory.
+
+Download css files in parallel. Like the javascript files.
+Subject to the jsbg flag.
+
+More secure handling of temp files; there's no need to manually add the sticky
+bit to a custom directory any more.
+
+Mutation observers call their functions as microtasks.
+
+Run html scripts (not deferred or async) when you see them, not after browse.
+
+Implement some of the css shorthand properties, such as margin.
+
+Transliterate <em>, and other tags, into concise punctuation
+that indicates the meaning of the tag.
+
+Implement <details> open and close.
diff --git a/edbrowse/DESCR b/edbrowse/DESCR
new file mode 100644
index 0000000000..39bb887f64
--- /dev/null
+++ b/edbrowse/DESCR
@@ -0,0 +1,4 @@
+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.
diff --git a/edbrowse/Makefile b/edbrowse/Makefile
new file mode 100644
index 0000000000..d91496804c
--- /dev/null
+++ b/edbrowse/Makefile
@@ -0,0 +1,58 @@
+# $NetBSD: Makefile,v 1.8 2026/11/11 11:56:14 wiz Exp $
+
+DISTNAME= edbrowse-3.8.19
+CATEGORIES= www
+MASTER_SITES= ${MASTER_SITE_GITHUB:=CMB/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://edbrowse.org/
+COMMENT= Command Line Editor & Browser
+LICENSE= gnu-gpl-v2 AND mit
+
+USE_TOOLS+= gmake perl:build
+USE_LANGUAGES= c c++
+
+NO_CONFIGURE= yes
+
+SUBST_CLASSES+= man
+SUBST_STAGE.man= post-extract
+SUBST_MESSAGE.man= Fixing paths in man page
+SUBST_FILES.man= doc/*.1
+SUBST_SED.man= -E -e '/usersguide\.html/ s,/usr(/local)?/,${PREFIX},g'
+
+MAKE_FILE= makefile
+
+PTHREAD_AUTO_VARS= yes
+PTHREAD_OPTS= require
+
+BUILDLINK_TRANSFORM+= rm:-lpthread rm:-Wall \
+ opt:-ldl:${BUILDLINK_LDADD.dl:Q} \
+ opt:-lopenssl:${BUILDLINK_LDADD.openssl:Q}
+
+LDFLAGS+= -lcurl -lodbc -lpcre2-8 -lqjs -lreadline -ltermcap
+MAKE_FLAGS+= QUICKJS_PKG=quickjs-ng
+
+DOCDIR= share/doc/${PKGBASE}
+
+AUTO_MKDIRS= yes
+
+do-install:
+ ${INSTALL_MAN} ${WRKSRC}/doc/man-edbrowse-freebsd.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${PKGBASE}.1
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/edbrowse \
+ ${DESTDIR}${PREFIX}/bin
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/doc/usersguide.html \
+ ${DESTDIR}${PREFIX}/${DOCDIR}
+
+.include "../../databases/unixodbc/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../lang/quickjs-ng/buildlink3.mk"
+.include "../../devel/pcre2/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/readline.buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/edbrowse/PLIST b/edbrowse/PLIST
new file mode 100644
index 0000000000..a951a634b2
--- /dev/null
+++ b/edbrowse/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD$
+bin/edbrowse
+man/man1/edbrowse.1
+@pkgdir share/doc/edbrowse
+share/doc/edbrowse/usersguide.html
diff --git a/edbrowse/distinfo b/edbrowse/distinfo
new file mode 100644
index 0000000000..a897247bca
--- /dev/null
+++ b/edbrowse/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2025/12/08 07:25:22 vins Exp $
+
+BLAKE2s (edbrowse-3.8.19.tar.gz) = 5ca266fceaaf1e73ad774bb99bc9058ef8441b4a150094b0171edec3f55c9c12
+SHA512 (edbrowse-3.8.19.tar.gz) = f29919b43f31f3fc93b58fd19d77c5402bbc6ef728c71fd7d61bda0ba014fdd861457568b0c7dd770d1ec512249891a008ab9c09a0294301c8ce804bf2bea034
+Size (edbrowse-3.8.19.tar.gz) = 1637838 bytes
+SHA1 (patch-src_html.c) = 1da25b39e761fbf007b78b64946f6df20f6a0a46
diff --git a/edbrowse/patches/patch-src_html.c b/edbrowse/patches/patch-src_html.c
new file mode 100644
index 0000000000..633e93eaa9
--- /dev/null
+++ b/edbrowse/patches/patch-src_html.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_html.c,v 1.1 2025/12/08 07:25:22 vins Exp $
+
+pthread_tryjoin_np is a GNUism.
+https://www.gnu.org/software/gnulib/manual/html_node/pthread_005ftryjoin_005fnp.html
+
+--- src/html.c.orig 2026-11-28 23:33:40.594977627 +0000
++++ src/html.c
+@@ -11,7 +11,7 @@ extern int gettimeofday(struct timeval *tp, void *tzp)
+
+ // OSX has no pthread_tryjoin_np, so we can't do our
+ // asynchronous timers under OSX, which is really no great loss.
+-#if defined(__APPLE__) || defined(__ANDROID__) || defined(__FreeBSD__) || defined(__OpenBSD__)
++#if !defined(___GNU_SOURCE)
+ #define pthread_tryjoin_np pthread_join
+ #endif
+
Home |
Main Index |
Thread Index |
Old Index