+x fix from #9804
authorMike Frysinger <vapier@gentoo.org>
Mon, 28 Oct 2002 05:59:25 +0000 (05:59 +0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 28 Oct 2002 05:59:25 +0000 (05:59 +0000)
app-misc/figlet/ChangeLog
app-misc/figlet/figlet-22-r1.ebuild [new file with mode: 0644]
app-misc/figlet/files/digest-figlet-22-r1 [new file with mode: 0644]
app-misc/figlet/files/figlet-22-r1-gentoo.diff [new file with mode: 0644]

index f04f0ae0c3007005695c2a993acb6318e65163d1..02061327e78ad2fceff922e26f440c3c4a859ad2 100644 (file)
@@ -1,11 +1,15 @@
 # ChangeLog for app-misc/figlet
 # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/app-misc/figlet/ChangeLog,v 1.1 2002/02/01 21:53:08 gbevin Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/figlet/ChangeLog,v 1.2 2002/10/28 05:59:25 vapier Exp $
+
+*figlet-22-r1 (28 Oct 2002)
+
+  28 Oct 2002; Mike Frysinger <vapier@gentoo.org> :
+  Added fix from #9804 (not all scripts were installed +x)
 
 *figlet-22 (1 Feb 2002)
 
   1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog :
-  
   Added initial ChangeLog which should be updated whenever the package is
   updated in any way. This changelog is targetted to users. This means that the
   comments should well explained and written in clean English. The details about
diff --git a/app-misc/figlet/figlet-22-r1.ebuild b/app-misc/figlet/figlet-22-r1.ebuild
new file mode 100644 (file)
index 0000000..e3bce5a
--- /dev/null
@@ -0,0 +1,40 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/figlet/figlet-22-r1.ebuild,v 1.1 2002/10/28 05:59:25 vapier Exp $
+
+S=${WORKDIR}/${PN}${PV}
+DESCRIPTION="FIGlet is a program for making large letters out of ordinary text"
+SRC_URI="ftp://ftp.plig.org/pub/figlet/program/unix/${PN}${PV}.tar.gz"
+HOMEPAGE="http://st-www.cs.uiuc.edu/users/chai/figlet.html"
+
+SLOT="0"
+LICENSE="Artistic"
+KEYWORDS="x86 sparc64"
+
+DEPEND="virtual/glibc"
+
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+       patch -p1 < ${FILESDIR}/${PF}-gentoo.diff || die
+       sed "s/CFLAGS = -g/CFLAGS = ${CFLAGS}/g" < Makefile > Makefile.new
+       mv -f Makefile.new Makefile
+}
+
+
+src_compile() {
+       make clean || die
+       make figlet || die
+}
+
+src_install() {
+       dodir /usr/bin /usr/share/man/man6 
+       chmod +x figlist showfigfonts
+       make \
+               DESTDIR=${D}/usr/bin \
+               MANDIR=${D}/usr/share/man/man6 \
+           DEFAULTFONTDIR=${D}/usr/share/figlet \
+               install || die
+
+       dodoc Artistic-license.txt FTP-NOTE README showfigfonts figmagic figfont.txt
+}
diff --git a/app-misc/figlet/files/digest-figlet-22-r1 b/app-misc/figlet/files/digest-figlet-22-r1
new file mode 100644 (file)
index 0000000..0a0dfce
--- /dev/null
@@ -0,0 +1 @@
+MD5 63afcf43505fbe0c9a936ee3b97d4288 figlet22.tar.gz 166966
diff --git a/app-misc/figlet/files/figlet-22-r1-gentoo.diff b/app-misc/figlet/files/figlet-22-r1-gentoo.diff
new file mode 100644 (file)
index 0000000..515861a
--- /dev/null
@@ -0,0 +1,40 @@
+diff -Nur figlet22/Makefile figlet22-new/Makefile
+--- figlet22/Makefile  Tue Feb 18 16:02:28 1997
++++ figlet22-new/Makefile      Thu Apr 26 22:27:46 2001
+@@ -13,22 +13,29 @@
+ CFLAGS = -g
+ 
+ # Where the executables should be put
+-DESTDIR = /usr/games
++ifndef DESTDIR
++  DESTDIR = /usr/bin/
++endif
+ 
+ # Where the man page should be put
+-MANDIR = /usr/man/man6
++ifndef MANDIR
++  MANDIR = /usr/share/man/man6
++endif
+ 
+ # Where figlet will search first for fonts (the ".flf" files).
+-DEFAULTFONTDIR = $(DESTDIR)/lib/figlet.dir
++ifndef DEFAULTFONTDIR
++  DEFAULTFONTDIR = /usr/share/figlet
++endif
+ # Use this definition if you can't put things in /usr/games
+-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
+ ##\f
+Binary files figlet22/figlet and figlet22-new/figlet differ