diff mbox series

[meta-perl] libmime-types-perl: upgrade 2.17 -> 2.22

Message ID 20221030220140.3252919-1-tim.orling@konsulko.com
State Under Review
Headers show
Series [meta-perl] libmime-types-perl: upgrade 2.17 -> 2.22 | expand

Commit Message

Tim Orling Oct. 30, 2022, 10:01 p.m. UTC
Fix RDEPENDS, in particular perl-module-perlio-encoding and
perl-module-encode-encoding were needed to be able to open the database in
/usr/lib/perl5/5.36.0/vendor_perl/MIME/types.db... even though no
warnings or errors were reported.

bin/collect-types was dropped in 2.18

Upstream release notes:

version 2.22: Wed 27 Oct 16:54:38 CEST 2021

        Changes:
        - webm keeps on producting unexpected results [issue #11, Даша
	  Федорова]
        - iana updates

version 2.21: Fri 28 May 12:01:00 CEST 2021

        Changes:
        - application/octet-stream is better for .dat [issue #11, Даша
	  Федорова]
        - add video/webm which Google forgot to register [issue #12,
	  Brent Laabs]
        - add image/webp which Google registered too late [issue #12,
	  Brent Laabs]

version 2.20: Thu 22 Apr 12:48:35 CEST 2021

        Fixes:
        - problems with PAUSE cause the previous release to show-up in
          the wrong location.  Let's hope this release solves it.

        Changes:
        - heif/heic/heifs/heics/hif fix [issue #9, Даша Федорова]
        - no 'and' and 'or' extensions [issue #9, Даша Федорова]
        - application/octet-stream is better for .bin [issue #10, Даша
	  Федорова]

version 2.19: Fri 16 Apr 11:47:10 CEST 2021

        Improvements:
        - update with the newest data from IANA and Apache httpd

        Changes:
        - mp4 preference is video/mp4 [issue #5, Даша Федорова]
        - yt preference is video/vnd.youtube.yt [issue #6, Даша
	  Федорова]
        - 3gp and 3gpp preference is video/3gpp [issue #7, Даша
	  Федорова]

version 2.18: Wed  9 Dec 10:29:46 CET 2020

        Improvements:
        - update with newest data

        Changes:
        - Mojo 6.0 changed types() into mapping() [Dmitry Latin]
        - Mojo 7.94 adds experimental file_type()
        - Mojo 7.94 adds experimental content_type()

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
 ...erl_2.17.bb => libmime-types-perl_2.22.bb} | 22 +++++++++++--------
 1 file changed, 13 insertions(+), 9 deletions(-)
 rename meta-perl/recipes-perl/libmime/{libmime-types-perl_2.17.bb => libmime-types-perl_2.22.bb} (74%)
diff mbox series

Patch

diff --git a/meta-perl/recipes-perl/libmime/libmime-types-perl_2.17.bb b/meta-perl/recipes-perl/libmime/libmime-types-perl_2.22.bb
similarity index 74%
rename from meta-perl/recipes-perl/libmime/libmime-types-perl_2.17.bb
rename to meta-perl/recipes-perl/libmime/libmime-types-perl_2.22.bb
index d1f6f8c59..5f5c4958d 100644
--- a/meta-perl/recipes-perl/libmime/libmime-types-perl_2.17.bb
+++ b/meta-perl/recipes-perl/libmime/libmime-types-perl_2.22.bb
@@ -14,8 +14,7 @@  LIC_FILES_CHKSUM = "file://META.yml;beginline=11;endline=11;md5=963ce28228347875
 SRC_URI = "http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MIME-Types-${PV}.tar.gz \
            file://run-ptest \
           "
-SRC_URI[md5sum] = "6f1441addab947137bac92c379a47ba3"
-SRC_URI[sha256sum] = "e04ed7d42f1ff3150a303805f2689c28f80b92c511784d4641cb7f040d3e8ff6"
+SRC_URI[sha256sum] = "c2545eb30b094e942860ff8444f0f6cb54641caa8f7d386aaa2d925da4b02400"
 
 S = "${WORKDIR}/MIME-Types-${PV}"
 
@@ -23,19 +22,24 @@  inherit cpan ptest
 
 RDEPENDS:${PN} = "\
     perl-module-base \
+    perl-module-carp \
+    perl-module-constant \
+    perl-module-cwd \
+    perl-module-encode-encoding \
     perl-module-file-basename \
     perl-module-file-spec \
+    perl-module-list-util \
     perl-module-overload \
+    perl-module-perlio \
+    perl-module-perlio-encoding \
 "
 
-RDEPENDS:${PN}-ptest = "perl-module-lib perl-module-test-more"
-#RSUGGESTS:${PN}-ptest = "libmojo-base-perl"
+RDEPENDS:${PN}-ptest = "\
+    perl-module-lib \
+    perl-module-test-more \
+"
 
-do_install () {
-    cpan_do_install
-    install -d ${D}${bindir}
-    install -m 755 ${S}/bin/collect-types ${D}${bindir}/collect-types
-}
+#RSUGGESTS:${PN}-ptest = "libmojo-base-perl"
 
 do_install_ptest () {
     cp -r ${B}/t ${D}${PTEST_PATH}