app-text/ghostscript-gpl: fix cross-compile

cross compiling fails with error
```
configure: error: libcups/libcupsimage not found
```

set target config for `CUPSCONFIG` in cross build

Bug: https://bugs.gentoo.org/982024
Signed-off-by: Pepper Gray <hello@peppergray.xyz>
Part-of: https://github.com/gentoo/gentoo/pull/46756
Closes: https://github.com/gentoo/gentoo/pull/46756
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Pepper Gray
2026-09-05 19:29:26 +02:00
committed by Sam James
parent 4db786c74b
commit b355a3e35f
2 changed files with 7 additions and 1 deletions

View File

@@ -159,6 +159,9 @@ src_configure() {
FONTPATH="${FONTPATH}${FONTPATH:+:}${EPREFIX}${path}"
done
# use target config in cross build, bug #982024
use cups && local -x CUPSCONFIG="${ESYSROOT}/usr/bin/cups-config"
# Do not add --enable-dynamic here, it's not supported fully upstream
# https://bugs.ghostscript.com/show_bug.cgi?id=705895
# bug #884707

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -146,6 +146,9 @@ src_configure() {
FONTPATH="${FONTPATH}${FONTPATH:+:}${EPREFIX}${path}"
done
# use target config in cross build, bug #982024
use cups && local -x CUPSCONFIG="${ESYSROOT}/usr/bin/cups-config"
# Do not add --enable-dynamic here, it's not supported fully upstream
# https://bugs.ghostscript.com/show_bug.cgi?id=705895
# bug #884707