Brad Bishop | 1932369 | 2019-04-05 15:28:33 -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=a2513f7d2291df840527b76b2a8f9718" |
| 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] = "4d0a33f6393260926032f1fad4bad39a" |
| 20 | SRC_URI[sha256sum] = "152ccd8e64d0f495377232e3964d06c7ec8bb8c3fbd3217f8a5702614f9a669e" |
| 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" |