Re: [ITA] ghostscript, ghostscript-fonts-std, ghostscript-fonts-other

2017-10-31 Thread Ken Brown

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



Re: [ITA] ghostscript, ghostscript-fonts-std, ghostscript-fonts-other

2017-10-31 Thread Ken Brown

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
# 
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"


Re: [ITA] ghostscript, ghostscript-fonts-std, ghostscript-fonts-other

2017-10-31 Thread Andrew Schulman
> 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.

Gold stars awarded! https://cygwin.com/goldstars/#KB



Re: [ITA] ghostscript, ghostscript-fonts-std, ghostscript-fonts-other

2017-10-30 Thread Yaakov Selkowitz
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



signature.asc
Description: OpenPGP digital signature


Re: [ITA] ghostscript, ghostscript-fonts-std, ghostscript-fonts-other

2017-10-30 Thread Marco Atzeri

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


[ITA] ghostscript, ghostscript-fonts-std, ghostscript-fonts-other

2017-10-30 Thread Ken Brown

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

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   \