Andrew Geissler | eef6386 | 2021-01-29 15:58:13 -0600 | [diff] [blame] | 1 | DESCRIPTION = "A regular expression library" |
| 2 | HOMEPAGE = "https://github.com/google/re2/" |
| 3 | LICENSE = "BSD-3-Clause" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b5c31eb512bdf3cb11ffd5713963760" |
| 5 | |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 6 | # tag 2023-03-01 |
| 7 | SRCREV = "241e2e430836e80f93d704d1f06cd3e7fe3100f5" |
Andrew Geissler | eef6386 | 2021-01-29 15:58:13 -0600 | [diff] [blame] | 8 | |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 9 | SRC_URI = "git://github.com/google/re2.git;branch=main;protocol=https \ |
| 10 | ${@bb.utils.contains('PTEST_ENABLED', '1', 'file://run-ptest', '', d)} \ |
| 11 | " |
Andrew Geissler | eef6386 | 2021-01-29 15:58:13 -0600 | [diff] [blame] | 12 | |
| 13 | S = "${WORKDIR}/git" |
| 14 | |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 15 | inherit cmake ptest |
| 16 | RDEPENDS:${PN}-ptest += "cmake sed" |
Andrew Geissler | eef6386 | 2021-01-29 15:58:13 -0600 | [diff] [blame] | 17 | |
| 18 | EXTRA_OECMAKE += " \ |
| 19 | -DBUILD_SHARED_LIBS=ON \ |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 20 | ${@bb.utils.contains('PTEST_ENABLED', '1', '-DRE2_BUILD_TESTING=ON', '-DRE2_BUILD_TESTING=OFF', d)} \ |
Andrew Geissler | eef6386 | 2021-01-29 15:58:13 -0600 | [diff] [blame] | 21 | " |
| 22 | |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 23 | do_install_ptest () { |
| 24 | cp -r ${B}/*_test ${D}${PTEST_PATH} |
| 25 | cp -r ${B}/CTestTestfile.cmake ${D}${PTEST_PATH} |
| 26 | sed -i -e 's#${B}#${PTEST_PATH}#g' `find ${D}${PTEST_PATH} -name CTestTestfile.cmake` |
| 27 | sed -i -e 's#${S}#${PTEST_PATH}#g' `find ${D}${PTEST_PATH} -name CTestTestfile.cmake` |
| 28 | } |
| 29 | |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 30 | # ignore .so in /usr/lib64 |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 31 | FILES:${PN} = "${libdir}" |
Andrew Geissler | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 32 | INSANE_SKIP:${PN} += "dev-so" |
| 33 | |
| 34 | # Don't include so files in dev package |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 35 | FILES:${PN}-dev = "${includedir} ${libdir}/cmake" |
Andrew Geissler | eef6386 | 2021-01-29 15:58:13 -0600 | [diff] [blame] | 36 | |
| 37 | BBCLASSEXTEND = "native nativesdk" |