mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
80 lines
1.8 KiB
Bash
80 lines
1.8 KiB
Bash
SUMMARY="A pure-C HTML5 parser"
|
|
DESCRIPTION="Gumbo is an implementation of the HTML5 parsing algorithm implemented as a pure C99 \
|
|
library with no outside dependencies. It's designed to serve as a building block for other \
|
|
tools and libraries such as linters, validators, templating languages, and refactoring and \
|
|
analysis tools."
|
|
HOMEPAGE="https://github.com/google/gumbo-parser"
|
|
COPYRIGHT="2015 Kevin B. Hendricks
|
|
2010-2013 Google Inc.
|
|
2013 Ben Noordhuis"
|
|
LICENSE="Apache v2"
|
|
REVISION="2"
|
|
SOURCE_URI="$HOMEPAGE/archive/refs/tags/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="28463053d44a5dfbc4b77bcf49c8cee119338ffa636cc17fc3378421d714efad"
|
|
SOURCE_DIR="gumbo-parser-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="1.0.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
gumbo$secondaryArchSuffix = $portVersion
|
|
lib:libgumbo$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
gumbo${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libgumbo$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
gumbo$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize$secodaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
defineDebugInfoPackage gumbo$secondaryArchSuffix \
|
|
$libDir/libgumbo.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
./autogen.sh
|
|
runConfigure ./configure --disable-static
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# remove libtool file
|
|
rm $libDir/libgumbo.la
|
|
|
|
prepareInstalledDevelLib \
|
|
libgumbo
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
LIBRARY_PATH="$sourceDir/.libs${LIBRARY_PATH:+:$LIBRARY_PATH}" \
|
|
.libs/benchmark
|
|
}
|