Do not hardcode fonts path in pstoraster and fix it while here.

Create ${SYSCONFDIR}/cups/ with the correct group ownership.

Tweaks from and ok kili@ (maintainer).
This commit is contained in:
ajacoutot 2011-03-02 07:10:55 +00:00
parent 8b4546975f
commit 8722c5a062
3 changed files with 21 additions and 3 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.81 2010/11/22 09:34:10 espie Exp $
# $OpenBSD: Makefile,v 1.82 2011/03/02 07:10:55 ajacoutot Exp $
COMMENT= GNU PostScript interpreter
VERSION= 8.63
DISTNAME= ghostscript-${VERSION}
REVISION= 15
REVISION= 16
CATEGORIES= print lang
SHARED_LIBS= gs 11.0
@ -150,6 +150,9 @@ post-extract:
ln -s src/unix-gcc.mak ${WRKDIST}/Makefile
cd ${WRKSRC} && rm -rf zlib ijs jpeg libpng
pre-configure:
${SUBST_CMD} ${WRKSRC}/cups/pstoraster
pre-build:
mkdir -p ${WRKDIST}/obj

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-cups_pstoraster,v 1.1 2011/03/02 07:10:55 ajacoutot Exp $
--- cups/pstoraster.orig Tue Feb 22 13:29:14 2011
+++ cups/pstoraster Tue Feb 22 13:29:27 2011
@@ -27,7 +27,7 @@ exec_prefix=${prefix}
bindir=${exec_prefix}/bin
# Set the library/font path...
-GS_LIB="${CUPS_FONTPATH:=/usr/share/cups/fonts}"
+GS_LIB="${CUPS_FONTPATH:=${LOCALBASE}/share/cups/fonts}"
export GS_LIB
# Options we use with Ghostscript...

View File

@ -1,6 +1,7 @@
@comment $OpenBSD: PLIST,v 1.17 2009/01/19 12:46:23 kili Exp $
@comment $OpenBSD: PLIST,v 1.18 2011/03/02 07:10:55 ajacoutot Exp $
@pkgpath print/ghostscript/afpl${FLAVOR_STRING}
@pkgpath print/ghostscript/gnu${FLAVOR_STRING},cups
@newgroup _cups:541
%%SHARED%%
bin/bdftops
bin/dumphint
@ -425,7 +426,9 @@ share/ghostscript/${VERSION}/doc/Xfonts.htm
share/ghostscript/${VERSION}/doc/gs.css
share/ghostscript/${VERSION}/doc/index.html
share/ghostscript/${VERSION}/examples/
@group _cups
@sample ${SYSCONFDIR}/cups/
@group
share/ghostscript/${VERSION}/examples/alphabet.ps
share/ghostscript/${VERSION}/examples/annots.pdf
share/ghostscript/${VERSION}/examples/chess.ps