* [ITA] ghostscript, ghostscript-fonts-std, ghostscript-fonts-other
@ 2017-10-30 18:43 Ken Brown
2017-10-30 21:39 ` Marco Atzeri
2017-10-30 21:55 ` Yaakov Selkowitz
0 siblings, 2 replies; 6+ messages in thread
From: Ken Brown @ 2017-10-30 18:43 UTC (permalink / raw)
To: cygwin-apps
[-- Attachment #1: Type: text/plain, Size: 1657 bytes --]
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
[-- Attachment #2: ghostscript.cygport --]
[-- Type: text/plain, Size: 3547 bytes --]
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 "
[-- Attachment #3: ghostscript-unixlpr.patch --]
[-- Type: text/plain, Size: 580 bytes --]
--- 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
[-- Attachment #4: ghostscript-fonts-std.cygport --]
[-- Type: text/plain, Size: 593 bytes --]
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"
[-- Attachment #5: ghostscript-fonts-other.cygport --]
[-- Type: text/plain, Size: 546 bytes --]
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"
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ITA] ghostscript, ghostscript-fonts-std, ghostscript-fonts-other
2017-10-30 18:43 [ITA] ghostscript, ghostscript-fonts-std, ghostscript-fonts-other Ken Brown
@ 2017-10-30 21:39 ` Marco Atzeri
2017-10-31 14:56 ` Andrew Schulman
2017-10-30 21:55 ` Yaakov Selkowitz
1 sibling, 1 reply; 6+ messages in thread
From: Marco Atzeri @ 2017-10-30 21:39 UTC (permalink / raw)
To: cygwin-apps
On 30/10/2017 19:43, Ken Brown wrote:
> 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.
>
GTG
all 3 package are yours.
I think the last version of the standard fonts are here
http://git.ghostscript.com/?p=urw-core35-fonts.git;a=tree
Regards
Marco
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ITA] ghostscript, ghostscript-fonts-std, ghostscript-fonts-other
2017-10-30 18:43 [ITA] ghostscript, ghostscript-fonts-std, ghostscript-fonts-other Ken Brown
2017-10-30 21:39 ` Marco Atzeri
@ 2017-10-30 21:55 ` Yaakov Selkowitz
2017-10-31 16:56 ` Ken Brown
1 sibling, 1 reply; 6+ messages in thread
From: Yaakov Selkowitz @ 2017-10-30 21:55 UTC (permalink / raw)
To: cygwin-apps
[-- Attachment #1.1: Type: text/plain, Size: 1224 bytes --]
On 2017-10-30 13:43, Ken Brown wrote:
> 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.
Makes sense.
Didn't do a complete review, but noticed the following:
> --with-fontpath=/usr/share/${ORIG_PN}/fonts:/usr/share/fonts/TTF:/usr/share/fonts/Type1
The last two directories no longer exist[1]; just use /usr/share/fonts
(provided that subdirectories are automatically included). It would
also be nice if the updated URW fonts[2] would also be installed under
e.g. /usr/share/fonts/urw-base35. You may also want to poppler-data
instead of the bundled CMap's, as in Fedora[3].
[1] https://cygwin.com/ml/cygwin-announce/2015-09/msg00019.html
[2]
http://pkgs.fedoraproject.org/cgit/rpms/urw-base35-fonts.git/tree/urw-base35-fonts.spec
[3]
http://pkgs.fedoraproject.org/cgit/rpms/ghostscript.git/tree/ghostscript.spec
--
Yaakov
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ITA] ghostscript, ghostscript-fonts-std, ghostscript-fonts-other
2017-10-30 21:55 ` Yaakov Selkowitz
@ 2017-10-31 16:56 ` Ken Brown
2017-10-31 18:19 ` Ken Brown
0 siblings, 1 reply; 6+ messages in thread
From: Ken Brown @ 2017-10-31 16:56 UTC (permalink / raw)
To: cygwin-apps
[-- Attachment #1: Type: text/plain, Size: 332 bytes --]
On 10/30/2017 5:55 PM, Yaakov Selkowitz wrote:
> It would
> also be nice if the updated URW fonts[2] would also be installed under
> e.g. /usr/share/fonts/urw-base35.
Is the attached what you had in mind? Following Fedora, I only packaged
*.t1 and *.afm files, even though the source package also contains *.otf
and *.ttf.
Ken
[-- Attachment #2: urw-base35-fonts.cygport --]
[-- Type: text/plain, Size: 755 bytes --]
# http://pkgs.fedoraproject.org/cgit/rpms/urw-base35-fonts.git/tree/urw-base35-fonts.spec
inherit font
NAME="urw-base35-fonts"
VERSION=20170801
RELEASE=1
CATEGORY="Graphics X11"
SUMMARY="The 35 fonts in the PostScript Level 2 Core Font Set"
DESCRIPTION="The 35 fonts in the PostScript Level 2 Core Font Set"
HOMEPAGE="https://github.com/ArtifexSoftware/urw-base35-fonts/"
SRC_URI="${HOMEPAGE}/archive/${VERSION}.tar.gz"
OBSOLETES="ghostscript-fonts-std"
src_compile() {
:
}
src_test() {
:
}
src_install() {
cd ${S}
fontinto ${NAME%-fonts}
dofont fonts/*.t1
dofont fonts/*.afm
insinto /usr/share/ghostscript/fonts
doins fonts/*.t1
doins fonts/*.afm
cd fontconfig
for f in *.conf
do
newfontconf ${f} 60-${f}
done
}
ARCH="noarch"
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ITA] ghostscript, ghostscript-fonts-std, ghostscript-fonts-other
2017-10-31 16:56 ` Ken Brown
@ 2017-10-31 18:19 ` Ken Brown
0 siblings, 0 replies; 6+ messages in thread
From: Ken Brown @ 2017-10-31 18:19 UTC (permalink / raw)
To: cygwin-apps
On 10/31/2017 12:56 PM, Ken Brown wrote:
> On 10/30/2017 5:55 PM, Yaakov Selkowitz wrote:
>> It would
>> also be nice if the updated URW fonts[2] would also be installed under
>> e.g. /usr/share/fonts/urw-base35.
>
> Is the attached what you had in mind? Following Fedora, I only packaged
> *.t1 and *.afm files, even though the source package also contains *.otf
> and *.ttf.
Or did I misunderstand the second "also" in your mail above? Wouldn't
it suffice to just install the fonts in /usr/share/fonts/urw-base35 and
add this to the ghostscript search path?
Ken
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-10-31 18:19 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-30 18:43 [ITA] ghostscript, ghostscript-fonts-std, ghostscript-fonts-other Ken Brown
2017-10-30 21:39 ` Marco Atzeri
2017-10-31 14:56 ` Andrew Schulman
2017-10-30 21:55 ` Yaakov Selkowitz
2017-10-31 16:56 ` Ken Brown
2017-10-31 18:19 ` Ken Brown
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 read-only IMAP folder(s) and NNTP newsgroup(s).