diff --git a/dev-libs/uthash/patches/uthash-2.3.0.patchset b/dev-libs/uthash/patches/uthash-2.3.0.patchset new file mode 100644 index 000000000..79f66cd59 --- /dev/null +++ b/dev-libs/uthash/patches/uthash-2.3.0.patchset @@ -0,0 +1,24 @@ +From 405a743dac39da8a598b2fa734f05eedcc5aecfc Mon Sep 17 00:00:00 2001 +From: begasus +Date: Mon, 10 Apr 2023 15:34:57 +0200 +Subject: Fix index.html + + +diff --git a/doc/index.html b/doc/index.html +index 48d729a..1d5a441 100644 +--- a/doc/index.html ++++ b/doc/index.html +@@ -35,8 +35,8 @@ + +

download

+

GNU/Linux, Windows

+-
uthash-master.zip
+-
git clone
++
uthash-master.zip
++
git clone
+ +

license

+
BSD revised
+-- +2.37.3 + diff --git a/dev-libs/uthash/uthash-2.3.0.recipe b/dev-libs/uthash/uthash-2.3.0.recipe new file mode 100644 index 000000000..926dce9b6 --- /dev/null +++ b/dev-libs/uthash/uthash-2.3.0.recipe @@ -0,0 +1,45 @@ +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 +}