blob: 8d239e7e2e7157d7f9603f60bbbe72d1f650bc65 [file] [log] [blame]
Andrew Geisslereff27472021-10-29 15:35:00 -05001# NOTE:
2# You should use perl-module-encode rather than this package
3# unless you specifically need a version newer than what is
4# provided by perl.
5
6SUMMARY = "Encode - character encodings"
7DESCRIPTION = "The \"Encode\" module provides the interfaces between \
8Perl's strings and the rest of the system. Perl strings are sequences \
9of characters."
10
11AUTHOR = "Dan Kogai <dankogai+cpan@gmail.com>"
12HOMEPAGE = "https://metacpan.org/release/Encode"
13SECTION = "lib"
Andrew Geissler9aee5002022-03-30 16:27:02 +000014LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
Andrew Geisslereff27472021-10-29 15:35:00 -050015LIC_FILES_CHKSUM = "file://META.json;beginline=8;endline=10;md5=b12e3be1e17a7e99ca4f429ff32c28b5"
16
17SRC_URI = "${CPAN_MIRROR}/authors/id/D/DA/DANKOGAI/Encode-${PV}.tar.gz"
18SRC_URI[sha256sum] = "e5e91d98a97de70dccecc2a25d049a0b5f5f12228c618680020d73043355294c"
19
20UPSTREAM_CHECK_REGEX = "Encode\-(?P<pver>(\d+\.\d+))(?!_\d+).tar"
21
22S = "${WORKDIR}/Encode-${PV}"
23
24inherit cpan ptest-perl
25
26do_install:prepend() {
27 # Requires "-T" (taint) option on command line
28 rm -rf ${B}/t/taint.t
29 # Circular dependency of perl-module-open on perl-module-encode
30 # and we cannot load perl-module-encode because we are providing
31 # an alternative
32 rm -rf ${B}/t/use-Encode-Alias.t
33}
34
35do_install_ptest() {
36 mkdir ${D}${PTEST_PATH}/bin
37 cp -r ${B}/bin/piconv ${D}${PTEST_PATH}/bin
38 cp -r ${B}/blib ${D}${PTEST_PATH}
39 chown -R root:root ${D}${PTEST_PATH}
40}
41
42# file /usr/bin/enc2xs from install of perl-misc-5.24.1-r0.i586 conflicts with file from package libencode-perl-2.94-r0.i586
43# file /usr/bin/encguess from install of perl-misc-5.24.1-r0.i586 conflicts with file from package libencode-perl-2.94-r0.i586
44# file /usr/bin/piconv from install of perl-misc-5.24.1-r0.i586 conflicts with file from package libencode-perl-2.94-r0.i586
45RCONFLICTS:${PN} = "perl-misc perl-module-encode"
46
47RDEPENDS:${PN} += " \
48 perl-module-bytes \
49 perl-module-constant \
50 perl-module-parent \
51 perl-module-storable \
52 perl-module-xsloader \
53 "
54
55RPROVIDES:${PN} += " \
56 libencode-alias-perl \
57 libencode-byte-perl \
58 libencode-cjkconstants-perl \
59 libencode-cn-perl \
60 libencode-cn-hz-perl \
61 libencode-config-perl \
62 libencode-ebcdic-perl \
63 libencode-encoder-perl \
64 libencode-encoding-perl \
65 libencode-gsm0338-perl \
66 libencode-guess-perl \
67 libencode-jp-perl \
68 libencode-jp-h2z-perl \
69 libencode-jp-jis7-perl \
70 libencode-kr-perl \
71 libencode-kr-2022_kr-perl \
72 libencode-mime-header-perl \
73 libencode-mime-name-perl \
74 libencode-symbol-perl \
75 libencode-tw-perl \
76 libencode-unicode-perl \
77 libencode-unicode-utf7-perl \
78 libencoding-perl \
79 libencode-internal-perl \
80 libencode-mime-header-iso_2022_jp-perl \
81 libencode-utf8-perl \
82 libencode-utf_ebcdic-perl \
83 "
84
85RDEPENDS:${PN}-ptest += " \
86 perl-module-blib \
87 perl-module-charnames \
88 perl-module-file-compare \
89 perl-module-file-copy \
90 perl-module-filehandle \
91 perl-module-findbin \
92 perl-module-integer \
93 perl-module-io-select \
94 perl-module-ipc-open3 \
95 perl-module-mime-base64 \
96 perl-module-perlio \
97 perl-module-perlio-encoding \
98 perl-module-perlio-scalar \
99 perl-module-test-more \
100 perl-module-tie-scalar \
101 perl-module-unicore \
102 perl-module-utf8 \
103 "
104
105BBCLASSEXTEND = "native"