print/afm: update for testing

Pedro F. Giffuni giffunip at tutopia.com
Mon Sep 12 00:12:48 UTC 2011


Hello;

OpenOffice come with a package of 35 Adobe
Font Metric files. I think these are useful
basically for Windows but not for UNIX: am
I correct?

I did an update to print/afm so that it uses
the OOo file, which is somewhat bigger.

I am hesitating if I should submit this as print/afm
is used by hylafax and some of the names have
changed. Perhaps someone with hylafax may test
the attached patch?

best regards,

Pedro. 
-------------- next part --------------
diff -ruN afm.orig/Makefile afm/Makefile
--- afm.orig/Makefile	2011-09-11 16:47:30.000000000 +0000
+++ afm/Makefile	2011-09-11 18:26:06.000000000 +0000
@@ -6,19 +6,19 @@
 #
 
 PORTNAME=	afm
-PORTVERSION=	1.0
+PORTVERSION=	1.314
 CATEGORIES=	print
-MASTER_SITES=	ftp://ftp.sgi.com/sgi/fax/source/
-DISTNAME=	afm
-EXTRACT_SUFX=	-tar.Z
+MASTER_SITES=	${MASTER_SITE_TEX_CTAN}
+MASTER_SITE_SUBDIR=	fonts/adobe/afm
+PKGNAMEPREFIX=	adobe-
+DISTNAME=	Adobe-Core35_AFMs-314
 
 MAINTAINER=	ports at FreeBSD.org
-COMMENT=	Adobe Font Metrics
+COMMENT=	Adobe Core 35 AFM Files with 314 Glyph Entries
 
-pre-patch:
-	@${RM} -rf ${WRKSRC}/RCS
-
-do-build:
-	@${TRUE}
+NO_BUILD=	yes
 
+post-extract:
+	${INSTALL} ${FILESDIR}/Make.in ${WRKSRC}/Makefile
+	
 .include <bsd.port.mk>
