mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
uthash, new recipe (#8325)
This commit is contained in:
24
dev-libs/uthash/patches/uthash-2.3.0.patchset
Normal file
24
dev-libs/uthash/patches/uthash-2.3.0.patchset
Normal 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
|
||||
|
||||
45
dev-libs/uthash/uthash-2.3.0.recipe
Normal file
45
dev-libs/uthash/uthash-2.3.0.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user