Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] ghostscript: add cups build_option
Date: Thu, 17 Oct 2019 09:27:15 +0200	[thread overview]
Message-ID: <20191017072715.pNGujFTi2o0X7uM4GSErPInrQhOEApKX18XXMEHXCfs@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-15504@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 326 bytes --]

There is an updated pull request by ioraff against master on the void-packages repository

https://github.com/ioraff/void-packages ghostscript
https://github.com/void-linux/void-packages/pull/15504

ghostscript: add cups build_option


A patch file from https://github.com/void-linux/void-packages/pull/15504.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ghostscript-15504.patch --]
[-- Type: text/x-diff, Size: 2465 bytes --]

From ac75d516ce66b5b1f146b55e698bc276c66e1c8d Mon Sep 17 00:00:00 2001
From: Owen Rafferty <owenr@fferty.me>
Date: Tue, 15 Oct 2019 15:50:08 -0500
Subject: [PATCH] ghostscript: add cups build_option

---
 srcpkgs/ghostscript/template | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/srcpkgs/ghostscript/template b/srcpkgs/ghostscript/template
index 6e6507be8fd..3c8691ded8b 100644
--- a/srcpkgs/ghostscript/template
+++ b/srcpkgs/ghostscript/template
@@ -10,17 +10,20 @@ distfiles="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/downlo
 checksum=fc0f1fbacd3610c67a9f080487a0e021f14390c38a4b4df9723e2bdf2b90b619
 
 hostmakedepends="automake libtool pkg-config"
-makedepends="cups-devel dbus-devel fontconfig-devel jasper-devel jbig2dec-devel
+makedepends="$(vopt_if cups cups-devel) dbus-devel fontconfig-devel jasper-devel jbig2dec-devel
  lcms2-devel libXext-devel libXt-devel libopenjpeg2-devel libpaper-devel"
 depends="gsfonts"
 
+build_options="cups"
+build_options_default="cups"
+
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" ${makedepends}"
 fi
 
 pre_configure() {
 	# force it to use system libs.
-	rm -rf cups/libs freetype jbig2dec jpeg lcms2mt libpng openjpeg tiff zlib
+	rm -rf $(vopt_if cups cups/libs) freetype jbig2dec jpeg lcms2mt libpng openjpeg tiff zlib
 
 	# add missing LDFLAGS
 	sed -i 's/-L$(BINDIR)/& $(LDFLAGS)/g' base/unix-dll.mak
@@ -40,7 +43,8 @@ do_configure() {
 		--with-fontpath=/usr/share/fonts/Type1:/usr/share/fonts \
 		--enable-fontconfig --enable-freetype --enable-openjpeg \
 		--with-libpaper --without-luratech --without-omni \
-		--with-system-libtiff --disable-compile-inits
+		--with-system-libtiff --disable-compile-inits \
+		$(vopt_if cups '' '--disable-cups')
 
 	# configure libijs
 	cd ijs
@@ -58,8 +62,7 @@ do_build() {
 
 do_install() {
 	# install ghostscript
-	make DESTDIR=${DESTDIR} cups_serverroot=${DESTDIR}/etc/cups \
-		cups_serverbin=${DESTDIR}/usr/lib/cups install install-so
+	make DESTDIR=${DESTDIR} $(vopt_if cups 'cups_serverroot=${DESTDIR}/etc/cups cups_serverbin=${DESTDIR}/usr/lib/cups') install install-so
 	# install license
 	vlicense LICENSE
 
@@ -71,7 +74,7 @@ do_install() {
 	make DESTDIR=${DESTDIR} install
 
 	# Remove conflicting files with cups-filters.
-	rm -f ${DESTDIR}/usr/lib/cups/filter/{gstopxl,gstoraster}
+	$(vopt_if cups 'rm -f ${DESTDIR}/usr/lib/cups/filter/{gstopxl,gstoraster}')
 
 	cd ..
 	# Install missing file

  reply	other threads:[~2019-10-17  7:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-15 20:51 [PR PATCH] " voidlinux-github
2019-10-17  7:27 ` voidlinux-github [this message]
2019-10-17  7:27 ` [PR PATCH] [Updated] " voidlinux-github
2019-10-21 16:43 ` voidlinux-github
2019-10-21 17:37 ` [PR PATCH] [Updated] " voidlinux-github
2019-10-21 17:37 ` voidlinux-github
2019-10-23 20:30 ` voidlinux-github
2019-10-23 20:30 ` voidlinux-github
2019-10-27  6:21 ` [PR PATCH] [Merged]: " voidlinux-github

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191017072715.pNGujFTi2o0X7uM4GSErPInrQhOEApKX18XXMEHXCfs@z \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).