cups-filters: fix ghostscript handling

ghostscript is not needed at build-time (it only needs to be enabled in the
configuration step) but it is required at run-time for two of this recipe's
packages.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Trevor Woerner 2023-03-09 12:16:23 -05:00 committed by Khem Raj
parent 8f9f20cede
commit b9a8ebf069

View File

@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=2d77679ce6a2cc4d873d4ebbf2a401e6"
SECTION = "console/utils"
DEPENDS = "cups glib-2.0 glib-2.0-native dbus dbus-glib lcms ghostscript poppler qpdf libpng libexif"
DEPENDS = "cups glib-2.0 glib-2.0-native dbus dbus-glib lcms poppler qpdf libpng libexif"
DEPENDS:class-native = "poppler-native glib-2.0-native dbus-native pkgconfig-native gettext-native libpng-native"
SRC_URI = "https://github.com/OpenPrinting/${BPN}/releases/download/${PV}/${BP}.tar.xz \
@ -51,6 +51,7 @@ PACKAGES =+ "\
FILES:${PN}-gst = "\
${libexecdir}/cups/filter/gsto* \
"
RDEPENDS:${PN}-gst += "ghostscript"
FILES:${PN}-data = "\
${datadir}/cups/data \
@ -71,6 +72,8 @@ FILES:${PN} += "\
${datadir}/cups/ppdc \
${datadir}/cups/banners \
"
RDEPENDS:${PN} += "bash"
RDEPENDS:${PN} += "ghostscript"
do_install:append() {
# remove braille dir
@ -79,5 +82,3 @@ do_install:append() {
# remove sysroot path contamination from pkgconfig file
sed -i -e 's:${STAGING_DIR_TARGET}::' ${D}/${libdir}/pkgconfig/libcupsfilters.pc
}
RDEPENDS:${PN} += "bash"