blob: 7eb138305322f05a833b98cd7420427ef85652b7 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -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=a2513f7d2291df840527b76b2a8f9718"
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] = "4d0a33f6393260926032f1fad4bad39a"
20SRC_URI[sha256sum] = "152ccd8e64d0f495377232e3964d06c7ec8bb8c3fbd3217f8a5702614f9a669e"
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"