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+" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 10 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b7a36f55e8ba62aadd74e4f0886a405e" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 11 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 12 | S = "${WORKDIR}/git" |
| 13 | SRCREV = "47f7d49bd15cfc2e5f8c0f5c4068dc8bb0e10e96" |
| 14 | SRC_URI = "git://github.com/maxmind/geoip-api-perl.git;protocol=https; \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 15 | file://run-ptest \ |
| 16 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 17 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 18 | DEPENDS += "geoip" |
| 19 | |
| 20 | inherit cpan ptest |
| 21 | |
| 22 | EXTRA_CPANFLAGS = "LIBS='-L${STAGING_LIBDIR}' INC='-I${STAGING_INCDIR}'" |
| 23 | |
| 24 | |
| 25 | # perl scripts and some special small data files |
| 26 | # |
| 27 | do_install_ptest () { |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 28 | install -d -m 0755 ${D}${PTEST_PATH}/t/data |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 29 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 30 | install ${S}/t/*.t* ${D}${PTEST_PATH}/t |
| 31 | install ${S}/t/data/* ${D}${PTEST_PATH}/t/data |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | FILES_${PN}-dbg += "${libdir}/perl/vendor_perl/*/auto/Geo/IP/.debug" |
| 35 | |