Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (C) 2014, 2015 Wind River Systems, Inc. |
| 3 | # Released under the MIT license (see COPYING.MIT for the terms) |
| 4 | # |
| 5 | SUMMARY = "GeoIP perl API library to access location database" |
| 6 | DESCRIPTION = "perl library for country/city/organization to IP address or hostname mapping" |
| 7 | HOMEPAGE = "http://www.maxmind.com/app/ip-location" |
| 8 | SECTION = "libdevel" |
| 9 | LICENSE = "Artistic-1.0 | GPL-1.0+" |
| 10 | LIC_FILES_CHKSUM = "file://README;md5=b0fa745303912bd2d64430f7ae69487d" |
| 11 | |
| 12 | # Note that we do not want to use the upstream file name locally. |
| 13 | # |
| 14 | SRC_URI = "http://github.com/maxmind/geoip-api-perl/archive/v${PV}.tar.gz;downloadfilename=${BPN}-${PV}.tar.gz \ |
| 15 | file://run-ptest \ |
| 16 | " |
| 17 | |
| 18 | SRC_URI[md5sum] = "0ce57140890bf81958e0cea4fe1885b2" |
| 19 | SRC_URI[sha256sum] = "c56437b1cc8887736cb1e435d0320c1c1ff3754830249516317b99137005fb23" |
| 20 | |
| 21 | S = "${WORKDIR}/geoip-api-perl-${PV}" |
| 22 | |
| 23 | DEPENDS += "geoip" |
| 24 | |
| 25 | inherit cpan ptest |
| 26 | |
| 27 | EXTRA_CPANFLAGS = "LIBS='-L${STAGING_LIBDIR}' INC='-I${STAGING_INCDIR}'" |
| 28 | |
| 29 | |
| 30 | # perl scripts and some special small data files |
| 31 | # |
| 32 | do_install_ptest () { |
| 33 | install -d -m 0755 ${D}${PTEST_PATH}/t/data |
| 34 | |
| 35 | install ${S}/t/*.t* ${D}${PTEST_PATH}/t |
| 36 | install ${S}/t/data/* ${D}${PTEST_PATH}/t/data |
| 37 | } |
| 38 | |
| 39 | FILES_${PN}-dbg += "${libdir}/perl/vendor_perl/*/auto/Geo/IP/.debug" |
| 40 | |