pkgsrc-wip/edbrowse/Makefile

38 lines
1.0 KiB
Makefile
Raw Permalink Normal View History

# $NetBSD$
DISTNAME= edbrowse-3.7.4
CATEGORIES= www
edbrowse: Update wip/edbrowse to 3.7.1 pkgsrc changes: - Use MASTER_SITE_GITHUB for MASTER_SITES and just fetch the .tar.gz archives there - Depends on lang/libduktape and drop dependency to wip/spidermonkey24 Changes: 3.7.1: Automatically expand a frame when javascript tries to access its objects. Otherwise it won't expand unti you expand it explicitly. This saves resources; don't fetch and expand a frame unless it is needed. ^c interrupts javascript, if that javascript calls our native methods. It also interrupts http fetch. Hit ^c if the browsing is taking too darn long - however - the page may not render properly or completely. Don't do this if you are using this page for ecommerce or something vital. Keep edbrowse in 1 process. Don't fork a javascript process to make all the js calls. There are many technical reasons why 1 process is a better design. The keyword jspool is no longer used in the .ebrc config file. This was needed for Mozilla JS, but it is not needed for Duktape. Gather keyword value pairs from <style> tags and css files and apply them to the corresponding javascript objects. Implement getComputedStyle(). 3.7.0: Switch from Mozilla js to Duktape js. Mask password fields on input forms with stars, as other browsers do. Issue the ipass command to enter a password without echo. Curl authorization negotiations enabled or disabled via the can toggle command. This is a workaround for problems with NTLM. Parallel instances of edbrowse don't clobber each other's cookies when they exit and write the common cookie jar. See mergeCookies() in cookies.c. curl does not become active until you need it. Environment variable JSGC forces duktape garbage collection after every script. Environment variable JS1 keeps edbrowse and js in one process. These are for development and testing, and could go away. Clean up compiler warnings so we can use the -Wall flag. 3.6.3: Maintain a cache of http files. Provides faster access to websites that are visited often. Cache directory and size can be set in the config file, but the defaults are reasonable. Use a substring of the url to determine a mime type, not just the suffix. This is primarily for youtube videos, which can play as a stream, but have no obvious protocol or suffix to key on. urlmatch = youtube.com/watch?|youtube.com/embed/ Currently a substring, may become a regexp later. g? prints the url for the link instead of going to it. You can look before you leap. Also g2? g$? etc. i* on a textarea <buffer 7> goes to that editing session, in this case equivalent to e7. This is convenient for scripting, since you don't know ahead of time which buffer will be allocated for this purpose. The M (move) command does not require a destination session; edbrowse finds an empty session for you. Represent multiple frames in one edbrowse window. Each has its own javascript world. At this point the worlds do not interact. You can expand and contract frames by the exp and ctr commands.
2017-10-29 22:33:48 +00:00
MASTER_SITES= ${MASTER_SITE_GITHUB:=CMB/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://edbrowse.org/
COMMENT= Command Line Editor Browser
LICENSE= gnu-gpl-v3
USE_CMAKE= yes
USE_TOOLS+= perl:build
USE_LANGUAGES= c c++
edbrowse: Update wip/edbrowse to edbrowse-3.6.2 pkgsrc changes: - instruct cmake to find tidy header files (in the code it directly include tidy header files without the <tidy/.*> path) - get rid of a local patch imported upstream Changes: 3.6.2: Read and convert utf16 and utf32 as per the byte order mark. convert such files to utf8 or iso8859-1 as per the console setting, though the latter is deprecated. Convert back only if writing back out to the same file. Enter high unicodes by the string ~u....; where the dots are hex digits and the semi is optional. New "list buffers" command (bfl) to get a list of buffers and filenames. Read the attachment filename from the http content-disposition header and set the current filename accordingly. The url could be replaced with foobar.zip, but that's what the web designer wanted. If a file has a recognized suffix, with a stream plugin, then typing g on a link within that file invokes the same plugin. This is primarily used for .pls files, which are playlists, and each URL therein is intended for a music player. Other browsers seem to work this way. 3.6.1: Merge edbrowse and edbrowse-js back into one executable image. More convenient for distribution. The --mode argument determines the action of the process. Example edbrowse --mode js to run as the js engine. Simple implementation of xhr under javascript, synchronous only. Don't encode urls that have already been encoded via <A href=url>. The second encoding is mostly harmless, except for + becoming %2b. Turn on or off the progress dots during an http or ftp download, or receive progress counts by megabyte. Create the edbrowse temp dir at the outset, and user directories beneath this directory, mod 700, for added security in a multiuser system. Temp files for plugins are created beneath the user directories. Reload the config file on command. No need to exit and restart. ~0 in an edbrowse function is the whole line, even if more than 9 arguments. db>filename to redirect debugging output to a file.
2017-02-20 11:25:46 +00:00
CMAKE_ARGS+= -DTIDY_ROOT=${PREFIX}/include/tidy
SUBST_CLASSES+= man
SUBST_STAGE.man= pre-patch
SUBST_MESSAGE.man= Fixing paths in man page
SUBST_FILES.man= doc/man-edbrowse-debian.1
SUBST_SED.man= -e '/usersguide\.html/ s,/usr,${PREFIX},g'
SUBST_CLASSES+= cmakelists
SUBST_STAGE.cmakelists= post-patch
SUBST_MESSAGE.cmakelists= Fixing paths in CMakeLists.txt
SUBST_FILES.cmakelists= CMakeLists.txt
SUBST_VARS.cmakelists= PREFIX PKGMANDIR
.include "../../devel/pcre/buildlink3.mk"
edbrowse: Update wip/edbrowse to 3.7.1 pkgsrc changes: - Use MASTER_SITE_GITHUB for MASTER_SITES and just fetch the .tar.gz archives there - Depends on lang/libduktape and drop dependency to wip/spidermonkey24 Changes: 3.7.1: Automatically expand a frame when javascript tries to access its objects. Otherwise it won't expand unti you expand it explicitly. This saves resources; don't fetch and expand a frame unless it is needed. ^c interrupts javascript, if that javascript calls our native methods. It also interrupts http fetch. Hit ^c if the browsing is taking too darn long - however - the page may not render properly or completely. Don't do this if you are using this page for ecommerce or something vital. Keep edbrowse in 1 process. Don't fork a javascript process to make all the js calls. There are many technical reasons why 1 process is a better design. The keyword jspool is no longer used in the .ebrc config file. This was needed for Mozilla JS, but it is not needed for Duktape. Gather keyword value pairs from <style> tags and css files and apply them to the corresponding javascript objects. Implement getComputedStyle(). 3.7.0: Switch from Mozilla js to Duktape js. Mask password fields on input forms with stars, as other browsers do. Issue the ipass command to enter a password without echo. Curl authorization negotiations enabled or disabled via the can toggle command. This is a workaround for problems with NTLM. Parallel instances of edbrowse don't clobber each other's cookies when they exit and write the common cookie jar. See mergeCookies() in cookies.c. curl does not become active until you need it. Environment variable JSGC forces duktape garbage collection after every script. Environment variable JS1 keeps edbrowse and js in one process. These are for development and testing, and could go away. Clean up compiler warnings so we can use the -Wall flag. 3.6.3: Maintain a cache of http files. Provides faster access to websites that are visited often. Cache directory and size can be set in the config file, but the defaults are reasonable. Use a substring of the url to determine a mime type, not just the suffix. This is primarily for youtube videos, which can play as a stream, but have no obvious protocol or suffix to key on. urlmatch = youtube.com/watch?|youtube.com/embed/ Currently a substring, may become a regexp later. g? prints the url for the link instead of going to it. You can look before you leap. Also g2? g$? etc. i* on a textarea <buffer 7> goes to that editing session, in this case equivalent to e7. This is convenient for scripting, since you don't know ahead of time which buffer will be allocated for this purpose. The M (move) command does not require a destination session; edbrowse finds an empty session for you. Represent multiple frames in one edbrowse window. Each has its own javascript world. At this point the worlds do not interact. You can expand and contract frames by the exp and ctr commands.
2017-10-29 22:33:48 +00:00
BUILDLINK_API_DEPENDS.libduktape+= libduktape>=2.1.0
.include "../../lang/libduktape/buildlink3.mk"
edbrowse: Update wip/edbrowse to edbrowse-3.6.2 pkgsrc changes: - instruct cmake to find tidy header files (in the code it directly include tidy header files without the <tidy/.*> path) - get rid of a local patch imported upstream Changes: 3.6.2: Read and convert utf16 and utf32 as per the byte order mark. convert such files to utf8 or iso8859-1 as per the console setting, though the latter is deprecated. Convert back only if writing back out to the same file. Enter high unicodes by the string ~u....; where the dots are hex digits and the semi is optional. New "list buffers" command (bfl) to get a list of buffers and filenames. Read the attachment filename from the http content-disposition header and set the current filename accordingly. The url could be replaced with foobar.zip, but that's what the web designer wanted. If a file has a recognized suffix, with a stream plugin, then typing g on a link within that file invokes the same plugin. This is primarily used for .pls files, which are playlists, and each URL therein is intended for a music player. Other browsers seem to work this way. 3.6.1: Merge edbrowse and edbrowse-js back into one executable image. More convenient for distribution. The --mode argument determines the action of the process. Example edbrowse --mode js to run as the js engine. Simple implementation of xhr under javascript, synchronous only. Don't encode urls that have already been encoded via <A href=url>. The second encoding is mostly harmless, except for + becoming %2b. Turn on or off the progress dots during an http or ftp download, or receive progress counts by megabyte. Create the edbrowse temp dir at the outset, and user directories beneath this directory, mod 700, for added security in a multiuser system. Temp files for plugins are created beneath the user directories. Reload the config file on command. No need to exit and restart. ~0 in an edbrowse function is the whole line, even if more than 9 arguments. db>filename to redirect debugging output to a file.
2017-02-20 11:25:46 +00:00
.include "../../www/curl/buildlink3.mk"
.include "../../www/tidy/buildlink3.mk"
.include "../../mk/readline.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"