Files
haikuports/net-libs/hubbub/hubbub-0.3.3.recipe
Jerome Duval fc0936b040 Bump revisions for x86_64 rebuild after time_t change.
* a few apps needed build fix for time_t.
* disable compatibility packages for x86_64.
2017-06-27 15:46:25 +02:00

77 lines
2.3 KiB
Bash

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="http://www.netsurf-browser.org/projects/hubbub/"
COPYRIGHT="2007-2016 J-M Bell"
LICENSE="MIT"
REVISION="3"
SOURCE_URI="http://download.netsurf-browser.org/libs/releases/libhubbub-$portVersion-src.tar.gz"
CHECKSUM_SHA256="066dffd127ead12da60050aa13b80891fb996d00197767d038e48ac163402780"
SOURCE_DIR="libhubbub-$portVersion"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
hubbub$secondaryArchSuffix = $portVersion
lib:libhubbub$secondaryArchSuffix = $portVersion compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
hubbub${secondaryArchSuffix}_devel = $portVersion
devel:libhubbub$secondaryArchSuffix = $portVersion compat >= 0
"
REQUIRES_devel="
hubbub$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
devel:libparserutils$secondaryArchSuffix
devel:libjson_c$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
netsurf_buildsystem >= 0.5.0
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:perl
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
make PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem
make PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem \
COMPONENT_TYPE=lib-shared
}
INSTALL()
{
make install PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem \
INCLUDEDIR=$relativeIncludeDir LIBDIR=$relativeLibDir
make install PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem \
INCLUDEDIR=$relativeIncludeDir LIBDIR=$relativeLibDir \
COMPONENT_TYPE=lib-shared
prepareInstalledDevelLib libhubbub
fixPkgconfig
packageEntries devel $developDir
}
TEST()
{
make PREFIX=$prefix NSSHARED=/system/data/netsurf-buildsystem \
LDFLAGS="-liconv -lparserutils" test
}