Skip to contentSkip to conversation

malcontent: add recipe

PATCH Markus Volk 1 participant 1 message May 12, 2024 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

v4 adds gobject-introspection to required distrofeatures for malcontent-ui

Quoted 152 lines · Markus Volk

malcontent is an optional dependency for flatpak and gnome-software

- Building the malcontent gtk4-ui leads to circular dependency malcontent <-> flatpak
Add a separate package for malcontent-ui to avoid this and to make
malcontent-control
buildable.

Signed-off-by Markus Volk <[email protected] <mailto:[email protected]>>
---
 .../malcontent/malcontent-ui_0.12.0.bb        | 49 
+++++++++++++++++++
 .../malcontent/malcontent_0.12.0.bb           | 41 ++++++++++++++++
 2 files changed, 90 insertions(+)
 create mode 100644 
meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb
 create mode 100644 

meta-oe/recipes-gnome/malcontent/malcontent_0.12.0.bb

meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb new file +4 -0
new file mode 100644
index 000000000..effd181b1
@@ -0,0 +1,49 @@
+SUMMARY = "User-Interface for malcontent."
+HOMEPAGE = "<https://gitlab.freedesktop.org/pwithnall/malcontent>"
+LICENSE = "LGPL-2.1-only"
+LIC_FILES_CHKSUM = 

"file://COPYING;md5=4fbd65380cdd255951079008b364516c" <file://copying;md5=4fbd65380cdd255951079008b364516c/>

meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb new file +2 -0
+
+SRC_URI = 

"git://gitlab.freedesktop.org/pwithnall/malcontent.git;protocol=https;branch=main"

meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb new file +22 -0
+
+S = "${WORKDIR}/git"
+SRCREV = "3ba80995bb25b7aeda7e21d547f9e39ff9a81736"
+
+DEPENDS = " \
+	accountsservice \
+	glib-2.0 \
+	glib-testing \
+	dbus \
+	desktop-file-utils-native \
+	itstool-native \
+	libpam \
+	malcontent \
+	polkit \
+	appstream \
+	flatpak \
+	libadwaita \
+	gtk4 \
+"
+
+GIR_MESON_OPTION = ""GTKIC_VERSION = "4"
+inherit  meson pkgconfig gtk-icon-cache gobject-introspection 

gettext features_check

meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb new file +7 -0
+
+REQUIRED_DISTRO_FEATURES = "pam polkit gobject-introspection"
+
+EXTRA_OEMESON = "-Dui=enabled"
+
+do_install() {
+	install -d ${D}${datadir}/gir-1.0 ${D}${libdir}/girepository-1.0 

${D}${bindir}

meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb new file +1 -0
+	install -d ${D}${datadir}/polkit-1/actions ${D}${datadir}/metainfo 

${D}${datadir}/applications

meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb new file +1 -0
+	install -m 0644 ${B}/libmalcontent-ui/MalcontentUi-1.gir 

${D}${datadir}/gir-1.0

meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb new file +1 -0
+	install -m 0644 ${B}/libmalcontent-ui/MalcontentUi-1.typelib 

${D}${libdir}/girepository-1.0

meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb new file +2 -0
+	ln -sf libmalcontent-ui-1.so.1 ${D}${libdir}/libmalcontent-ui-1.so
+	install -m 0644 ${B}/libmalcontent-ui/libmalcontent-ui-1.so.1 

${D}${libdir}

meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb new file +1 -0
+	install -m 0644 ${B}/libmalcontent-ui/libmalcontent-ui-1.so.0.12.0 

${D}${libdir}

meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb new file +1 -0
+	install -m 0755 ${B}/malcontent-control/malcontent-control 

${D}${bindir}

meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb new file +1 -0
+	install -m 0644 

${B}/malcontent-control/org.freedesktop.MalcontentControl.policy ${D}${datadir}/polkit-1/actions

meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb new file +1 -0
+	install -m 0644 

${B}/malcontent-control/org.freedesktop.MalcontentControl.appdata.xml ${D}${datadir}/metainfo

meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb new file +1 -0
+	install -m 0644 

${B}/malcontent-control/org.freedesktop.MalcontentControl.desktop ${D}${datadir}/applications

meta-oe/recipes-gnome/malcontent/malcontent-ui_0.12.0.bb new file +4 -0
+}
+
+FILES:${PN} = "${bindir} ${libdir} ${datadir}"
+
meta-oe/recipes-gnome/malcontent/malcontent_0.12.0.bb new file +1 -0
new file mode 100644
index 000000000..416751423
@@ -0,0 +1,41 @@
+SUMMARY = "malcontent implements support for restricting the type of 

content."

meta-oe/recipes-gnome/malcontent/malcontent_0.12.0.bb new file +3 -0
+HOMEPAGE = "<https://gitlab.freedesktop.org/pwithnall/malcontent>"
+LICENSE = "LGPL-2.1-only"
+LIC_FILES_CHKSUM = 

"file://COPYING;md5=4fbd65380cdd255951079008b364516c" <file://copying;md5=4fbd65380cdd255951079008b364516c/>

meta-oe/recipes-gnome/malcontent/malcontent_0.12.0.bb new file +2 -0
+
+SRC_URI = 

"git://gitlab.freedesktop.org/pwithnall/malcontent.git;protocol=https;branch=main"

meta-oe/recipes-gnome/malcontent/malcontent_0.12.0.bb new file +17 -0
+
+S = "${WORKDIR}/git"
+SRCREV = "3ba80995bb25b7aeda7e21d547f9e39ff9a81736"
+
+DEPENDS = " \
+	accountsservice \
+	glib-2.0 \
+	glib-testing \
+	dbus \
+	itstool-native \
+	libpam \
+	polkit \
+"
+
+GIR_MESON_OPTION = ""
+
+inherit  meson pkgconfig gobject-introspection gettext 

features_check useradd

meta-oe/recipes-gnome/malcontent/malcontent_0.12.0.bb new file +13 -1
+
+REQUIRED_DISTRO_FEATURES = "pam polkit gobject-introspection"
+
+PACKAGECONFIG ?= "ui"
+PACKAGECONFIG[ui] = ",,,malcontent-ui"
+
+EXTRA_OEMESON = "-Dui=disabled"
+
+USERADD_PACKAGES = "${PN}"
+USERADD_PARAM:${PN} = "--system --no-create-home --user-group 
--home-dir ${sysconfdir}/polkit-1 --shell /bin/nologin polkitd"
+
+do_install:append() {
+        # Fix up permissions on polkit rules.d to work with rpm4 

constraints

meta-oe/recipes-gnome/malcontent/malcontent_0.12.0.bb new file +5 -1
+        chmod 700 ${D}/${datadir}/polkit-1/rules.d
+        chown polkitd:root ${D}/${datadir}/polkit-1/rules.d
+}
+
+FILES:${PN} += "${libdir} ${datadir}"
--

2.44.0

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