diff -ruN afm.orig/distinfo afm/distinfo
--- afm.orig/distinfo	2011-09-11 16:47:30.000000000 +0000
+++ afm/distinfo	2011-09-11 17:56:45.000000000 +0000
@@ -1,3 +1,2 @@
-MD5 (afm-tar.Z) = d3a69ff512639d14890b4788603ee9fb
-SHA256 (afm-tar.Z) = 5e1f566eded6bcdd2afe537b24f4b918426cb4f0d3649e23e4cb56985a7755c2
-SIZE (afm-tar.Z) = 154268
+SHA256 (Adobe-Core35_AFMs-314.tar.gz) = 6e6c53064ef6f40891ad72c06fab9f3c8fdcda80e03c9d0b21244cb1d4bf030b
+SIZE (Adobe-Core35_AFMs-314.tar.gz) = 315122
diff -ruN afm.orig/files/Make.in afm/files/Make.in
--- afm.orig/files/Make.in	1970-01-01 00:00:00.000000000 +0000
+++ afm/files/Make.in	2011-09-11 18:05:29.000000000 +0000
@@ -0,0 +1,84 @@
+#	$Header: /usr/people/sam/fax/afm/RCS/Makefile,v 1.3 93/04/18 16:07:05 sam Exp $
+#
+# FlexFAX Facsimile Software
+#
+# Copyright (c) 1990, 1991, 1992, 1993 Sam Leffler
+# Copyright (c) 1991, 1992, 1993 Silicon Graphics, Inc.
+# 
+# Permission to use, copy, modify, distribute, and sell this software and 
+# its documentation for any purpose is hereby granted without fee, provided
+# that (i) the above copyright notices and this permission notice appear in
+# all copies of the software and related documentation, and (ii) the names of
+# Sam Leffler and Silicon Graphics may not be used in any advertising or
+# publicity relating to the software without the specific, prior written
+# permission of Sam Leffler and Silicon Graphics.
+# 
+# THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
+# EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
+# WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
+# 
+# IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
+# ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
+# OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+# WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
+# LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
+# OF THIS SOFTWARE.
+#
+
+#
+# This directory contains Adobe font metric files for the most
+# common PostScript fonts.  They were obtained from the dvips
+# distribution that is available on ftp.uu.net (use
+#
+#     site index dvipsafm
+#
+# to locate them).  Note the copyright on them.  Note that the
+# lptops program expects them to reside in files without a ".afm"
+# suffix.
+#
+AFMDIR=${PREFIX}/lib/afm
+INSTALL=install
+
+AFMFILES=\
+	Courier-Bold.afm			\
+	Courier-BoldOblique.afm			\
+	Courier-Oblique.afm			\
+	Courier.afm				\
+	Helvetica-Bold.afm			\
+	Helvetica-BoldOblique.afm		\
+	Helvetica-Narrow.afm			\
+	Helvetica-NarrowBold.afm		\
+	Helvetica-NarrowBoldOblique.afm		\
+	Helvetica-NarrowOblique.afm		\
+	Helvetica-Oblique.afm			\
+	Helvetica.afm				\
+	ITCAvantGarde-Book.afm			\
+	ITCAvantGarde-BookOblique.afm		\
+	ITCAvantGarde-Demi.afm			\
+	ITCAvantGarde-DemiOblique.afm		\
+	ITCBookman-Demi.afm			\
+	ITCBookman-DemiItalic.afm		\
+	ITCBookman-Light.afm			\
+	ITCBookman-LightItalic.afm		\
+	ITCZapfChancery-MediumItalic.afm	\
+	NewCenturySchlbk-Bold.afm		\
+	NewCenturySchlbk-BoldItalic.afm		\
+	NewCenturySchlbk-Italic.afm		\
+	NewCenturySchlbk-Roman.afm		\
+	Palatino-Bold.afm			\
+	Palatino-BoldItalic.afm			\
+	Palatino-Italic.afm			\
+	Palatino-Roman.afm			\
+	Symbol.afm				\
+	Times-Bold.afm				\
+	Times-BoldItalic.afm			\
+	Times-Italic.afm			\
+	Times-Roman.afm				\
+	ZapfDingbats.afm			\
+	${NULL}
+
+install: ${AFMFILES}
+	[ -d ${AFMDIR} ] || mkdir ${AFMDIR}
+	for i in ${AFMFILES}; do \
+	    ${INSTALL} -c -o bin -g bin -m 444 $$i  ${AFMDIR}/`basename $$i .afm`; \
+	done
diff -ruN afm.orig/files/patch-aa afm/files/patch-aa
--- afm.orig/files/patch-aa	2011-09-11 16:47:30.000000000 +0000
+++ afm/files/patch-aa	1970-01-01 00:00:00.000000000 +0000
@@ -1,37 +0,0 @@
-*** Makefile	Sun Apr 18 16:07:07 1993
---- ../../Makefile.new	Wed Nov 23 06:42:43 1994
-***************
-*** 36,43 ****
-  # lptops program expects them to reside in files without a ".afm"
-  # suffix.
-  #
-! DEPTH=..
-! include ${DEPTH}/defs
-  
-  AFMFILES=\
-  	AvantGarde-Book.afm \
---- 36,43 ----
-  # lptops program expects them to reside in files without a ".afm"
-  # suffix.
-  #
-! AFMDIR=${PREFIX}/lib/afm
-! INSTALL=install
-  
-  AFMFILES=\
-  	AvantGarde-Book.afm \
-***************
-*** 80,85 ****
-  	${NULL}
-  
-  install: ${AFMFILES}
-  	for i in ${AFMFILES}; do \
-! 	    ${INSTALL} -F ${AFMDIR} -m 444 -src $$i -O `basename $$i .afm`; \
-  	done
---- 80,86 ----
-  	${NULL}
-  
-  install: ${AFMFILES}
-+ 	[ -d ${AFMDIR} ] || mkdir ${AFMDIR}
-  	for i in ${AFMFILES}; do \
-! 	    ${INSTALL} -c -o bin -g bin -m 444 $$i  ${AFMDIR}/`basename $$i .afm`; \
-  	done
diff -ruN afm.orig/pkg-descr afm/pkg-descr
--- afm.orig/pkg-descr	2011-09-11 16:47:30.000000000 +0000
+++ afm/pkg-descr	2011-09-11 17:56:45.000000000 +0000
@@ -1,2 +1,14 @@
-Adobe Font Metrics. Describes the sizes of different postscript
-types. Used by FlexFAX among others.
+Adobe Font Metrics.
+
+	This file and the 35 PostScript(R) AFM files it accompanies may be
+used, copied, and distributed for any purpose and without charge, with
+or without modification, provided that all copyright notices are
+retained; that the AFM files are not distributed without this file; that
+all modifications to this file or any of the AFM files are prominently
+noted in the modified file(s); and that this paragraph is not modified.
+Adobe Systems has no responsibility or obligation to support the use of
+the AFM files.
+
+---
+Describes the sizes of different postscript types.
+Used by FlexFAX among others.
diff -ruN afm.orig/pkg-plist afm/pkg-plist
--- afm.orig/pkg-plist	2011-09-11 16:47:30.000000000 +0000
+++ afm/pkg-plist	2011-09-11 17:56:45.000000000 +0000
@@ -1,23 +1,24 @@
-lib/afm/AvantGarde-Book
-lib/afm/AvantGarde-BookOblique
-lib/afm/AvantGarde-Demi
-lib/afm/AvantGarde-DemiOblique
-lib/afm/Bookman-Demi
-lib/afm/Bookman-DemiItalic
-lib/afm/Bookman-Light
-lib/afm/Bookman-LightItalic
-lib/afm/Courier
 lib/afm/Courier-Bold
 lib/afm/Courier-BoldOblique
 lib/afm/Courier-Oblique
