Download raw body.
[Maintainer Update] print/ghostscript/gnu: add g{pcl6,xps,pdl}
Picking up the work of SASANO Takyoshi, and considering sthen@'s comments,
here's my proposal to include gpcl6, gxps and gpdl.
I dropped --with-pdf from the originally proposed patch, because even there it
did not generate a gpdf binary, and frankly with the gs binary already including
a pdf interpreter I don't quite see the point in trying to somehow get a gpdf
binary built.
opinions? OKs?
On 2024-07-07 20:53, SASANO Takayoshi wrote:
>Hi,
>
>I want to use GhostPCL but there is no package.
>It looks easy to extend ghostscript ports, but everyone wants to use
>all-in-one package.
>
>Here is my diff. Is there any good idea?
Index: Makefile
===================================================================
RCS file: /cvs/ports/print/ghostscript/gnu/Makefile,v
diff -u -p -r1.132 Makefile
--- Makefile 17 Jul 2024 18:16:35 -0000 1.132
+++ Makefile 27 Jul 2024 12:16:41 -0000
@@ -1,11 +1,15 @@
COMMENT = PostScript and PDF interpreter
VERSION = 10.03.1
-DISTNAME = ghostscript-${VERSION}
+DISTNAME = ghostpdl-${VERSION}
+PKGNAME = ghostscript-${VERSION}
EXTRACT_SUFX = .tar.xz
CATEGORIES = lang print
-SHARED_LIBS = gs 18.2
-REVISION = 0
+SHARED_LIBS = gs 18.2
+SHARED_LIBS += gpcl6 18.2
+SHARED_LIBS += gpdl 18.2
+SHARED_LIBS += gxps 18.2
+REVISION = 1
SITES = https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${VERSION:S/.//g}/
@@ -54,6 +58,9 @@ CONFIGURE_STYLE = simple
CONFIGURE_ARGS = --prefix=${PREFIX}
CONFIGURE_ARGS += --with-gs=gs
+CONFIGURE_ARGS += --with-pcl=gpcl6
+CONFIGURE_ARGS += --with-xps=gxps
+CONFIGURE_ARGS += --with-gpdl=gpdl
CONFIGURE_ARGS += --enable-fontconfig
CONFIGURE_ARGS += --enable-openjpeg
CONFIGURE_ARGS += --without-tesseract
@@ -105,7 +112,11 @@ post-install:
.if !${FLAVOR:Mgtk}
rm -f ${PREFIX}/bin/gsx
.endif
-# rename the dynamic binary
- mv ${PREFIX}/bin/{gsc,gs}
+# rename the dynamic binaries
+ mv ${PREFIX}/bin/gs{c,}
+ mv ${PREFIX}/bin/gpcl6{c,}
+ mv ${PREFIX}/bin/gpdl{c,}
+ mv ${PREFIX}/bin/gxps{c,}
+
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/print/ghostscript/gnu/distinfo,v
diff -u -p -r1.26 distinfo
--- distinfo 20 May 2024 10:30:52 -0000 1.26
+++ distinfo 27 Jul 2024 12:16:41 -0000
@@ -1,2 +1,2 @@
-SHA256 (ghostscript-10.03.1.tar.xz) = FXIS7clrjMxAlHXc4uSYM/tEJ/FQxFUlje2WMsEGq+4=
-SIZE (ghostscript-10.03.1.tar.xz) = 68048612
+SHA256 (ghostpdl-10.03.1.tar.xz) = Be7kUmj2uyxhifmkBoXEYIygiUQ6k/KvX1GU2D3DaNs=
+SIZE (ghostpdl-10.03.1.tar.xz) = 73553744
Index: pkg/PFRAG.gtk
===================================================================
RCS file: /cvs/ports/print/ghostscript/gnu/pkg/PFRAG.gtk,v
diff -u -p -r1.11 PFRAG.gtk
--- pkg/PFRAG.gtk 17 Jul 2024 18:16:37 -0000 1.11
+++ pkg/PFRAG.gtk 27 Jul 2024 12:16:41 -0000
@@ -1,2 +1,2 @@
-@pkgpath print/ghostscript/gnu,a4,gtk
+@pkgpath print/ghostscript/gnu,a4${FLAVOR_STRING}
@bin bin/gsx
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/print/ghostscript/gnu/pkg/PLIST,v
diff -u -p -r1.37 PLIST
--- pkg/PLIST 17 Jul 2024 18:16:37 -0000 1.37
+++ pkg/PLIST 27 Jul 2024 12:16:41 -0000
@@ -3,6 +3,8 @@
@pkgpath print/ghostscript/gnu,a4,no_x11
bin/dvipdf
bin/eps2eps
+@bin bin/gpcl6
+@bin bin/gpdl
@bin bin/gs
bin/gsbj
bin/gsdj
@@ -10,6 +12,7 @@ bin/gsdj500
bin/gslj
bin/gslp
bin/gsnd
+@bin bin/gxps
bin/lprsetup.sh
bin/pdf2dsc
bin/pdf2ps
@@ -32,7 +35,17 @@ include/ghostscript/gdevdsp.h
include/ghostscript/gserrors.h
include/ghostscript/iapi.h
include/ghostscript/ierrors.h
+include/ghostscript/plapi.h
+@so lib/libgpcl6.so
+lib/libgpcl6.so.18
+@lib lib/libgpcl6.so.${LIBgpcl6_VERSION}
+@so lib/libgpdl.so
+lib/libgpdl.so.18
+@lib lib/libgpdl.so.${LIBgpdl_VERSION}
@lib lib/libgs.so.${LIBgs_VERSION}
+@so lib/libgxps.so
+lib/libgxps.so.18
+@lib lib/libgxps.so.${LIBgxps_VERSION}
@man man/man1/dvipdf.1
@man man/man1/eps2eps.1
@man man/man1/gs.1
[Maintainer Update] print/ghostscript/gnu: add g{pcl6,xps,pdl}