summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/popt
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/popt')
-rw-r--r--meta/recipes-support/popt/popt/run-ptest3
-rw-r--r--meta/recipes-support/popt/popt_1.18.bb15
-rw-r--r--meta/recipes-support/popt/popt_1.19.bb31
3 files changed, 34 insertions, 15 deletions
diff --git a/meta/recipes-support/popt/popt/run-ptest b/meta/recipes-support/popt/popt/run-ptest
new file mode 100644
index 0000000000..85754035d0
--- /dev/null
+++ b/meta/recipes-support/popt/popt/run-ptest
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3./testit.sh
diff --git a/meta/recipes-support/popt/popt_1.18.bb b/meta/recipes-support/popt/popt_1.18.bb
deleted file mode 100644
index 022ece5f47..0000000000
--- a/meta/recipes-support/popt/popt_1.18.bb
+++ /dev/null
@@ -1,15 +0,0 @@
1SUMMARY = "Library for parsing command line options"
2HOMEPAGE = "https://www.rpm.org/"
3SECTION = "libs"
4
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://COPYING;md5=cb0613c30af2a8249b8dcc67d3edb06d"
7
8DEPENDS = "virtual/libiconv"
9
10SRC_URI = "http://ftp.rpm.org/popt/releases/popt-1.x/${BP}.tar.gz"
11SRC_URI[sha256sum] = "5159bc03a20b28ce363aa96765f37df99ea4d8850b1ece17d1e6ad5c24fdc5d1"
12
13inherit autotools gettext
14
15BBCLASSEXTEND = "native nativesdk"
diff --git a/meta/recipes-support/popt/popt_1.19.bb b/meta/recipes-support/popt/popt_1.19.bb
new file mode 100644
index 0000000000..b1d8bea790
--- /dev/null
+++ b/meta/recipes-support/popt/popt_1.19.bb
@@ -0,0 +1,31 @@
1SUMMARY = "Library for parsing command line options"
2DESCRIPTION = "Popt is a C library for parsing command line parameters. Popt was heavily influenced by the getopt() and getopt_long() functions, but it improves on them by allowing more powerful argument expansion. Popt can parse arbitrary argv[] style arrays and automatically set variables based on command line arguments."
3HOMEPAGE = "https://www.rpm.org/"
4SECTION = "libs"
5
6LICENSE = "MIT"
7LIC_FILES_CHKSUM = "file://COPYING;md5=e0206ac9471d06667e076212db20c5f4"
8
9DEPENDS = "virtual/libiconv"
10
11SRC_URI = "http://ftp.rpm.org/popt/releases/popt-1.x/${BP}.tar.gz \
12 file://run-ptest \
13 "
14SRC_URI[sha256sum] = "c25a4838fc8e4c1c8aacb8bd620edb3084a3d63bf8987fdad3ca2758c63240f9"
15
16inherit autotools gettext ptest
17
18RDEPENDS:${PN}-ptest += "bash"
19
20do_compile_ptest() {
21 sed 's#lt-test1#test1#g' ${S}/tests/testit.sh > ${B}/tests/testit.sh
22}
23
24do_install_ptest() {
25 install ${B}/tests/.libs/test* ${D}/${PTEST_PATH}
26 install ${B}/tests/.libs/tdict ${D}/${PTEST_PATH}
27 install ${B}/tests/testit.sh ${D}/${PTEST_PATH}
28 install ${B}/tests/test-poptrc ${D}/${PTEST_PATH}
29}
30
31BBCLASSEXTEND = "native nativesdk"