blob: ccdd13b32d08f3a76adb286d89ed59d89e48d2af [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001SUMMARY = "Hash table and linked list for C structures"
2DESCRIPTION = " uthash-dev provides a hash table implementation using C preprocessor macros.\n\
3 This package also includes:\n\
4 * utlist.h provides linked list macros for C structures\n\
5 * utarray.h implements dynamic arrays using macros\n\
6 * utstring.h implements a basic dynamic string\n\
7"
8HOMEPAGE = "https://troydhanson.github.io/uthash/"
9SECTION = "base"
10LICENSE = "BSD-1-Clause"
11LIC_FILES_CHKSUM = "file://LICENSE;md5=5cc1f1e4c71f19f580458586756c02b4"
12
13SRC_URI = "\
14 https://github.com/troydhanson/${BPN}/archive/v${PV}.tar.gz;downloadfilename=${BP}.tar.gz \
15 file://run-ptest \
16"
17UPSTREAM_CHECK_URI = "https://github.com/troydhanson/${BPN}/releases"
18
19SRC_URI[md5sum] = "d08632a58674274c9cd87e2930f5696a"
20SRC_URI[sha256sum] = "34a31d51dd7a839819cecd6f46049b4ffe031d7f3147d9a042f5504fdb1348d1"
21
22inherit ptest
23
24do_compile[noexec] = "1"
25
26do_compile_ptest() {
27 oe_runmake -C tests tests_only TEST_TARGET=
28}
29
30do_install () {
31 install -dm755 ${D}${includedir}
32 install -m0644 src/*.h ${D}${includedir}
33}
34
35do_install_ptest() {
36 install -dm755 ${D}${PTEST_PATH}/tests
37 install -m0755 tests/test*[0-9] ${D}${PTEST_PATH}/tests
38 install -m0644 tests/test*[0-9].ans ${D}${PTEST_PATH}/tests
39 install -m0644 tests/test*[0-9].dat ${D}${PTEST_PATH}/tests
40}
41
42# The main package is empty and non-existent, so -dev
43# should not depend on it...
44RDEPENDS_${PN}-dev = ""
45
46BBCLASSEXTEND = "native"