diff options
| -rw-r--r-- | meta-oe/recipes-devtools/valijson/valijson_0.3.bb | 36 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/valijson/valijson_git.bb | 21 |
2 files changed, 36 insertions, 21 deletions
diff --git a/meta-oe/recipes-devtools/valijson/valijson_0.3.bb b/meta-oe/recipes-devtools/valijson/valijson_0.3.bb new file mode 100644 index 0000000000..049cdeffc0 --- /dev/null +++ b/meta-oe/recipes-devtools/valijson/valijson_0.3.bb | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | SUMMARY = "Header-only C++ library for JSON Schema validation" | ||
| 2 | HOMEPAGE = "https://github.com/tristanpenman/valijson" | ||
| 3 | LICENSE = "BSD-2-Clause" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=015106c62262b2383f6c72063f0998f2" | ||
| 5 | |||
| 6 | SRC_URI = "git://github.com/tristanpenman/valijson.git" | ||
| 7 | SRCREV = "7a52fc88cdffd6678c009ca2fad700151f7363c6" | ||
| 8 | |||
| 9 | S = "${WORKDIR}/git" | ||
| 10 | |||
| 11 | inherit cmake | ||
| 12 | |||
| 13 | EXTRA_OECMAKE = "-DINSTALL_HEADERS=1 -DBUILD_TESTS=0" | ||
| 14 | |||
| 15 | DEPENDS = "curlpp" | ||
| 16 | |||
| 17 | # valijson is a header only C++ library, so the main package will be empty. | ||
| 18 | RDEPENDS_${PN}-dev = "" | ||
| 19 | |||
| 20 | BBCLASSEXTEND = "native nativesdk" | ||
| 21 | |||
| 22 | do_install() { | ||
| 23 | install -d ${D}${includedir}/compat | ||
| 24 | install -d ${D}${includedir}/valijson | ||
| 25 | install -d ${D}${includedir}/valijson/adapters | ||
| 26 | install -d ${D}${includedir}/valijson/constraints | ||
| 27 | install -d ${D}${includedir}/valijson/internal | ||
| 28 | install -d ${D}${includedir}/valijson/utils | ||
| 29 | |||
| 30 | install -m 0644 ${S}/include/compat/* ${D}${includedir}/compat | ||
| 31 | install -D -m 0644 ${S}/include/valijson/*.hpp -t ${D}${includedir}/valijson | ||
| 32 | install -D -m 0644 ${S}/include/valijson/adapters/*.hpp -t ${D}${includedir}/valijson/adapters | ||
| 33 | install -D -m 0644 ${S}/include/valijson/constraints/*.hpp -t ${D}${includedir}/valijson/constraints | ||
| 34 | install -D -m 0644 ${S}/include/valijson/internal/*.hpp -t ${D}${includedir}/valijson/internal | ||
| 35 | install -D -m 0644 ${S}/include/valijson/utils/*.hpp -t ${D}${includedir}/valijson/utils | ||
| 36 | } | ||
diff --git a/meta-oe/recipes-devtools/valijson/valijson_git.bb b/meta-oe/recipes-devtools/valijson/valijson_git.bb deleted file mode 100644 index c3254d16e7..0000000000 --- a/meta-oe/recipes-devtools/valijson/valijson_git.bb +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | SUMMARY = "Header-only C++ library for JSON Schema validation" | ||
| 2 | HOMEPAGE = "https://github.com/tristanpenman/valijson" | ||
| 3 | LICENSE = "BSD-2-Clause" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=015106c62262b2383f6c72063f0998f2" | ||
| 5 | |||
| 6 | SRC_URI = "git://github.com/tristanpenman/valijson.git" | ||
| 7 | PV = "0.1+git${SRCPV}" | ||
| 8 | |||
| 9 | SRCREV = "c2f22fddf599d04dc33fcd7ed257c698a05345d9" | ||
| 10 | |||
| 11 | S = "${WORKDIR}/git" | ||
| 12 | |||
| 13 | inherit cmake | ||
| 14 | |||
| 15 | EXTRA_OECMAKE = "-DINSTALL_HEADERS=1 -DBUILD_TESTS=0" | ||
| 16 | |||
| 17 | # valijson is a header only C++ library, so the main package will be empty. | ||
| 18 | RDEPENDS_${PN}-dev = "" | ||
| 19 | |||
| 20 | BBCLASSEXTEND = "native nativesdk" | ||
| 21 | |||
