# ChangeLog for app-misc/figlet
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/figlet/ChangeLog,v 1.19 2006/06/16 20:40:26 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/figlet/ChangeLog,v 1.20 2006/12/20 23:25:39 mr_bones_ Exp $
+
+*figlet-222 (20 Dec 2006)
+
+ 20 Dec 2006; Michael Sterrett <mr_bones_@gentoo.org>
+ -files/figlet-22-r1-gentoo.diff, +files/figlet-222-gentoo.diff,
+ +figlet-222.ebuild:
+ version bump
16 Jun 2006; Markus Rothe <corsair@gentoo.org> figlet-221-r1.ebuild:
Stable on ppc64
--- /dev/null
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/figlet/figlet-222.ebuild,v 1.1 2006/12/20 23:25:39 mr_bones_ Exp $
+
+inherit eutils bash-completion
+
+MY_P=${P/-/}
+DESCRIPTION="program for making large letters out of ordinary text"
+HOMEPAGE="http://www.figlet.org/"
+# Bug 35339 - add more fonts to figlet ebuild
+# The fonts are available from the figlet site, but they don't
+# have versions so we mirror them ourselves.
+SRC_URI="ftp://ftp.figlet.org/pub/figlet/program/unix/${MY_P}.tar.gz
+ mirror://gentoo/contributed-${PN}-221.tar.gz
+ mirror://gentoo/ms-dos-${PN}-221.tar.gz"
+
+LICENSE="AFL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND=""
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ cp "${WORKDIR}"/contributed/C64-fonts/*.flf fonts/ || die
+ cp "${WORKDIR}"/contributed/bdffonts/*.flf fonts/ || die
+ cp "${WORKDIR}"/ms-dos/*.flf fonts/ || die
+ cp "${WORKDIR}"/contributed/*.flf fonts/ || die
+
+ epatch "${FILESDIR}"/${P}-gentoo.diff
+ sed -i \
+ -e "s/CFLAGS = -g/CFLAGS = ${CFLAGS}/g" Makefile \
+ || die "sed failed"
+}
+
+src_compile() {
+ make clean || die "make clean failed"
+ emake figlet || die "emake failed"
+}
+
+src_install() {
+ dodir /usr/bin /usr/share/man/man6 || die "dodir failed"
+ chmod +x figlist showfigfonts
+ emake \
+ DESTDIR="${D}"/usr/bin \
+ MANDIR="${D}"/usr/share/man/man6 \
+ DEFAULTFONTDIR="${D}"/usr/share/figlet \
+ install || die "make install failed"
+
+ dodoc README figfont.txt
+ dobashcompletion "${FILESDIR}"/figlet.bashcomp
+}
--- /dev/null
+MD5 6e2dec4499f7a7fe178522e02e0b6cd1 contributed-figlet-221.tar.gz 1393560
+RMD160 823585a19fb504eafdc51c0b228121ed784ae54b contributed-figlet-221.tar.gz 1393560
+SHA256 2c569e052e638b28e4205023ae717f7b07e05695b728e4c80f4ce700354b18c8 contributed-figlet-221.tar.gz 1393560
+MD5 9fcf4f1651b8e6d3f56f1ef665285b2e figlet222.tar.gz 166727
+RMD160 fc39809b1f5d5e498d722d49ae88132528633d9f figlet222.tar.gz 166727
+SHA256 21f8f9e9b2190fbc0f801fb4704355e5d73d36c55670272cd08cad3408d1f5fe figlet222.tar.gz 166727
+MD5 49aa57ab989e8d952be037414b0bbbe4 ms-dos-figlet-221.tar.gz 2414
+RMD160 63bbef976699747fdfd6f289ac3d22d4eb710dc8 ms-dos-figlet-221.tar.gz 2414
+SHA256 d3678a98b3b058ae4ded8525f51a1c53b3c6e6833793cf7cf98fcd9550ed7e70 ms-dos-figlet-221.tar.gz 2414
--- /dev/null
+--- Makefile.org 2003-07-17 23:56:17.000000000 +0200
++++ Makefile 2003-07-17 23:57:57.000000000 +0200
+@@ -15,21 +15,29 @@
+ CFLAGS = -g
+
+ # Where the executables should be put
+-DESTDIR = /usr/local/bin
++ifndef DESTDIR
++ DESTDIR = /usr/bin
++endif
+
+ # Where the man page should be put
+-MANDIR = /usr/local/man/man6
++ifndef MANDIR
++ MANDIR = /usr/share/man/man6
++endif
+
+ # Where figlet will search first for fonts (the ".flf" files).
+-DEFAULTFONTDIR = /usr/local/share/figlet
++ifndef DEFAULTFONTDIR
++ DEFAULTFONTDIR = /usr/share/figlet
++endif
+ # Use this definition if you can't put things in /usr/local/share/figlet
+-DEFAULTFONTDIR = fonts
++#DEFAULTFONTDIR = fonts
+
+ # The filename of the font to be used if no other is specified
+ # (standard.flf is recommended, but any other can be used).
+ # This font file should reside in the directory specified by
+ # DEFAULTFONTDIR.
+-DEFAULTFONTFILE = standard.flf
++ifndef DEFAULTFONTFILE
++ DEFAULTFONTFILE = standard.flf
++endif
+
+ ##
+ ## END OF CONFIGURATION SECTION