Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | SUMMARY = "Hash table and linked list for C structures" |
| 2 | DESCRIPTION = " 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 | " |
| 8 | HOMEPAGE = "https://troydhanson.github.io/uthash/" |
| 9 | SECTION = "base" |
| 10 | LICENSE = "BSD-1-Clause" |
| 11 | LIC_FILES_CHKSUM = "file://LICENSE;md5=5cc1f1e4c71f19f580458586756c02b4" |
| 12 | |
| 13 | SRC_URI = "\ |
| 14 | https://github.com/troydhanson/${BPN}/archive/v${PV}.tar.gz;downloadfilename=${BP}.tar.gz \ |
| 15 | file://run-ptest \ |
| 16 | " |
| 17 | UPSTREAM_CHECK_URI = "https://github.com/troydhanson/${BPN}/releases" |
| 18 | |
| 19 | SRC_URI[md5sum] = "d08632a58674274c9cd87e2930f5696a" |
| 20 | SRC_URI[sha256sum] = "34a31d51dd7a839819cecd6f46049b4ffe031d7f3147d9a042f5504fdb1348d1" |
| 21 | |
| 22 | inherit ptest |
| 23 | |
| 24 | do_compile[noexec] = "1" |
| 25 | |
| 26 | do_compile_ptest() { |
| 27 | oe_runmake -C tests tests_only TEST_TARGET= |
| 28 | } |
| 29 | |
| 30 | do_install () { |
| 31 | install -dm755 ${D}${includedir} |
| 32 | install -m0644 src/*.h ${D}${includedir} |
| 33 | } |
| 34 | |
| 35 | do_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... |
| 44 | RDEPENDS_${PN}-dev = "" |
| 45 | |
| 46 | BBCLASSEXTEND = "native" |