summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-editors/fte/fte-20010819-r2.ebuild')
-rw-r--r--app-editors/fte/fte-20010819-r2.ebuild94
1 files changed, 46 insertions, 48 deletions
diff --git a/app-editors/fte/fte-20010819-r2.ebuild b/app-editors/fte/fte-20010819-r2.ebuild
index 53d1bdc18833..1a416ed2b84c 100644
--- a/app-editors/fte/fte-20010819-r2.ebuild
+++ b/app-editors/fte/fte-20010819-r2.ebuild
@@ -1,31 +1,28 @@
-# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/fte/fte-20010819-r2.ebuild,v 1.12 2002/12/09 04:17:39 manson Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/fte/fte-20010819-r2.ebuild,v 1.13 2003/02/10 11:09:16 seemant Exp $
+
+inherit eutils
IUSE="gpm slang X"
S=${WORKDIR}/${P}
-
DESCRIPTION="Lightweight text-mode editor"
-
+HOMEPAGE="http://fte.sourceforge.net"
SRC_URI="mirror://sourceforge/fte/fte-20010819-src.zip
- mirror://sourceforge/fte/fte-20010819-common.zip"
+ mirror://sourceforge/fte/fte-20010819-common.zip"
-HOMEPAGE="http://fte.sourceforge.net"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 sparc "
-DEPEND="virtual/glibc
- app-arch/unzip
- >=sys-libs/ncurses-5.2
- >=sys-libs/gpm-1.20"
-RDEPEND="virtual/glibc
- >=sys-libs/ncurses-5.2
+RDEPEND=">=sys-libs/ncurses-5.2
gpm? ( >=sys-libs/gpm-1.20 )"
-TARGETS=""
+DEPEND="app-arch/unzip
+ ${RDEPEND}"
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="x86 sparc "
+TARGETS=""
if [ "`use slang`" ] ; then
TARGETS="$TARGETS sfte"
@@ -41,55 +38,56 @@ fi
src_unpack() {
- cd ${WORKDIR}
- unpack fte-20010819-src.zip
- unpack fte-20010819-common.zip
+ cd ${WORKDIR}
+ unpack fte-20010819-src.zip
+ unpack fte-20010819-common.zip
- mv fte fte-20010819
+ mv fte fte-20010819
- cd ${S}; patch -p0 < ${FILESDIR}/${PF}-gentoo.diff
+ cd ${S}
+ epatch ${FILESDIR}/${P}-gentoo.diff
- cp src/fte-unix.mak src/fte-unix.mak.orig
+ cp src/fte-unix.mak src/fte-unix.mak.orig
- cat src/fte-unix.mak.orig | \
- sed "s/@targets@/${TARGETS}/" | \
- sed "s/@cflags@/${CFLAGS}/" \
- > src/fte-unix.mak
+ sed \
+ -e "s:@targets@:${TARGETS}:" \
+ -e "s:@cflags@:${CFLAGS}:" \
+ src/fte-unix.mak.orig > src/fte-unix.mak
}
src_compile() {
- emake all || die
+ emake all || die
- cd config
- ../src/cfte main.fte ../src/system.fterc
+ cd config
+ ../src/cfte main.fte ../src/system.fterc
}
src_install () {
- local files
- into /usr
+ local files
+ into /usr
- files="${TARGETS} cfte compkeys"
+ files="${TARGETS} cfte compkeys"
- for i in ${files} ; do
- dobin src/$i ;
- done
+ for i in ${files} ; do
+ dobin src/$i ;
+ done
- dodoc Artistic CHANGES BUGS COPYING HISTORY README TODO
+ dodoc Artistic CHANGES BUGS COPYING HISTORY README TODO
- dodir etc/fte
- cp src/system.fterc ${D}/etc/fte/system.fterc
+ dodir etc/fte
+ cp src/system.fterc ${D}/etc/fte/system.fterc
- dodir usr/share/doc/${P}/html
- cp doc/INDEX doc/*.html ${D}/usr/share/doc/${P}/html
+ dodir usr/share/doc/${P}/html
+ cp doc/INDEX doc/*.html ${D}/usr/share/doc/${P}/html
-# if [ -a ${D}/usr/bin/xfte ] ; then
-# into /usr/X11R6 ;
-# dobin src/xfte ;
-# rm ${D}/usr/bin/xfte ;
-# fi
+# if [ -a ${D}/usr/bin/xfte ] ; then
+# into /usr/X11R6 ;
+# dobin src/xfte ;
+# rm ${D}/usr/bin/xfte ;
+# fi
- dodir usr/share/fte
- cp -R config/* ${D}/usr/share/fte
- rm -rf ${D}/usr/share/fte/CVS
+ dodir usr/share/fte
+ cp -R config/* ${D}/usr/share/fte
+ rm -rf ${D}/usr/share/fte/CVS
}