* [meta-oe][PATCH] yaml-cpp: add new recipe
@ 2020-12-25 14:56 Ramon Fried
2020-12-25 15:18 ` [oe] " Vincent Prince
0 siblings, 1 reply; 3+ messages in thread
From: Ramon Fried @ 2020-12-25 14:56 UTC (permalink / raw)
To: openembedded-devel; +Cc: Ramon Fried
yaml-cpp is a YAML parser and emitter in C++
matching the YAML 1.2 spec.
Signed-off-by: Ramon Fried <rfried.dev@gmail.com>
---
.../yaml-cpp/yaml-cpp_0.6.3.bb | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
create mode 100644 meta-oe/recipes-support/yaml-cpp/yaml-cpp_0.6.3.bb
diff --git a/meta-oe/recipes-support/yaml-cpp/yaml-cpp_0.6.3.bb b/meta-oe/recipes-support/yaml-cpp/yaml-cpp_0.6.3.bb
new file mode 100644
index 000000000..48e9c6fba
--- /dev/null
+++ b/meta-oe/recipes-support/yaml-cpp/yaml-cpp_0.6.3.bb
@@ -0,0 +1,24 @@
+SUMMARY = "yaml-cpp parser and emitter library"
+DESCRIPTION = "yaml-cpp is a YAML parser and emitter in C++ matching the YAML 1.2 spec."
+HOMEPAGE = "https://github.com/jbeder/yaml-cpp"
+SECTION = "devel"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=6a8aaf0595c2efc1a9c2e0913e9c1a2c"
+
+PV = "+git${SRCPV}"
+# yaml-cpp releases are stored as archive files in github.
+# download the exact revision of release
+SRC_URI = "git://github.com/jbeder/yaml-cpp.git"
+SRCREV = "9a3624205e8774953ef18f57067b3426c1c5ada6"
+
+S = "${WORKDIR}/git"
+
+inherit cmake
+
+FILES_${PN} = "${libdir}/libyaml-cpp.so.*"
+EXTRA_OECMAKE = "-DYAML_CPP_BUILD_TESTS=OFF -DYAML_BUILD_SHARED_LIBS=ON -DYAML_CPP_BUILD_TOOLS=OFF"
+
+do_install_append() {
+ install -d ${D}${includedir}/yaml-cpp
+ cp -r ${S}/include/yaml-cpp ${D}${includedir}/yaml-cpp
+}
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [oe] [meta-oe][PATCH] yaml-cpp: add new recipe
2020-12-25 14:56 [meta-oe][PATCH] yaml-cpp: add new recipe Ramon Fried
@ 2020-12-25 15:18 ` Vincent Prince
2020-12-25 20:19 ` Ramon Fried
0 siblings, 1 reply; 3+ messages in thread
From: Vincent Prince @ 2020-12-25 15:18 UTC (permalink / raw)
To: Ramon Fried; +Cc: openembeded-devel
[-- Attachment #1: Type: text/plain, Size: 1913 bytes --]
Hi,
I think PV is wrongly set to " +git${SRCPV}" as the 9a362 commit
corresponds exactly to the 0.6.4 version.
Also, I'm not sure FILES_${PN} and do_install_append is required as Yocto
should put those files directly to the right place?
Best regards,
Vincent
Le ven. 25 déc. 2020 à 15:55, Ramon Fried <rfried.dev@gmail.com> a écrit :
> yaml-cpp is a YAML parser and emitter in C++
> matching the YAML 1.2 spec.
>
> Signed-off-by: Ramon Fried <rfried.dev@gmail.com>
> ---
> .../yaml-cpp/yaml-cpp_0.6.3.bb | 24 +++++++++++++++++++
> 1 file changed, 24 insertions(+)
> create mode 100644 meta-oe/recipes-support/yaml-cpp/yaml-cpp_0.6.3.bb
>
> diff --git a/meta-oe/recipes-support/yaml-cpp/yaml-cpp_0.6.3.bb
> b/meta-oe/recipes-support/yaml-cpp/yaml-cpp_0.6.3.bb
> new file mode 100644
> index 000000000..48e9c6fba
> --- /dev/null
> +++ b/meta-oe/recipes-support/yaml-cpp/yaml-cpp_0.6.3.bb
> @@ -0,0 +1,24 @@
> +SUMMARY = "yaml-cpp parser and emitter library"
> +DESCRIPTION = "yaml-cpp is a YAML parser and emitter in C++ matching the
> YAML 1.2 spec."
> +HOMEPAGE = "https://github.com/jbeder/yaml-cpp"
> +SECTION = "devel"
> +LICENSE = "MIT"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=6a8aaf0595c2efc1a9c2e0913e9c1a2c"
> +
> +PV = "+git${SRCPV}"
> +# yaml-cpp releases are stored as archive files in github.
> +# download the exact revision of release
> +SRC_URI = "git://github.com/jbeder/yaml-cpp.git"
> +SRCREV = "9a3624205e8774953ef18f57067b3426c1c5ada6"
> +
> +S = "${WORKDIR}/git"
> +
> +inherit cmake
> +
> +FILES_${PN} = "${libdir}/libyaml-cpp.so.*"
> +EXTRA_OECMAKE = "-DYAML_CPP_BUILD_TESTS=OFF -DYAML_BUILD_SHARED_LIBS=ON
> -DYAML_CPP_BUILD_TOOLS=OFF"
> +
> +do_install_append() {
> + install -d ${D}${includedir}/yaml-cpp
> + cp -r ${S}/include/yaml-cpp ${D}${includedir}/yaml-cpp
> +}
> --
> 2.17.1
>
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 3085 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [oe] [meta-oe][PATCH] yaml-cpp: add new recipe
2020-12-25 15:18 ` [oe] " Vincent Prince
@ 2020-12-25 20:19 ` Ramon Fried
0 siblings, 0 replies; 3+ messages in thread
From: Ramon Fried @ 2020-12-25 20:19 UTC (permalink / raw)
To: Vincent Prince; +Cc: openembeded-devel
On Fri, Dec 25, 2020 at 5:19 PM Vincent Prince
<vincent.prince.fr@gmail.com> wrote:
>
> Hi,
>
> I think PV is wrongly set to " +git${SRCPV}" as the 9a362 commit corresponds exactly to the 0.6.4 version.
Yes, it was added by devtool, I removed the line.
> Also, I'm not sure FILES_${PN} and do_install_append is required as Yocto should put those files directly to the right place?
It's supposed to, I don't recall why I added those line, I'll try
again without them. I think I didn't see them installed in SDK.
>
> Best regards,
> Vincent
>
> Le ven. 25 déc. 2020 à 15:55, Ramon Fried <rfried.dev@gmail.com> a écrit :
>>
>> yaml-cpp is a YAML parser and emitter in C++
>> matching the YAML 1.2 spec.
>>
>> Signed-off-by: Ramon Fried <rfried.dev@gmail.com>
>> ---
>> .../yaml-cpp/yaml-cpp_0.6.3.bb | 24 +++++++++++++++++++
>> 1 file changed, 24 insertions(+)
>> create mode 100644 meta-oe/recipes-support/yaml-cpp/yaml-cpp_0.6.3.bb
>>
>> diff --git a/meta-oe/recipes-support/yaml-cpp/yaml-cpp_0.6.3.bb b/meta-oe/recipes-support/yaml-cpp/yaml-cpp_0.6.3.bb
>> new file mode 100644
>> index 000000000..48e9c6fba
>> --- /dev/null
>> +++ b/meta-oe/recipes-support/yaml-cpp/yaml-cpp_0.6.3.bb
>> @@ -0,0 +1,24 @@
>> +SUMMARY = "yaml-cpp parser and emitter library"
>> +DESCRIPTION = "yaml-cpp is a YAML parser and emitter in C++ matching the YAML 1.2 spec."
>> +HOMEPAGE = "https://github.com/jbeder/yaml-cpp"
>> +SECTION = "devel"
>> +LICENSE = "MIT"
>> +LIC_FILES_CHKSUM = "file://LICENSE;md5=6a8aaf0595c2efc1a9c2e0913e9c1a2c"
>> +
>> +PV = "+git${SRCPV}"
>> +# yaml-cpp releases are stored as archive files in github.
>> +# download the exact revision of release
>> +SRC_URI = "git://github.com/jbeder/yaml-cpp.git"
>> +SRCREV = "9a3624205e8774953ef18f57067b3426c1c5ada6"
>> +
>> +S = "${WORKDIR}/git"
>> +
>> +inherit cmake
>> +
>> +FILES_${PN} = "${libdir}/libyaml-cpp.so.*"
>> +EXTRA_OECMAKE = "-DYAML_CPP_BUILD_TESTS=OFF -DYAML_BUILD_SHARED_LIBS=ON -DYAML_CPP_BUILD_TOOLS=OFF"
>> +
>> +do_install_append() {
>> + install -d ${D}${includedir}/yaml-cpp
>> + cp -r ${S}/include/yaml-cpp ${D}${includedir}/yaml-cpp
>> +}
>> --
>> 2.17.1
>>
>>
>>
>>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-12-25 20:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-25 14:56 [meta-oe][PATCH] yaml-cpp: add new recipe Ramon Fried
2020-12-25 15:18 ` [oe] " Vincent Prince
2020-12-25 20:19 ` Ramon Fried
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.