diff options
Diffstat (limited to 'app-editors/fte/fte-20010819-r2.ebuild')
-rw-r--r-- | app-editors/fte/fte-20010819-r2.ebuild | 38 |
1 files changed, 14 insertions, 24 deletions
diff --git a/app-editors/fte/fte-20010819-r2.ebuild b/app-editors/fte/fte-20010819-r2.ebuild index 8733a95d093d..60a5a9afedfe 100644 --- a/app-editors/fte/fte-20010819-r2.ebuild +++ b/app-editors/fte/fte-20010819-r2.ebuild @@ -1,44 +1,33 @@ # Copyright 1999-2004 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.16 2004/03/13 22:29:59 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/fte/fte-20010819-r2.ebuild,v 1.17 2004/05/31 22:12:03 vapier Exp $ inherit eutils -IUSE="gpm slang X" - 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" -SLOT="0" LICENSE="GPL-2" -KEYWORDS="x86 sparc " +SLOT="0" +KEYWORDS="x86 sparc" +IUSE="gpm slang X" RDEPEND=">=sys-libs/ncurses-5.2 gpm? ( >=sys-libs/gpm-1.20 )" - DEPEND="app-arch/unzip slang? ( sys-libs/slang ) ${RDEPEND}" -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 +set_targets() { + export TARGETS="" + use slang && TARGETS="$TARGETS sfte" + use X && TARGETS="$TARGETS xfte" + use gpm && TARGETS="$TARGETS vfte" +} src_unpack() { - - cd ${WORKDIR} unpack fte-20010819-src.zip unpack fte-20010819-common.zip @@ -49,6 +38,7 @@ src_unpack() { cp src/fte-unix.mak src/fte-unix.mak.orig + set_targets sed \ -e "s:@targets@:${TARGETS}:" \ -e "s:@cflags@:${CFLAGS}:" \ @@ -62,17 +52,18 @@ src_compile() { ../src/cfte main.fte ../src/system.fterc } -src_install () { +src_install() { local files into /usr + set_targets files="${TARGETS} cfte compkeys" for i in ${files} ; do dobin src/$i ; done - dodoc Artistic CHANGES BUGS COPYING HISTORY README TODO + dodoc Artistic CHANGES BUGS HISTORY README TODO dodir etc/fte cp src/system.fterc ${D}/etc/fte/system.fterc @@ -90,4 +81,3 @@ src_install () { cp -R config/* ${D}/usr/share/fte rm -rf ${D}/usr/share/fte/CVS } - |