blob: 4c4faab4dbd4ddba8bf1054ad8b4b4a144ce7879 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "Net::LibIDN - Perl bindings for GNU Libidn"
2DESCRIPTION = "\
3Provides bindings for GNU Libidn, a C library for handling Internationalized \
4Domain Names according to IDNA (RFC 3490), in a way very much inspired by \
5Turbo Fredriksson's PHP-IDN. \
6"
7SECTION = "libs"
Andrew Geissler9aee5002022-03-30 16:27:02 +00008LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05009HOMEPAGE = "http://search.cpan.org/dist/Net-LibIDN/"
10DEPENDS += "libidn"
11# We must need glibc-gconvs to enable charset related functions,
12# such as Net::LibIDN::idn_to_ascii().
Patrick Williams213cb262021-08-07 19:21:33 -050013RDEPENDS:${PN}:append:libc-glibc = " glibc-gconvs"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050014
15SRC_URI = "http://search.cpan.org/CPAN/authors/id/T/TH/THOR/Net-LibIDN-${PV}.tar.gz"
16SRC_URI[md5sum] = "c3e4de2065009d67bcb1df0afb473e12"
17SRC_URI[sha256sum] = "2f8acc9442b3866ec7dc63cd449fc693ae3e930d5d3e5e9430fbb6f393bdbb17"
18
19SRC_URI += "file://libidn-wr-cross-compile.patch"
20
21LIC_FILES_CHKSUM = "file://README;beginline=42;endline=92;md5=3374ea0369ca3ead6047520477a43147"
22
23S = "${WORKDIR}/Net-LibIDN-${PV}"
24
25EXTRA_CPANFLAGS = "--with-libidn=${STAGING_LIBDIR} --with-libidn-inc=${STAGING_INCDIR} --compiler='${CC}'"
26EXTRA_CPANFLAGS += "--disable-tld"
27
28inherit cpan
29
Patrick Williams213cb262021-08-07 19:21:33 -050030FILES:${PN}-dbg += "${libdir}/perl/vendor_perl/*/auto/Net/LibIDN/.debug/"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050031
Patrick Williams213cb262021-08-07 19:21:33 -050032do_configure:prepend() {
Patrick Williamsddad1a12017-02-23 20:36:32 -060033 rm -rf ${S}/.pc/
Patrick Williamsb48b7b42016-08-17 15:04:38 -050034}