uthash, new recipe (#8325)

This commit is contained in:
Schrijvers Luc
2023-04-10 15:48:06 +02:00
committed by GitHub
parent dc8bc08d21
commit 69c44a3960
2 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
From 405a743dac39da8a598b2fa734f05eedcc5aecfc Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
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 @@
<h2>download</h2>
<h3>GNU/Linux, Windows</h3>
- <div><a href=https://github.com/troydhanson/uthash/archive/master.zip>uthash-master.zip</a></div>
- <div><a href=https://github.com/troydhanson/uthash>git clone</a></div>
+ <div><a href="https://github.com/troydhanson/uthash/archive/master.zip">uthash-master.zip</a></div>
+ <div><a href="https://github.com/troydhanson/uthash">git clone</a></div>
<h2>license</h2>
<div><a href="license.html">BSD revised</a></div>
--
2.37.3

View File

@@ -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
}