diff options
author | Kang Kai <kai.kang@windriver.com> | 2014-08-14 17:13:35 +0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-08-21 21:35:05 +0200 |
commit | ffe0b3cc750eaba6f8608a0ee8deca49f3d7d524 (patch) | |
tree | 7a50b36bfb4e115cc4199ee762be79725f58b518 /meta-perl | |
parent | 765436ee81449988125bac0feab19d9ea67a708d (diff) | |
download | meta-openembedded-ffe0b3cc750eaba6f8608a0ee8deca49f3d7d524.tar.gz |
libmime-types-perl: add recipe
Add recipe for libmime-types-perl. Enable to create ptest sub-package at
same time.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-perl')
-rw-r--r-- | meta-perl/recipes-perl/libmime/files/run-ptest | 16 | ||||
-rw-r--r-- | meta-perl/recipes-perl/libmime/libmime-types-perl_2.04.bb | 26 |
2 files changed, 42 insertions, 0 deletions
diff --git a/meta-perl/recipes-perl/libmime/files/run-ptest b/meta-perl/recipes-perl/libmime/files/run-ptest new file mode 100644 index 000000000..c9f9ca94d --- /dev/null +++ b/meta-perl/recipes-perl/libmime/files/run-ptest | |||
@@ -0,0 +1,16 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | for case in `find t -type f -name '*.t'`; do | ||
4 | perl $case >$case.output 2>&1 | ||
5 | ret=$? | ||
6 | cat $case.output | ||
7 | if [ $ret -ne 0 ]; then | ||
8 | echo "FAIL: ${case%.t}" | ||
9 | elif grep -i 'SKIP' $case.output; then | ||
10 | echo "SKIP: ${case%.t}" | ||
11 | else | ||
12 | echo "PASS: ${case%.t}" | ||
13 | fi | ||
14 | |||
15 | rm -f $case.output | ||
16 | done | ||
diff --git a/meta-perl/recipes-perl/libmime/libmime-types-perl_2.04.bb b/meta-perl/recipes-perl/libmime/libmime-types-perl_2.04.bb new file mode 100644 index 000000000..ef5302922 --- /dev/null +++ b/meta-perl/recipes-perl/libmime/libmime-types-perl_2.04.bb | |||
@@ -0,0 +1,26 @@ | |||
1 | SUMMARY = "MIME::Types - Definition of MIME types" | ||
2 | DESCRIPTION = "MIME types are used in MIME compliant lines, for instance \ | ||
3 | as part of e-mail and HTTP traffic, to indicate the type of content which \ | ||
4 | is transmitted. Sometimes real knowledge about a mime-type is need.\ | ||
5 | \n\ | ||
6 | This module maintains a set of MIME::Type objects, which each describe \ | ||
7 | one known mime type." | ||
8 | HOMEPAGE = "http://search.cpan.org/~markov/MIME-Types-${PV}" | ||
9 | SECTION = "libraries" | ||
10 | |||
11 | LICENSE = "Artistic-1.0|GPLv1+" | ||
12 | LIC_FILES_CHKSUM = "file://META.yml;beginline=11;endline=11;md5=963ce28228347875ace682de56eef8e8" | ||
13 | |||
14 | SRC_URI = "http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MIME-Types-${PV}.tar.gz \ | ||
15 | file://run-ptest \ | ||
16 | " | ||
17 | SRC_URI[md5sum] = "e292bbf7756bb4999407f3f660697168" | ||
18 | SRC_URI[sha256sum] = "22b6069d372d587b1f2ecc6d0aaf50fb5c64920caed8c214b9884e64538acc8f" | ||
19 | |||
20 | S = "${WORKDIR}/MIME-Types-${PV}" | ||
21 | |||
22 | inherit cpan ptest | ||
23 | |||
24 | do_install_ptest () { | ||
25 | cp -r ${B}/t ${D}${PTEST_PATH} | ||
26 | } | ||