Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | SUMMARY = "A low level cryptographic library" |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 2 | DESCRIPTION = "Nettle is a cryptographic library that is designed to fit easily in more or less any context: In crypto toolkits for object-oriented languages (C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space." |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 3 | HOMEPAGE = "http://www.lysator.liu.se/~nisse/nettle/" |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 4 | DESCRIPTION = "It tries to solve a problem of providing a common set of \ |
| 5 | cryptographic algorithms for higher-level applications by implementing a \ |
| 6 | context-independent set of cryptographic algorithms" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 7 | SECTION = "libs" |
| 8 | LICENSE = "LGPLv3+ | GPLv2+" |
| 9 | |
| 10 | LIC_FILES_CHKSUM = "file://COPYING.LESSERv3;md5=6a6a8e020838b23406c81b19c1d46df6 \ |
| 11 | file://COPYINGv2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
| 12 | file://serpent-decrypt.c;beginline=14;endline=36;md5=ca0d220bc413e1842ecc507690ce416e \ |
| 13 | file://serpent-set-key.c;beginline=14;endline=36;md5=ca0d220bc413e1842ecc507690ce416e" |
| 14 | |
| 15 | DEPENDS += "gmp" |
| 16 | |
| 17 | SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \ |
| 18 | file://Add-target-to-only-build-tests-not-run-them.patch \ |
| 19 | file://run-ptest \ |
| 20 | file://check-header-files-of-openssl-only-if-enable_.patch \ |
| 21 | " |
| 22 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 23 | SRC_URI:append:class-target = "\ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 24 | file://dlopen-test.patch \ |
| 25 | " |
| 26 | |
Andrew Geissler | 0903674 | 2021-06-25 14:25:14 -0500 | [diff] [blame] | 27 | SRC_URI[sha256sum] = "661f5eb03f048a3b924c3a8ad2515d4068e40f67e774e8a26827658007e3bcf0" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 28 | |
| 29 | UPSTREAM_CHECK_REGEX = "nettle-(?P<pver>\d+(\.\d+)+)\.tar" |
| 30 | |
| 31 | inherit autotools ptest multilib_header |
| 32 | |
| 33 | EXTRA_AUTORECONF += "--exclude=aclocal" |
| 34 | |
| 35 | EXTRA_OECONF = "--disable-openssl" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 36 | |
| 37 | do_compile_ptest() { |
| 38 | oe_runmake buildtest |
| 39 | } |
| 40 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 41 | do_install:append() { |
Brad Bishop | 08902b0 | 2019-08-20 09:16:51 -0400 | [diff] [blame] | 42 | oe_multilib_header nettle/version.h |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | do_install_ptest() { |
| 46 | install -d ${D}${PTEST_PATH}/testsuite/ |
| 47 | install ${S}/testsuite/gold-bug.txt ${D}${PTEST_PATH}/testsuite/ |
| 48 | install ${S}/testsuite/*-test ${D}${PTEST_PATH}/testsuite/ |
| 49 | # tools can be found in PATH, not in ../tools/ |
| 50 | sed -i -e 's|../tools/||' ${D}${PTEST_PATH}/testsuite/*-test |
| 51 | install ${B}/testsuite/*-test ${D}${PTEST_PATH}/testsuite/ |
| 52 | } |
| 53 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 54 | RDEPENDS:${PN}-ptest += "${PN}-dev" |
| 55 | INSANE_SKIP:${PN}-ptest += "dev-deps" |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 56 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 57 | BBCLASSEXTEND = "native nativesdk" |