-lib/afm/Helvetica
+lib/afm/Courier
 lib/afm/Helvetica-Bold
 lib/afm/Helvetica-BoldOblique
 lib/afm/Helvetica-Narrow
-lib/afm/Helvetica-Narrow-Bold
-lib/afm/Helvetica-Narrow-BoldOblique
-lib/afm/Helvetica-Narrow-Oblique
+lib/afm/Helvetica-NarrowBold
+lib/afm/Helvetica-NarrowBoldOblique
+lib/afm/Helvetica-NarrowOblique
 lib/afm/Helvetica-Oblique
+lib/afm/Helvetica
+lib/afm/ITCAvantGarde-Book
+lib/afm/ITCAvantGarde-BookOblique
+lib/afm/ITCAvantGarde-Demi
+lib/afm/ITCAvantGarde-DemiOblique
+lib/afm/ITCBookman-Demi
+lib/afm/ITCBookman-DemiItalic
+lib/afm/ITCBookman-Light
+lib/afm/ITCBookman-LightItalic
+lib/afm/ITCZapfChancery-MediumItalic
 lib/afm/NewCenturySchlbk-Bold
 lib/afm/NewCenturySchlbk-BoldItalic
 lib/afm/NewCenturySchlbk-Italic
@@ -25,14 +26,11 @@
 lib/afm/Palatino-Bold
 lib/afm/Palatino-BoldItalic
 lib/afm/Palatino-Italic
-lib/afm/Palatino-Oblique
 lib/afm/Palatino-Roman
 lib/afm/Symbol
 lib/afm/Times-Bold
 lib/afm/Times-BoldItalic
 lib/afm/Times-Italic
-lib/afm/Times-Oblique
 lib/afm/Times-Roman
-lib/afm/ZapfChancery-MediumItalic
 lib/afm/ZapfDingbats
 @dirrm lib/afm


More information about the freebsd-ports mailing list