diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-05-31 22:12:04 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-05-31 22:12:04 +0000 |
commit | 85bf0780b54b0388919f656d5d2475ac8dfbfc7d (patch) | |
tree | 5462eacfdcae74754e7ca88e02f792ab14b385f0 /app-editors/fte/fte-20020324.ebuild | |
parent | version bump, first gpg-signed package ;) (Manifest recommit) (diff) | |
download | gentoo-2-85bf0780b54b0388919f656d5d2475ac8dfbfc7d.tar.gz gentoo-2-85bf0780b54b0388919f656d5d2475ac8dfbfc7d.tar.bz2 gentoo-2-85bf0780b54b0388919f656d5d2475ac8dfbfc7d.zip |
dont install uselss COPYING file and fix other stuff while i'm at it
Diffstat (limited to 'app-editors/fte/fte-20020324.ebuild')
-rw-r--r-- | app-editors/fte/fte-20020324.ebuild | 38 |
1 files changed, 15 insertions, 23 deletions
diff --git a/app-editors/fte/fte-20020324.ebuild b/app-editors/fte/fte-20020324.ebuild index 4cab48ab2885..07fc0b21da84 100644 --- a/app-editors/fte/fte-20020324.ebuild +++ b/app-editors/fte/fte-20020324.ebuild @@ -1,43 +1,32 @@ # 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-20020324.ebuild,v 1.17 2004/03/13 22:29:59 mr_bones_ Exp $ - -IUSE="gpm slang X" +# $Header: /var/cvsroot/gentoo-x86/app-editors/fte/fte-20020324.ebuild,v 1.18 2004/05/31 22:12:03 vapier Exp $ DESCRIPTION="Lightweight text-mode editor" +HOMEPAGE="http://fte.sourceforge.net/" SRC_URI="mirror://sourceforge/fte/${P}-src.zip mirror://sourceforge/fte/${P}-common.zip" -HOMEPAGE="http://fte.sourceforge.net" -SLOT="0" LICENSE="GPL-2" +SLOT="0" KEYWORDS="x86 ppc sparc" +IUSE="gpm slang X" RDEPEND=">=sys-libs/ncurses-5.2 gpm? ( >=sys-libs/gpm-1.20 )" - DEPEND="${RDEPEND} slang? ( sys-libs/slang ) 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 +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-20020324-src.zip unpack fte-20020324-common.zip @@ -47,6 +36,7 @@ src_unpack() { cp src/fte-unix.mak src/fte-unix.mak.orig + set_targets sed \ -e "s:@targets@:${TARGETS}:" \ -e "s:@cflags@:${CFLAGS}:" \ @@ -57,23 +47,25 @@ src_compile() { DEFFLAGS="PREFIX=/usr CONFIGDIR=/usr/share/fte \ DEFAULT_FTE_CONFIG=../config/main.fte OPTIMIZE=" + set_targets emake $DEFFLAGS TARGETS="$TARGETS" all || die cd config ../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 |