[ITA] ghostscript, ghostscript-fonts-std, ghostscript-fonts-other
Ken Brown
kbrown@cornell.edu
Mon Oct 30 18:43:00 GMT 2017
My cygport files and patch are attached. The two fonts packages
don't need updating, but their cygport files had to be updated, so I'm
attaching them for future reference.
In the case of ghostscript, the current version is 9.22, but it
doesn't work with preview-latex:
https://bugs.ghostscript.com/show_bug.cgi?id=698680
So I propose to start with 9.21 until that issue is resolved.
Package files
=============
D=http://sanibeltranquility.com/cygwin
${D}/x86/release/ghostscript/ghostscript-9.21-1-src.tar.xz
${D}/x86/release/ghostscript/ghostscript-9.21-1.hint
${D}/x86/release/ghostscript/ghostscript-9.21-1.tar.xz
${D}/x86/release/ghostscript/ghostscript-debuginfo/ghostscript-debuginfo-9.21-1.hint
${D}/x86/release/ghostscript/ghostscript-debuginfo/ghostscript-debuginfo-9.21-1.tar.xz
${D}/x86/release/ghostscript/libgs9/libgs9-9.21-1.hint
${D}/x86/release/ghostscript/libgs9/libgs9-9.21-1.tar.xz
${D}/x86/release/ghostscript/libgs-devel/libgs-devel-9.21-1.hint
${D}/x86/release/ghostscript/libgs-devel/libgs-devel-9.21-1.tar.xz
${D}/x86_64/release/ghostscript/ghostscript-9.21-1-src.tar.xz
${D}/x86_64/release/ghostscript/ghostscript-9.21-1.hint
${D}/x86_64/release/ghostscript/ghostscript-9.21-1.tar.xz
${D}/x86_64/release/ghostscript/ghostscript-debuginfo/ghostscript-debuginfo-9.21-1.hint
${D}/x86_64/release/ghostscript/ghostscript-debuginfo/ghostscript-debuginfo-9.21-1.tar.xz
${D}/x86_64/release/ghostscript/libgs9/libgs9-9.21-1.hint
${D}/x86_64/release/ghostscript/libgs9/libgs9-9.21-1.tar.xz
${D}/x86_64/release/ghostscript/libgs-devel/libgs-devel-9.21-1.hint
${D}/x86_64/release/ghostscript/libgs-devel/libgs-devel-9.21-1.tar.xz
Ken
-------------- next part --------------
NAME="ghostscript"
VERSION=9.21
RELEASE=1
CATEGORY="Graphics"
SUMMARY="GPL PostScript interpreter"
DESCRIPTION="GNU Ghostscript is a Postscript interpreter capable of converting PS
files into a number of printer output formats. Ghostscript can also
render PS files into a number of graphics file formats."
ORIG_PN="ghostscript"
GENTOO_PN="ghostscript-gpl"
HOMEPAGE="https://www.ghostscript.com/"
SRC_URI="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs`echo ${VERSION} | sed 's/\.//'`/${NAME}-${VERSION}.tar.gz"
PATCH_URI="ghostscript-unixlpr.patch"
DEPEND="
libfontconfig-devel
libfreetype-devel
libiconv-devel
libidn-devel
libjpeg-devel
liblcms2-devel
libpaper-devel
libpng-devel
libtiff-devel
libX11-devel
libXt-devel
zlib-devel
"
abi=9
PKG_NAMES="${PN} libgs${abi} libgs-devel"
ghostscript_SUMMARY="${SUMMARY} (utilities)"
ghostscript_REQUIRES="ghostscript-fonts-other ghostscript-fonts-std"
ghostscript_CONTENTS="
--exclude=usr/bin/cyggs-${abi}.dll
usr/bin/
usr/share/
"
libgs9_CATEGORY="Libs ${CATEGORY}"
libgs9_SUMMARY="${SUMMARY} (runtime)"
libgs9_CONTENTS="usr/bin/cyggs-${abi}.dll"
libgs_devel_CATEGORY="Devel Libs ${CATEGORY}"
libgs_devel_SUMMARY="${SUMMARY} (development)"
libgs_devel_CONTENTS="
usr/include/
usr/lib/
"
DISTCLEANFILES="cups/pstopxl cups/pstoraster"
CYGPORT_USE_UNSTABLE_API=1
src_unpack_hook() {
rm -rf expat/ freetype/ jpeg/ lcms{,2}/ libpng/ tiff/ zlib/
}
src_compile() {
cd ${S}
cygautoreconf
lndirs
cd ${B}
cygconf \
--enable-fontconfig \
--enable-freetype \
--disable-cups \
--disable-gtk \
--disable-compile-inits \
--with-libidn \
--with-libpaper \
--with-system-libtiff \
--with-ijs \
--with-jbig2dec \
--with-x \
--with-drivers=ALL \
--with-fontpath=/usr/share/${ORIG_PN}/fonts:/usr/share/fonts/TTF:/usr/share/fonts/Type1
cygmake -j1 so \
GLSRCDIR=${S}/base \
PSSRCDIR=${S}/psi \
PSLIBDIR=${S}/lib \
CONTRIBDIR=${S}/contrib \
ICCSRCDIR=${S}/icclib \
IJSSRCDIR=${S}/ijs \
IMDISRCDIR=${S}/imdi \
JBIG2SRCDIR=${B}/jbig2dec \
LCMS2SRCDIR=/usr \
WHICH_CMS=lcms2 \
GS=gs \
GS_SONAME='libgs-$(GS_VERSION_MAJOR).dll.a' \
GS_SONAME_MAJOR='libgs-$(GS_VERSION_MAJOR).dll.a' \
GS_SONAME_MAJOR_MINOR='cyggs-$(GS_VERSION_MAJOR).dll' \
GS_LDFLAGS_SO='-shared -Wl,--out-implib,sobin/libgs.dll.a'
}
src_test() {
:
}
src_install() {
cd ${B}
cygmake soinstall \
DESTDIR=${D} \
docdir=/usr/share/doc/${PN} \
GLSRCDIR=${S}/base \
PSSRCDIR=${S}/psi \
PSLIBDIR=${S}/lib \
CONTRIBDIR=${S}/contrib \
ICCSRCDIR=${S}/icclib \
IJSSRCDIR=${S}/ijs \
IMDISRCDIR=${S}/imdi \
JBIG2SRCDIR=${S}/jbig2dec \
LCMS2SRCDIR=/usr \
WHICH_CMS=lcms2 \
GS=gs \
GS_SONAME='libgs-$(GS_VERSION_MAJOR).dll.a' \
GS_SONAME_MAJOR='libgs-$(GS_VERSION_MAJOR).dll.a' \
GS_SONAME_MAJOR_MINOR='cyggs-$(GS_VERSION_MAJOR).dll' \
GS_LDFLAGS_SO='-shared -Wl,--out-implib,sobin/libgs.dll.a'
mv ${D}/usr/bin/gs{c,}.exe
rm -f ${D}/usr/bin/gsx.exe
mv ${D}/usr/lib/*.dll ${D}/usr/bin
rm ${D}/usr/lib/*.a
dolib ${B}/sobin/libgs.dll.a
}
DOCS="doc/COPYING doc/Details9.htm doc/History9.htm doc/Ps2ps2.htm "
-------------- next part --------------
--- origsrc/ghostscript-9.07/lib/unix-lpr.sh 2013-02-14 08:58:16.000000000 +0100
+++ src/ghostscript-9.07/lib/unix-lpr.sh 2013-04-21 16:36:31.884900000 +0200
@@ -19,12 +19,12 @@
# executable name set in the makefile
GS_EXECUTABLE=gs
-PBMPLUSPATH=/usr/local/bin
-PSFILTERPATH=/usr/local/lib/ghostscript
+PBMPLUSPATH=/usr/bin
+PSFILTERPATH=/usr/share/ghostscript
LOCALPATH=/usr/local/bin
-X11HOME=/usr/X11R6
+X11HOME=/usr
-PATH=/bin:/usr/bin:/usr/ucb:/usr/etc
+PATH=/bin:/usr/bin
PATH=${PATH}\:${LOCALPATH}\:${PBMPLUSPATH}\:${PSFILTERPATH}
LD_LIBRARY_PATH=${X11HOME}/lib
-------------- next part --------------
NAME="ghostscript-fonts-std"
VERSION=8.11
RELEASE=1
SUMMARY=" PostScript fonts for ghostscript"
DESCRIPTION="35 commercial-quality Type 1 basic PostScript fonts for ghostscript"
CATEGORY="Graphics"
HOMEPAGE="https://sourceforge.net/projects/gs-fonts/"
SRC_URI="mirror://sourceforge/gs-fonts/${P}.tar.gz"
SRC_DIR=fonts
src_compile() {
:
}
src_test() {
:
}
src_install() {
dodir /usr/share/ghostscript
cp -r ${S} ${D}/usr/share/ghostscript
cd ${D}/usr/share/ghostscript/fonts/
rm -rf CYGWIN-PATCHES TODO README COPYING ChangeLog README.tweaks
}
DOCS="README.tweaks"
ARCH="noarch"
-------------- next part --------------
NAME="ghostscript-fonts-other"
VERSION=6.0
RELEASE=1
SUMMARY="Miscellaneous fonts for ghostscript"
DESCRIPTION="Miscellaneous fonts derived from the free Hershey fonts, with improvements for ghostscript"
CATEGORY="Graphics"
HOMEPAGE="https://sourceforge.net/projects/gs-fonts/"
SRC_URI="mirror://sourceforge/gs-fonts/${P}.tar.gz"
SRC_DIR=fonts
src_compile() {
:
}
src_test() {
:
}
src_install() {
dodir /usr/share/ghostscript
cp -r ${S} ${D}/usr/share/ghostscript
rm -rf ${D}/usr/share/ghostscript/fonts/CYGWIN-PATCHES
}
ARCH="noarch"
More information about the Cygwin-apps
mailing list