diff mbox series

[meta-oe,2/3] system-config-printer: add recipe

Message ID 20230131170848.367522-2-f_l_k@t-online.de
State Under Review
Headers show
Series [meta-oe,1/3] python3-pycups: add recipe | expand

Commit Message

Markus Volk Jan. 31, 2023, 5:08 p.m. UTC
The OpenPrinting gui for cups configuration

Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 .../system-config-printer_1.5.18.bb           | 36 +++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 meta-oe/recipes-printing/system-config-printer/system-config-printer_1.5.18.bb

Comments

Khem Raj Jan. 31, 2023, 5:56 p.m. UTC | #1
On Tue, Jan 31, 2023 at 9:09 AM Markus Volk <f_l_k@t-online.de> wrote:
>
> The OpenPrinting gui for cups configuration
>
> Signed-off-by: Markus Volk <f_l_k@t-online.de>
> ---
>  .../system-config-printer_1.5.18.bb           | 36 +++++++++++++++++++
>  1 file changed, 36 insertions(+)
>  create mode 100644 meta-oe/recipes-printing/system-config-printer/system-config-printer_1.5.18.bb
>
> diff --git a/meta-oe/recipes-printing/system-config-printer/system-config-printer_1.5.18.bb b/meta-oe/recipes-printing/system-config-printer/system-config-printer_1.5.18.bb
> new file mode 100644
> index 000000000..57b238929
> --- /dev/null
> +++ b/meta-oe/recipes-printing/system-config-printer/system-config-printer_1.5.18.bb
> @@ -0,0 +1,36 @@
> +DESCRIPTION = "a graphical user interface that allows the user to change print settings"
> +LICENSE = "GPL-2.0-only"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
> +
> +SRC_URI = "git://github.com/OpenPrinting/system-config-printer.git;protocol=https;branch=master"
> +
> +SRCREV = "895d3dec50c93bfd4f142bac9bfcc13051bf84cb"
> +S = "${WORKDIR}/git"
> +
> +inherit autotools gettext pkgconfig python3native features_check
> +
> +REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
> +
> +DEPENDS = "cups glib-2.0 libusb systemd xmlto-native intltool-native desktop-file-utils-native"
> +
> +do_configure:prepend() {
> +    # This file is not provided if fetching from git but required for configure
> +    touch ${S}/ChangeLog
> +}
> +
> +FILES:${PN} += "${libdir} ${datadir}"
> +
> +RDEPENDS:${PN} = " \
> +    dbus-x11 \
> +    gtk+3 \
> +    libnotify \
> +    python3 \
> +    python3-dbus \
> +    python3-firewall \
> +    python3-pycups \
> +    python3-pycurl \
> +    python3-pygobject \
> +"
> +
> +# ignore 'requires /usr/bin/python3, but no providers found in RDEPENDS:system-config-printer? [file-rdeps]'

maybe change this to

#!/usr/bin/env python3

> +INSANE_SKIP:${PN} = "file-rdeps"
> --
> 2.34.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#100882): https://lists.openembedded.org/g/openembedded-devel/message/100882
> Mute This Topic: https://lists.openembedded.org/mt/96656636/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Markus Volk Jan. 31, 2023, 6:46 p.m. UTC | #2
Am Di, 31. Jan 2023 um 09:56:29 -0800 schrieb Khem Raj 
<raj.khem@gmail.com>:
> maybe change this to
> 
> #!/usr/bin/env python3

But that would be about 50 files in which the shebang would have to be 
changed. They are all '#!/usr/bin/python3'.
Martin Jansa Jan. 31, 2023, 6:53 p.m. UTC | #3
Doesn't python3-core in RDEPENDS:${PN} resolve that?

On Tue, Jan 31, 2023 at 7:46 PM Markus Volk <f_l_k@t-online.de> wrote:

> Am Di, 31. Jan 2023 um 09:56:29 -0800 schrieb Khem Raj <raj.khem@gmail.com
> >:
>
> maybe change this to #!/usr/bin/env python3
>
>
> But that would be about 50 files in which the shebang would have to be
> changed. They are all '#!/usr/bin/python3'.
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#100884):
> https://lists.openembedded.org/g/openembedded-devel/message/100884
> Mute This Topic: https://lists.openembedded.org/mt/96656636/3617156
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
> Martin.Jansa@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
Markus Volk Jan. 31, 2023, 6:57 p.m. UTC | #4
Am Di, 31. Jan 2023 um 19:53:45 +0100 schrieb Martin Jansa 
<Martin.Jansa@gmail.com>:
> Doesn't python3-core in RDEPENDS:${PN} resolve that?

nice, it does :)
diff mbox series

Patch

diff --git a/meta-oe/recipes-printing/system-config-printer/system-config-printer_1.5.18.bb b/meta-oe/recipes-printing/system-config-printer/system-config-printer_1.5.18.bb
new file mode 100644
index 000000000..57b238929
--- /dev/null
+++ b/meta-oe/recipes-printing/system-config-printer/system-config-printer_1.5.18.bb
@@ -0,0 +1,36 @@ 
+DESCRIPTION = "a graphical user interface that allows the user to change print settings"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+SRC_URI = "git://github.com/OpenPrinting/system-config-printer.git;protocol=https;branch=master"
+
+SRCREV = "895d3dec50c93bfd4f142bac9bfcc13051bf84cb"
+S = "${WORKDIR}/git"
+
+inherit autotools gettext pkgconfig python3native features_check
+
+REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
+
+DEPENDS = "cups glib-2.0 libusb systemd xmlto-native intltool-native desktop-file-utils-native"
+
+do_configure:prepend() {
+    # This file is not provided if fetching from git but required for configure
+    touch ${S}/ChangeLog
+}
+
+FILES:${PN} += "${libdir} ${datadir}"
+
+RDEPENDS:${PN} = " \
+    dbus-x11 \
+    gtk+3 \
+    libnotify \
+    python3 \
+    python3-dbus \
+    python3-firewall \
+    python3-pycups \
+    python3-pycurl \
+    python3-pygobject \
+"
+
+# ignore 'requires /usr/bin/python3, but no providers found in RDEPENDS:system-config-printer? [file-rdeps]'
+INSANE_SKIP:${PN} = "file-rdeps"