NetSurf, libraries & tools update.

Fixes #4077
This commit is contained in:
Adrien Destugues
2019-08-09 17:38:20 +02:00
parent 077068b780
commit 29a666bb8a
20 changed files with 299 additions and 285 deletions

View File

@@ -0,0 +1,84 @@
SUMMARY="An HTML5 compliant parsing library"
DESCRIPTION="
Hubbub is an HTML5 compliant parsing library, written in C. It was developed \
as part of the NetSurf project and is available for use by other software \
under the MIT licence.
The HTML5 specification defines a parsing algorithm, based on the behaviour \
of mainstream browsers, which provides instructions for how to parse all \
markup, both valid and invalid. As a result, Hubbub parses web content well.
If you are looking for an HTML5 parser in Python or Ruby, you may wish to \
look at html5lib."
HOMEPAGE="https://www.netsurf-browser.org/projects/hubbub/"
COPYRIGHT="2007-2019 J-M Bell"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://download.netsurf-browser.org/libs/releases/libhubbub-$portVersion-src.tar.gz"
SOURCE_DIR="libhubbub-$portVersion"
CHECKSUM_SHA256="d756c795c1a0e08beec4acd68364ac4477960d62fffa3b60da05f5a7763f7bf4"
ARCHITECTURES="?x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
hubbub$secondaryArchSuffix = $portVersion
lib:libhubbub$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libparserutils$secondaryArchSuffix
"
PROVIDES_devel="
hubbub${secondaryArchSuffix}_devel = $portVersion
devel:libhubbub$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
hubbub$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
devel:libiconv$secondaryArchSuffix
devel:libjson_c$secondaryArchSuffix
devel:libparserutils$secondaryArchSuffix >= 0.2.4
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
netsurf_buildsystem >= 1.8
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:perl
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
for linkage in lib-static lib-shared; do
make PREFIX="$prefix" NSSHARED=/system/data/netsurf-buildsystem \
COMPONENT_TYPE=$linkage
done
}
INSTALL()
{
for linkage in lib-static lib-shared; do
make PREFIX="$prefix" NSSHARED=/system/data/netsurf-buildsystem \
INCLUDEDIR=$relativeIncludeDir LIBDIR=$relativeLibDir \
COMPONENT_TYPE=$linkage \
install
done
prepareInstalledDevelLib libhubbub
fixPkgconfig
packageEntries devel \
"$developDir"
}
TEST()
{
make PREFIX="$prefix" NSSHARED=/system/data/netsurf-buildsystem \
LDFLAGS="-liconv -lparserutils" test
}