blob: f0ff24f376b10511c792080cb775a726ca757986 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
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 xmlto-native desktop-file-utils-native autoconf-archive-native"
PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
PACKAGECONFIG[systemd] = ",--without-systemdsystemunitdir,systemd"
do_configure:prepend() {
# This file is not provided if fetching from git but required for configure
touch ${S}/ChangeLog
}
do_install:append() {
for f in __init__.cpython-311.pyc cupshelpers.cpython-311.pyc \
config.cpython-311.pyc ppds.cpython-311.pyc \
installdriver.cpython-311.pyc openprinting.cpython-311.pyc \
xmldriverprefs.cpython-311.pyc; do
rm -rf ${D}${PYTHON_SITEPACKAGES_DIR}/cupshelpers/__pycache__/$f
done
}
FILES:${PN} += "${libdir} ${datadir}"
RDEPENDS:${PN} = " \
dbus-x11 \
gtk+3 \
libnotify \
python3-core \
python3-dbus \
python3-firewall \
python3-pycups \
python3-pycurl \
python3-pygobject \
"
|