# ChangeLog for x11-misc/ttmkfdir
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/ttmkfdir/ChangeLog,v 1.2 2002/10/19 22:49:07 cselkirk Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/ttmkfdir/ChangeLog,v 1.3 2002/10/20 07:33:03 azarah Exp $
+
+*ttmkfdir-1.0 (20 Oct 2002)
+
+ 20 Oct 2002; Martin Schlemmer <azarah@gentoo.org> ttmkfdir-1.0.ebuild :
+
+ Add version of ttmkfdir that works with freetype2. Should close bug #9354.
*ttmkfdir-0.0-r1 (1 Feb 2002)
--- /dev/null
+MD5 61efb004b19befdb5335ef058323002c ttmkfdir2-1.0.tar.bz2 16650
--- /dev/null
+diff -urN ttmkfdir2/Makefile ttmkfdir2.azarah/Makefile
+--- ttmkfdir2/Makefile.orig 2002-03-14 16:03:49.000000000 +0200
++++ ttmkfdir2/Makefile 2002-10-13 03:55:17.000000000 +0200
+@@ -2,7 +2,7 @@
+ FREETYPE_INCL=-I$(FREETYPE_BASE)/.
+ FREETYPE_LIB=/usr/lib/libfreetype.so
+
+-DEBUG=-ggdb
++DEBUG=
+ CXX=g++
+ CXXFLAGS=-Wall -pedantic $(FREETYPE_INCL) $(DEBUG)
+
+diff -urN ttmkfdir2/ttf.h ttmkfdir2.azarah/ttf.h
+--- ttmkfdir2/ttf.h.orig 2002-03-13 20:16:38.000000000 +0200
++++ ttmkfdir2/ttf.h 2002-10-13 03:46:34.000000000 +0200
+@@ -43,7 +43,7 @@
+ FT_Face face;
+ TT_OS2 *os2;
+ TT_Postscript *post;
+- string FileName;
++ std::string FileName;
+ };
+ };
+
--- /dev/null
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/ttmkfdir/ttmkfdir-1.0.ebuild,v 1.1 2002/10/20 07:33:03 azarah Exp $
+
+S="${WORKDIR}/${PN}2"
+DESCRIPTION="A utility to create a fonts.scale file from a set of TrueType fonts"
+SRC_URI="mirror://gentoo/ttmkfdir2-${PV}.tar.bz2"
+HOMEPAGE="http://www.joerg-pommnitz.de/TrueType/xfsft.html"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="x86 sparc sparc64 ppc"
+
+DEPEND=">=media-libs/freetype-2.0.8
+ >=sys-devel/flex-2.5.4a-r5
+ sys-devel/libtool"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}; patch -p1 < ${FILESDIR}/${P}-gentoo.patch || die
+
+ cp ${S}/Makefile ${S}/Makefile.orig
+ sed -e "s:CXXFLAGS=-Wall:CXXFLAGS=${CFLAGS} -Wall:" \
+ ${S}/Makefile.orig > ${S}/Makefile
+}
+
+src_compile() {
+ make OPT="${CFLAGS}" || die
+}
+
+src_install() {
+ exeinto /usr/X11R6/bin
+ doexe ${S}/ttmkfdir
+}
+