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