summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hill <dirtyepic@gentoo.org>2007-07-16 02:30:10 +0000
committerRyan Hill <dirtyepic@gentoo.org>2007-07-16 02:30:10 +0000
commit3d8c7c33e58a2e60a4d48f6980f92a47bfaa2ab4 (patch)
treec1076afeb24a664e8b008c907fc2457d6db2fdf2 /app-text/ttf2pt1
parentFix broken Manifest. (diff)
downloadgentoo-2-3d8c7c33e58a2e60a4d48f6980f92a47bfaa2ab4.tar.gz
gentoo-2-3d8c7c33e58a2e60a4d48f6980f92a47bfaa2ab4.tar.bz2
gentoo-2-3d8c7c33e58a2e60a4d48f6980f92a47bfaa2ab4.zip
Fix support for converting freetype (otf) fonts. (bug #112680)
Version bump, rewrote ebuild. Added to font herd. (Portage version: 2.1.3_rc8)
Diffstat (limited to 'app-text/ttf2pt1')
-rw-r--r--app-text/ttf2pt1/ChangeLog12
-rw-r--r--app-text/ttf2pt1/files/digest-ttf2pt1-3.4.43
-rw-r--r--app-text/ttf2pt1/files/ttf2pt1-3.3.3-Makefile-gentoo.diff42
-rw-r--r--app-text/ttf2pt1/files/ttf2pt1-3.4.4-Makefile.patch82
-rw-r--r--app-text/ttf2pt1/files/ttf2pt1-3.4.4-freetype.patch11
-rw-r--r--app-text/ttf2pt1/metadata.xml5
-rw-r--r--app-text/ttf2pt1/ttf2pt1-3.4.4.ebuild44
7 files changed, 152 insertions, 47 deletions
diff --git a/app-text/ttf2pt1/ChangeLog b/app-text/ttf2pt1/ChangeLog
index e40d21da489c..602cdbd2a822 100644
--- a/app-text/ttf2pt1/ChangeLog
+++ b/app-text/ttf2pt1/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for app-text/ttf2pt1
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/ttf2pt1/ChangeLog,v 1.17 2007/06/20 14:00:17 angelos Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/ttf2pt1/ChangeLog,v 1.18 2007/07/16 02:30:10 dirtyepic Exp $
+
+*ttf2pt1-3.4.4 (16 Jul 2007)
+
+ 16 Jul 2007; Ryan Hill <dirtyepic@gentoo.org>
+ -files/ttf2pt1-3.3.3-Makefile-gentoo.diff,
+ +files/ttf2pt1-3.4.4-Makefile.patch, +files/ttf2pt1-3.4.4-freetype.patch,
+ metadata.xml, +ttf2pt1-3.4.4.ebuild:
+ Fix support for converting freetype (otf) fonts. (bug #112680)
+ Version bump, rewrote ebuild.
+ Added to font herd.
20 Jun 2007; Christoph Mende <angelos@gentoo.org> ttf2pt1-3.4.0.ebuild:
Added ~amd64 wrt bug 182251
diff --git a/app-text/ttf2pt1/files/digest-ttf2pt1-3.4.4 b/app-text/ttf2pt1/files/digest-ttf2pt1-3.4.4
new file mode 100644
index 000000000000..dfeae742a65e
--- /dev/null
+++ b/app-text/ttf2pt1/files/digest-ttf2pt1-3.4.4
@@ -0,0 +1,3 @@
+MD5 cb143c07cc83167875ca09ea720d4932 ttf2pt1-3.4.4.tgz 230547
+RMD160 f88d7a26b30fa02055fd12ce1450220bd52d8df2 ttf2pt1-3.4.4.tgz 230547
+SHA256 ae926288be910073883b5c8a3b8fc168fde52b91199fdf13e92d72328945e1d0 ttf2pt1-3.4.4.tgz 230547
diff --git a/app-text/ttf2pt1/files/ttf2pt1-3.3.3-Makefile-gentoo.diff b/app-text/ttf2pt1/files/ttf2pt1-3.3.3-Makefile-gentoo.diff
deleted file mode 100644
index 8588da518506..000000000000
--- a/app-text/ttf2pt1/files/ttf2pt1-3.3.3-Makefile-gentoo.diff
+++ /dev/null
@@ -1,42 +0,0 @@
---- ttf2pt1-3.3.3/Makefile.orig Tue Mar 20 08:28:51 2001
-+++ ttf2pt1-3.3.3/Makefile Tue Mar 20 08:33:03 2001
-@@ -60,18 +60,18 @@
- # (if the include and lib directory do not match your installation,
- # modify them), also uncomment LIBS_FT
- #
--#CFLAGS_FT = -DUSE_FREETYPE -I/usr/local/include
-+CFLAGS_FT = -DUSE_FREETYPE -I/usr/include/freetype2
-
- #
- # The FreeType-2 library flags (disabled by default)
-
--LIBS_FT=
-+#LIBS_FT=
-
- # To enable use of the FreeType-2 library
- # (if the include and lib directory do not match your installation,
- # modify them), also uncomment LIBS_FT
- #
--#LIBS_FT= -L/usr/local/lib -lfreetype
-+LIBS_FT= -L/usr/lib -lfreetype
-
- #
- # Preference of front-ends if multiple parsers match a file
-@@ -93,14 +93,14 @@
- # Installation-related stuff
- #
- # The base dir for installation and subdirs in it
--INSTDIR = /usr/local
-+INSTDIR = /usr
- # for binaries
- BINDIR = $(INSTDIR)/bin
- # for binaries of little general interest
--LIBXDIR = $(INSTDIR)/libexec/ttf2pt1
-+LIBXDIR = $(INSTDIR)/lib/ttf2pt1
- # for scripts, maps/encodings etc.
- SHAREDIR = $(INSTDIR)/share/ttf2pt1
--MANDIR = $(INSTDIR)/man
-+MANDIR = $(INSTDIR)/share/man
-
- # owner and group of installed files
- OWNER = root
diff --git a/app-text/ttf2pt1/files/ttf2pt1-3.4.4-Makefile.patch b/app-text/ttf2pt1/files/ttf2pt1-3.4.4-Makefile.patch
new file mode 100644
index 000000000000..6c760f43dd21
--- /dev/null
+++ b/app-text/ttf2pt1/files/ttf2pt1-3.4.4-Makefile.patch
@@ -0,0 +1,82 @@
+diff -Naur ttf2pt1-3.4.4-orig/Makefile ttf2pt1-3.4.4/Makefile
+--- ttf2pt1-3.4.4-orig/Makefile 2007-07-15 20:06:50.000000000 -0600
++++ ttf2pt1-3.4.4/Makefile 2007-07-15 20:12:40.000000000 -0600
+@@ -9,7 +9,7 @@
+ #
+ # Use GNU C even if it's not the default compiler
+ #
+-#CC=gcc
++CC=gcc
+ #
+ # Use the standard ANSI C compiler on HP-UX even if it's not default
+ #
+@@ -60,18 +60,18 @@
+ # (if the include and lib directory do not match your installation,
+ # modify them), also uncomment LIBS_FT
+ #
+-#CFLAGS_FT = -DUSE_FREETYPE -I/usr/local/include/freetype2 -I/usr/local/include
++CFLAGS_FT = -DUSE_FREETYPE -I/usr/include/freetype2 -I/usr/include
+
+ #
+ # The FreeType-2 library flags (disabled by default)
+
+-LIBS_FT=
++#LIBS_FT=
+
+ # To enable use of the FreeType-2 library
+ # (if the include and lib directory do not match your installation,
+ # modify them), also uncomment CFLAGS_FT
+ #
+-#LIBS_FT= -L/usr/local/lib -lfreetype
++LIBS_FT= -L/usr/lib -lfreetype
+
+ #
+ # The flags for C compiler for the Autotrace library (disabled by default).
+@@ -120,18 +120,18 @@
+ # Installation-related stuff
+ #
+ # The base dir for installation and subdirs in it
+-INSTDIR = /usr/local
++INSTDIR = /usr
+ # for binaries
+ BINDIR = $(INSTDIR)/bin
+ # for binaries of little general interest
+ LIBXDIR = $(INSTDIR)/libexec/ttf2pt1
+ # for scripts, maps/encodings etc.
+ SHAREDIR = $(INSTDIR)/share/ttf2pt1
+-MANDIR = $(INSTDIR)/man
++MANDIR = $(INSTDIR)/share/man
+
+ # owner and group of installed files
+ OWNER = root
+-GROUP = bin
++GROUP = root
+
+ # After you have configured the Makefile, comment out the following
+ # definition:
+@@ -244,17 +244,19 @@
+ chmod -R go-w $(SHAREDIR)
+ scripts/inst_file ttf2pt1 $(BINDIR)/ttf2pt1 $(OWNER) $(GROUP) 0755
+ [ -f $(BINDIR)/t1asm ] || scripts/inst_file t1asm $(LIBXDIR)/t1asm $(OWNER) $(GROUP) 0755
+- sed 's|^TTF2PT1_BINDIR=$$|TTF2PT1_BINDIR=$(BINDIR)|;\
+- s|^TTF2PT1_LIBXDIR=$$|TTF2PT1_LIBXDIR=$(LIBXDIR)|;\
+- s|^TTF2PT1_SHAREDIR=$$|TTF2PT1_SHAREDIR=$(SHAREDIR)|;' <scripts/convert >cvt.tmp
++ sed -e 's|^TTF2PT1_BINDIR=$$|TTF2PT1_BINDIR=$(BINDIR)|' \
++ -e 's|^TTF2PT1_LIBXDIR=$$|TTF2PT1_LIBXDIR=$(LIBXDIR)|' \
++ -e 's|^TTF2PT1_SHAREDIR=$$|TTF2PT1_SHAREDIR=$(SHAREDIR)|' \
++ <scripts/convert >cvt.tmp
+ scripts/inst_file cvt.tmp $(BINDIR)/ttf2pt1_convert $(OWNER) $(GROUP) 0755
+ scripts/inst_file cvt.tmp $(SHAREDIR)/scripts/convert $(OWNER) $(GROUP) 0755
+ rm cvt.tmp
+ scripts/inst_file scripts/x2gs $(BINDIR)/ttf2pt1_x2gs $(OWNER) $(GROUP) 0755
+ for i in $(MANS1); do { \
+- sed 's|TTF2PT1_BINDIR|$(BINDIR)|;\
+- s|TTF2PT1_LIBXDIR|$(LIBXDIR)|;\
+- s|TTF2PT1_SHAREDIR|$(SHAREDIR)|;' <$$i >$(MANDIR)/man1/$$i \
++ sed -e 's|TTF2PT1_BINDIR|$(BINDIR)|' \
++ -e 's|TTF2PT1_LIBXDIR|$(LIBXDIR)|' \
++ -e 's|TTF2PT1_SHAREDIR|$(SHAREDIR)|' \
++ <$$i >$(MANDIR)/man1/$$i \
+ && chown $(OWNER) $(MANDIR)/man1/$$i \
+ && chgrp $(GROUP) $(MANDIR)/man1/$$i \
+ && chmod 0644 $(MANDIR)/man1/$$i \
diff --git a/app-text/ttf2pt1/files/ttf2pt1-3.4.4-freetype.patch b/app-text/ttf2pt1/files/ttf2pt1-3.4.4-freetype.patch
new file mode 100644
index 000000000000..8257742ebe59
--- /dev/null
+++ b/app-text/ttf2pt1/files/ttf2pt1-3.4.4-freetype.patch
@@ -0,0 +1,11 @@
+diff -Naur ttf2pt1-3.4.4-orig/ft.c ttf2pt1-3.4.4/ft.c
+--- ttf2pt1-3.4.4-orig/ft.c 2007-07-15 20:23:43.000000000 -0600
++++ ttf2pt1-3.4.4/ft.c 2007-07-15 20:24:02.000000000 -0600
+@@ -12,6 +12,7 @@
+ #include <stdlib.h>
+ #include <ctype.h>
+ #include <sys/types.h>
++#include <ft2build.h>
+ #include <freetype/freetype.h>
+ #include <freetype/ftglyph.h>
+ #include <freetype/ftsnames.h>
diff --git a/app-text/ttf2pt1/metadata.xml b/app-text/ttf2pt1/metadata.xml
index 73420b6cf0f0..64cc0b687d48 100644
--- a/app-text/ttf2pt1/metadata.xml
+++ b/app-text/ttf2pt1/metadata.xml
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>no-herd</herd>
-<maintainer>
- <email>maintainer-needed@gentoo.org</email>
-</maintainer>
+ <herd>fonts</herd>
</pkgmetadata>
diff --git a/app-text/ttf2pt1/ttf2pt1-3.4.4.ebuild b/app-text/ttf2pt1/ttf2pt1-3.4.4.ebuild
new file mode 100644
index 000000000000..00b515d228d5
--- /dev/null
+++ b/app-text/ttf2pt1/ttf2pt1-3.4.4.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/ttf2pt1/ttf2pt1-3.4.4.ebuild,v 1.1 2007/07/16 02:30:10 dirtyepic Exp $
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="True Type Font to Postscript Type 1 Converter"
+HOMEPAGE="http://ttf2pt1.sourceforge.net/"
+SRC_URI="mirror://sourceforge/ttf2pt1/${P}.tgz"
+
+LICENSE="ttf2pt1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND=">=media-libs/freetype-2.0"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-Makefile.patch"
+ epatch "${FILESDIR}/${PN}-3.4.0-man-pages.diff"
+ epatch "${FILESDIR}/${P}-freetype.patch"
+
+ sed -i -e "/^CC=/ { s:gcc:$(tc-getCC): }" Makefile
+ sed -i -e "/^CFLAGS_SYS=/ { s:-O.*$:${CFLAGS}: }" Makefile
+ sed -i -e "/^LIBS_FT=/ { s:-L/usr/lib:-L/usr/$(get_libdir): }" Makefile
+ sed -i -e "/^LIBXDIR =/ { s:libexec:$(get_libdir): }" Makefile
+}
+
+src_compile() {
+ emake all || die
+}
+
+src_install() {
+ emake INSTDIR=${D}/usr install || die
+ dodir /usr/share/doc/${PF}/html
+ cd ${D}/usr/share/ttf2pt1
+ rm -r app other
+ mv *.html ../doc/${PF}/html
+ mv [A-Z]* ../doc/${PF}
+ prepalldocs
+}