diff options
Diffstat (limited to 'meta/recipes-support/nettle/nettle.inc')
-rw-r--r-- | meta/recipes-support/nettle/nettle.inc | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/meta/recipes-support/nettle/nettle.inc b/meta/recipes-support/nettle/nettle.inc index 0579b6c923..fafff6d8d9 100644 --- a/meta/recipes-support/nettle/nettle.inc +++ b/meta/recipes-support/nettle/nettle.inc @@ -8,19 +8,36 @@ LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \ DEPENDS += "gmp" -SRC_URI = "http://www.lysator.liu.se/~nisse/archive/${BP}.tar.gz" +SRC_URI = "http://www.lysator.liu.se/~nisse/archive/${BP}.tar.gz \ + file://Add-target-to-only-build-tests-not-run-them.patch \ + file://run-ptest \ + " SRC_URI[md5sum] = "003d5147911317931dd453520eb234a5" SRC_URI[sha256sum] = "bc71ebd43435537d767799e414fce88e521b7278d48c860651216e1fc6555b40" EXTRA_OECONF = "--disable-openssl" +inherit autotools ptest + do_configure_prepend() { if [ ! -e ${S}/acinclude.m4 -a -e ${S}/aclocal.m4 ]; then cp ${S}/aclocal.m4 ${S}/acinclude.m4 fi } -inherit autotools +do_compile_ptest() { + oe_runmake buildtest +} + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/testsuite/ + install ${S}/testsuite/gold-bug.txt ${D}${PTEST_PATH}/testsuite/ + install ${S}/testsuite/*-test ${D}${PTEST_PATH}/testsuite/ + # tools can be found in PATH, not in ../tools/ + sed -i -e 's|../tools/||' ${D}${PTEST_PATH}/testsuite/*-test + install ${B}/testsuite/*-test ${D}${PTEST_PATH}/testsuite/ +} + BBCLASSEXTEND = "native nativesdk" |