Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 1 | DESCRIPTION = "a graphical user interface that allows the user to change print settings" |
| 2 | LICENSE = "GPL-2.0-only" |
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 4 | |
| 5 | SRC_URI = "git://github.com/OpenPrinting/system-config-printer.git;protocol=https;branch=master" |
| 6 | |
| 7 | SRCREV = "895d3dec50c93bfd4f142bac9bfcc13051bf84cb" |
| 8 | S = "${WORKDIR}/git" |
| 9 | |
| 10 | inherit autotools gettext pkgconfig python3native features_check |
| 11 | |
Patrick Williams | b542dec | 2023-06-09 01:26:37 -0500 | [diff] [blame] | 12 | REQUIRED_DISTRO_FEATURES = "gobject-introspection-data" |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 13 | |
Patrick Williams | e760df8 | 2023-05-26 11:10:49 -0500 | [diff] [blame] | 14 | DEPENDS = "cups glib-2.0 libusb xmlto-native desktop-file-utils-native autoconf-archive-native" |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 15 | |
Patrick Williams | da29531 | 2023-12-05 16:48:56 -0600 | [diff] [blame] | 16 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd polkit', d)}" |
Patrick Williams | e760df8 | 2023-05-26 11:10:49 -0500 | [diff] [blame] | 17 | PACKAGECONFIG[systemd] = ",--without-systemdsystemunitdir,systemd" |
Patrick Williams | da29531 | 2023-12-05 16:48:56 -0600 | [diff] [blame] | 18 | PACKAGECONFIG[polkit] = ",,,cups-pk-helper" |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 19 | |
| 20 | do_configure:prepend() { |
| 21 | # This file is not provided if fetching from git but required for configure |
| 22 | touch ${S}/ChangeLog |
| 23 | } |
| 24 | |
Patrick Williams | e760df8 | 2023-05-26 11:10:49 -0500 | [diff] [blame] | 25 | do_install:append() { |
| 26 | for f in __init__.cpython-311.pyc cupshelpers.cpython-311.pyc \ |
| 27 | config.cpython-311.pyc ppds.cpython-311.pyc \ |
| 28 | installdriver.cpython-311.pyc openprinting.cpython-311.pyc \ |
| 29 | xmldriverprefs.cpython-311.pyc; do |
| 30 | rm -rf ${D}${PYTHON_SITEPACKAGES_DIR}/cupshelpers/__pycache__/$f |
| 31 | done |
| 32 | } |
| 33 | |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 34 | FILES:${PN} += "${libdir} ${datadir}" |
| 35 | |
| 36 | RDEPENDS:${PN} = " \ |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 37 | cups \ |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 38 | dbus-x11 \ |
| 39 | gtk+3 \ |
| 40 | libnotify \ |
| 41 | python3-core \ |
| 42 | python3-dbus \ |
| 43 | python3-firewall \ |
| 44 | python3-pycups \ |
| 45 | python3-pycurl \ |
| 46 | python3-pygobject \ |
| 47 | " |