1*4882a593SmuzhiyunSUMMARY = "Construct and optionally mail MIME messages"
2*4882a593SmuzhiyunDESCRIPTION = "Constructs and (by default) mails MIME messages. \
3*4882a593Smuzhiyun               It is entirely driven from the command line, it is \
4*4882a593Smuzhiyun               designed to be used by other programs, or people who act \
5*4882a593Smuzhiyun               like programs."
6*4882a593SmuzhiyunHOMEPAGE = "http://search.cpan.org/~rosch/mime-construct/mime-construct"
7*4882a593SmuzhiyunSECTION = "mail"
8*4882a593SmuzhiyunLICENSE = "GPL-2.0-or-later"
9*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://debian/copyright;md5=5e2e5da619ac8ef8c84767ccc4656e96"
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunSRC_URI = "${CPAN_MIRROR}/authors/id/R/RO/ROSCH/mime-construct-${PV}.tar.gz \
12*4882a593Smuzhiyun    file://fix-mime-construct-help-return-value.patch \
13*4882a593Smuzhiyun"
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunSRC_URI[md5sum] = "73834ea780fbea81b89dbd9b2fb54f58"
16*4882a593SmuzhiyunSRC_URI[sha256sum] = "4cd7bb61b51d41192d1498c1051aa6a4ccd75aeb09b71d2ec706a7084a4a9303"
17*4882a593Smuzhiyun
18*4882a593Smuzhiyuninherit cpan
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunRDEPENDS:${PN} += "libmime-types-perl libproc-waitstat-perl msmtp \
21*4882a593Smuzhiyun    perl-module-filehandle perl-module-mime-base64 perl-module-mime-quotedprint perl-module-posix \
22*4882a593Smuzhiyun"
23*4882a593Smuzhiyun
24*4882a593Smuzhiyundo_install:append() {
25*4882a593Smuzhiyun   #change the interpreter in file
26*4882a593Smuzhiyun   sed -i -e "s|${STAGING_BINDIR_NATIVE}/perl-native/perl -w|${bindir}/env perl|g" \
27*4882a593Smuzhiyun      ${D}/${bindir}/mime-construct
28*4882a593Smuzhiyun}
29