blob: 25d0890d48b7ae264405fc85d91872e2b55bc911 [file] [log] [blame]
Richard Marian Thomaiyar14fddef2018-07-13 23:55:56 +05301DESCRIPTION = "This is a small simple module which simplifies the \
2manipulation of @INC at compile time. It is typically used to add extra \
3directories to Perl's search path so that later 'use' or 'require' statements \
4will find modules which are not located in the default search path."
5
6SECTION = "libs"
Patrick Williams03907ee2022-05-01 06:28:52 -05007LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
Richard Marian Thomaiyar14fddef2018-07-13 23:55:56 +05308PR = "r0"
9
10LIC_FILES_CHKSUM = "file://README;beginline=26;endline=30;md5=94b119f1a7b8d611efc89b5d562a1a50"
11
12DEPENDS += "perl"
13
14SRC_URI = "http://www.cpan.org/authors/id/S/SM/SMUELLER/lib-${PV}.tar.gz"
15
16SRC_URI[md5sum] = "8607ac4e0d9d43585ec28312f52df67c"
17SRC_URI[sha256sum] = "72f63db9220098e834d7a38231626bd0c9b802c1ec54a628e2df35f3818e5a00"
18
19S = "${WORKDIR}/lib-${PV}"
20
21EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"
22
23inherit cpan
24
25do_compile() {
26 export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
27 cpan_do_compile
28}
Andrew Geisslerd5838332022-05-27 11:33:10 -050029
30do_install:append() {
31 # Man pages here conflict wtih the main perl documentation
32 for page in ${D}${mandir}/man*/*; do
33 mv $page $(dirname $page)/${BPN}-$(basename $page)
34 done
35}