diff options
author | Maarten Thibaut <murphy@gentoo.org> | 2002-05-17 00:36:18 +0000 |
---|---|---|
committer | Maarten Thibaut <murphy@gentoo.org> | 2002-05-17 00:36:18 +0000 |
commit | e21c30a27b4fe915b2d81222436f82b5791770bf (patch) | |
tree | 765e2f93abd1c4ec414481e0358d0213a5c822ca /app-editors/fte/fte-20020324.ebuild | |
parent | Fixes #2585. (diff) | |
download | gentoo-2-e21c30a27b4fe915b2d81222436f82b5791770bf.tar.gz gentoo-2-e21c30a27b4fe915b2d81222436f82b5791770bf.tar.bz2 gentoo-2-e21c30a27b4fe915b2d81222436f82b5791770bf.zip |
Resolves bug 2587 - New version of fte available upstream.
Also implements some general make fixes to obviate the need for patches.
Diffstat (limited to 'app-editors/fte/fte-20020324.ebuild')
-rw-r--r-- | app-editors/fte/fte-20020324.ebuild | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/app-editors/fte/fte-20020324.ebuild b/app-editors/fte/fte-20020324.ebuild new file mode 100644 index 000000000000..5f38c95263de --- /dev/null +++ b/app-editors/fte/fte-20020324.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Karl Trygve Kalleberg <karltk@gentoo.org> +# /space/gentoo/cvsroot/gentoo-x86/app-editors/fte/fte-20010819-r3.ebuild,v 1.1 2002/04/27 22:29:37 seemant Exp + +S=${WORKDIR}/${P} +DESCRIPTION="Lightweight text-mode editor" +SRC_URI="http://unc.dl.sourceforge.net/sourceforge/fte/${P}-src.zip + http://telia.dl.sourceforge.net/sourceforge/fte/${P}-src.zip + http://telia.dl.sourceforge.net/sourceforge/fte/${P}-src.zip + + http://unc.dl.sourceforge.net/sourceforge/fte/${P}-common.zip + http://telia.dl.sourceforge.net/sourceforge/fte/${P}-common.zip + http://telia.dl.sourceforge.net/sourceforge/fte/${P}-common.zip" +HOMEPAGE="http://fte.sourceforge.net" + +RDEPEND=">=sys-libs/ncurses-5.2 + gpm? ( >=sys-libs/gpm-1.20 )" + +DEPEND="${RDEPEND} + app-arch/unzip + X? ( virtual/x11 )" + +TARGETS="" + +if [ "`use slang`" ] ; then + TARGETS="${TARGETS} sfte" +fi + +if [ "`use X`" ] ; then + TARGETS="${TARGETS} xfte" +fi + +if [ "`use gpm`" ] ; then + TARGETS="${TARGETS} vfte" +fi + +src_unpack() { + + cd ${WORKDIR} + unpack fte-20020324-src.zip + unpack fte-20020324-common.zip + + mv fte fte-20020324 + + cd ${S} # ; patch -p0 < ${FILESDIR}/${PF}-gentoo.diff + + 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 +} + +src_compile() { + DEFFLAGS="PREFIX=/usr CONFIGDIR=/usr/share/fte \ + DEFAULT_FTE_CONFIG=../config/main.fte OPTIMIZE=" + + emake $DEFFLAGS TARGETS="$TARGETS" all || die + + cd config + ../src/cfte main.fte ../src/system.fterc +} + +src_install () { + local files + into /usr + + files="${TARGETS} cfte compkeys" + + for i in ${files} ; do + dobin src/$i ; + done + + dodoc Artistic CHANGES BUGS COPYING HISTORY README TODO + + 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 + +# 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 +} + |