* [meta-oe][PATCH v2] valijson: Add recipe
@ 2018-10-10 23:13 James Feist
2018-10-11 3:50 ` Khem Raj
0 siblings, 1 reply; 2+ messages in thread
From: James Feist @ 2018-10-10 23:13 UTC (permalink / raw)
To: openembedded-devel
valijson is a header only c++ library for JSON
schema validation.
Signed-off-by: James Feist <james.feist@linux.intel.com>
---
Changes since v1:
- Fixed license
- Simplified symlink
- Removed extra whitespace
.../recipes-devtools/valijson/valijson_git.bb | 26 +++++++++++++++++++
1 file changed, 26 insertions(+)
create mode 100644 meta-oe/recipes-devtools/valijson/valijson_git.bb
diff --git a/meta-oe/recipes-devtools/valijson/valijson_git.bb b/meta-oe/recipes-devtools/valijson/valijson_git.bb
new file mode 100644
index 000000000..e7edab646
--- /dev/null
+++ b/meta-oe/recipes-devtools/valijson/valijson_git.bb
@@ -0,0 +1,26 @@
+SUMMARY = "Header-only C++ library for JSON Schema validation"
+HOMEPAGE = "https://github.com/tristanpenman/valijson"
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=015106c62262b2383f6c72063f0998f2"
+
+SRC_URI = "git://github.com/tristanpenman/valijson.git"
+PV = "0.1+git${SRCPV}"
+
+SRCREV = "c2f22fddf599d04dc33fcd7ed257c698a05345d9"
+
+S = "${WORKDIR}/git"
+
+inherit cmake
+
+EXTRA_OECMAKE = "-DINSTALL_HEADERS=1 -DBUILD_TESTS=0"
+
+# valijson is a header only C++ library, so the main package will be empty.
+RDEPENDS_${PN}-dev = ""
+
+BBCLASSEXTEND = "native nativesdk"
+
+# valijson expects json.hpp where nlohmann-json_git.bb installs
+# nlohmann/json.hpp, this allows usage via json.hpp
+do_install_append() {
+ ln -s nlohmann/json.hpp ${D}${includedir}/json.hpp
+}
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [meta-oe][PATCH v2] valijson: Add recipe
2018-10-10 23:13 [meta-oe][PATCH v2] valijson: Add recipe James Feist
@ 2018-10-11 3:50 ` Khem Raj
0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2018-10-11 3:50 UTC (permalink / raw)
To: James Feist, openembedded-devel
[-- Attachment #1.1: Type: text/plain, Size: 1834 bytes --]
Hi James
On 10/10/18 4:13 PM, James Feist wrote:
> valijson is a header only c++ library for JSON
> schema validation.
>
> Signed-off-by: James Feist <james.feist@linux.intel.com>
> ---
>
> Changes since v1:
> - Fixed license
> - Simplified symlink
> - Removed extra whitespace
>
> .../recipes-devtools/valijson/valijson_git.bb | 26 +++++++++++++++++++
> 1 file changed, 26 insertions(+)
> create mode 100644 meta-oe/recipes-devtools/valijson/valijson_git.bb
>
> diff --git a/meta-oe/recipes-devtools/valijson/valijson_git.bb b/meta-oe/recipes-devtools/valijson/valijson_git.bb
> new file mode 100644
> index 000000000..e7edab646
> --- /dev/null
> +++ b/meta-oe/recipes-devtools/valijson/valijson_git.bb
> @@ -0,0 +1,26 @@
> +SUMMARY = "Header-only C++ library for JSON Schema validation"
> +HOMEPAGE = "https://github.com/tristanpenman/valijson"
> +LICENSE = "BSD-2-Clause"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=015106c62262b2383f6c72063f0998f2"
> +
> +SRC_URI = "git://github.com/tristanpenman/valijson.git"
> +PV = "0.1+git${SRCPV}"
> +
> +SRCREV = "c2f22fddf599d04dc33fcd7ed257c698a05345d9"
> +
> +S = "${WORKDIR}/git"
> +
> +inherit cmake
> +
> +EXTRA_OECMAKE = "-DINSTALL_HEADERS=1 -DBUILD_TESTS=0"
> +
> +# valijson is a header only C++ library, so the main package will be empty.
> +RDEPENDS_${PN}-dev = ""
> +
> +BBCLASSEXTEND = "native nativesdk"
> +
> +# valijson expects json.hpp where nlohmann-json_git.bb installs
> +# nlohmann/json.hpp, this allows usage via json.hpp
> +do_install_append() {
> + ln -s nlohmann/json.hpp ${D}${includedir}/json.hpp
> +}
its better to install this symlink in nlohmann-json package recipe since
that will make sure that we do not have dangling symlinks in cases where
this dependencies are not together.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 201 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-10-11 3:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-10 23:13 [meta-oe][PATCH v2] valijson: Add recipe James Feist
2018-10-11 3:50 ` Khem Raj
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.