diff options
Diffstat (limited to 'meta/recipes-support/nettle/nettle_3.7.2.bb')
-rw-r--r-- | meta/recipes-support/nettle/nettle_3.7.2.bb | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/meta/recipes-support/nettle/nettle_3.7.2.bb b/meta/recipes-support/nettle/nettle_3.7.2.bb new file mode 100644 index 0000000000..f8f3360086 --- /dev/null +++ b/meta/recipes-support/nettle/nettle_3.7.2.bb | |||
@@ -0,0 +1,57 @@ | |||
1 | SUMMARY = "A low level cryptographic library" | ||
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." | ||
3 | HOMEPAGE = "http://www.lysator.liu.se/~nisse/nettle/" | ||
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" | ||
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 | |||
23 | SRC_URI_append_class-target = "\ | ||
24 | file://dlopen-test.patch \ | ||
25 | " | ||
26 | |||
27 | SRC_URI[sha256sum] = "8d2a604ef1cde4cd5fb77e422531ea25ad064679ff0adf956e78b3352e0ef162" | ||
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" | ||
36 | |||
37 | do_compile_ptest() { | ||
38 | oe_runmake buildtest | ||
39 | } | ||
40 | |||
41 | do_install_append() { | ||
42 | oe_multilib_header nettle/version.h | ||
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 | |||
54 | RDEPENDS_${PN}-ptest += "${PN}-dev" | ||
55 | INSANE_SKIP_${PN}-ptest += "dev-deps" | ||
56 | |||
57 | BBCLASSEXTEND = "native nativesdk" | ||