mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-14 07:40:07 +02:00
46 lines
1.0 KiB
Bash
46 lines
1.0 KiB
Bash
SUMMARY="A hash table for C structures"
|
|
DESCRIPTION="Any C structure can be stored in a hash table using uthash. Just add a \
|
|
UT_hash_handle to the structure and choose one or more fields in your structure to act as the key.
|
|
Then use these macros to store, retrieve or delete items from the hash table"
|
|
HOMEPAGE="https://github.com/troydhanson/uthash"
|
|
COPYRIGHT="2005-2021, Troy D. Hanson
|
|
2021 Arthur O'Dwyer"
|
|
LICENSE="BSD (2-clause)"
|
|
REVISION="1"
|
|
SOURCE_URI="$HOMEPAGE/archive/refs/tags/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="e10382ab75518bad8319eb922ad04f907cb20cccb451a3aa980c9d005e661acc"
|
|
SOURCE_FILENAME="uthash-v$portVersion.tar.gz"
|
|
PATCHES="uthash-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
uthash = $portVersion
|
|
devel:uthash = $portVersion
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
cmd:asciidoc
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
make -C doc
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $docDir/html
|
|
mkdir -p $includeDir
|
|
|
|
cp -a src/*.h $includeDir
|
|
cp -R doc/*.txt $docDir
|
|
cp -R doc/*.html doc/*.css doc/*.png $docDir/html
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|