Skip to contentSkip to conversation

glaze: improve recipe

PATCH In review Frede Hoey Braendstrup 2 participants 2 messages Jan 20

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 glaze: improve recipe

The initial revision was lacking in some aspects. This is a followup to that

---
 meta-oe/recipes-support/glaze/glaze_7.0.1.bb | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)
meta-oe/recipes-support/glaze/glaze_7.0.1.bb +14 -4
index f92777a25f..b11176cb52 100644
@@ -1,13 +1,23 @@
-DESCRIPTION = "Extremely fast, in memory, JSON and reflection library for modern C++. BEVE, CBOR, CSV, MessagePack, TOML, EETF "
-HOMEPAGE = "https://stephenberry.github.io/glaze/"
+SUMMARY = "Extremely fast, in memory, JSON and reflection library for modern C++. BEVE, CBOR, CSV, MessagePack, TOML, EETF "
+HOMEPAGE = "https://github.com/stephenberry/glaze/"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=ea4d29875d83fbbf50485c846dbbbed8"
 
-SRC_URI = "git://github.com/stephenberry/glaze;protocol=https;branch=main;tag=${PV}"
+SRC_URI = "git://github.com/stephenberry/glaze;protocol=https;branch=main;tag=v${PV}"
 
 SRCREV = "a4af950700b8af2659f0d4a37a18a1b9c5300593"
 
 inherit cmake
 
-EXTRA_OECMAKE = "-Dglaze_BUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -Dglaze_ENABLE_FUZZING=OFF"
+EXTRA_OECMAKE = "-Dglaze_BUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -Dglaze_ENABLE_FUZZING=OFF -Dglaze_DEVELOPER_MODE=OFF"
 
+do_install:append() {
+    install -d ${D}${datadir}/cmake/${BPN}
+    mv -f ${D}${datadir}/${BPN}/*.cmake ${D}${datadir}/cmake/${BPN}
+    rmdir -p --ignore-fail-on-non-empty ${D}${datadir}/${BPN}
+}
+
+# Glaze is a header-only C++ library, so the main package will be empty.
+ALLOW_EMPTY:${PN} = "1"
+
+BBCLASSEXTEND = "native"
#1 lore raw

Please merge/squash the changes into a single commit and send it as v2, with description of what changed.

Quoted 65 lines · Frederik Brændstrup via lists.openembedded.org

The initial revision was lacking in some aspects. This is a followup to that

---
 meta-oe/recipes-support/glaze/glaze_7.0.1.bb | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)
meta-oe/recipes-support/glaze/glaze_7.0.1.bb +0 -1
index f92777a25f..b11176cb52 100644
@@ -1,13 +1,23 @@
-DESCRIPTION = "Extremely fast, in memory, JSON and reflection library for

modern C++. BEVE, CBOR, CSV, MessagePack, TOML, EETF "

meta-oe/recipes-support/glaze/glaze_7.0.1.bb +1 -1
-HOMEPAGE = "https://stephenberry.github.io/glaze/"
+SUMMARY = "Extremely fast, in memory, JSON and reflection library for

modern C++. BEVE, CBOR, CSV, MessagePack, TOML, EETF "

meta-oe/recipes-support/glaze/glaze_7.0.1.bb +1 -1
+HOMEPAGE = "https://github.com/stephenberry/glaze/"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=ea4d29875d83fbbf50485c846dbbbed8"
 
-SRC_URI = "git://

github.com/stephenberry/glaze;protocol=https;branch=main;tag=${PV}
<http://github.com/stephenberry/glaze;protocol=https;branch=main;tag=$%7BPV%7D>
"
+SRC_URI = "git:// github.com/stephenberry/glaze;protocol=https;branch=main;tag=v${PV}
<http://github.com/stephenberry/glaze;protocol=https;branch=main;tag=v$%7BPV%7D>
"

SRCREV = "a4af950700b8af2659f0d4a37a18a1b9c5300593"

inherit cmake

meta-oe/recipes-support/glaze/glaze_7.0.1.bb +11 -5
-EXTRA_OECMAKE = "-Dglaze_BUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF
-Dglaze_ENABLE_FUZZING=OFF"
+EXTRA_OECMAKE = "-Dglaze_BUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF
-Dglaze_ENABLE_FUZZING=OFF -Dglaze_DEVELOPER_MODE=OFF"
 
+do_install:append() {
+    install -d ${D}${datadir}/cmake/${BPN}
+    mv -f ${D}${datadir}/${BPN}/*.cmake ${D}${datadir}/cmake/${BPN}
+    rmdir -p --ignore-fail-on-non-empty ${D}${datadir}/${BPN}
+}
+
+# Glaze is a header-only C++ library, so the main package will be empty.
+ALLOW_EMPTY:${PN} = "1"
+
+BBCLASSEXTEND = "native"
--
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group. View/Reply Online (#123679):
https://lists.openembedded.org/g/openembedded-devel/message/123679
Mute This Topic: https://lists.openembedded.org/mt/117369931/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-