mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
gumbo, new recipe (#7133)
This commit is contained in:
76
dev-libs/gumbo/gumbo-0.10.1.recipe
Normal file
76
dev-libs/gumbo/gumbo-0.10.1.recipe
Normal file
@@ -0,0 +1,76 @@
|
||||
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="1"
|
||||
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
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLib \
|
||||
libgumbo
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
LIBRARY_PATH="$sourceDir/.libs${LIBRARY_PATH:+:$LIBRARY_PATH}" \
|
||||
.libs/benchmark
|
||||
}
|
||||
Reference in New Issue
Block a user