Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2587 - fte: updated ebuilds for latest version
Summary: fte: updated ebuilds for latest version
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Maarten Thibaut (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-08 13:23 UTC by Riccardo Persichetti
Modified: 2002-05-16 19:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fte-20020324.ebuild (fte-20020324.ebuild,1.75 KB, text/plain)
2002-05-08 13:24 UTC, Riccardo Persichetti
Details
digest-fte-20020324 (digest-fte-20020324,133 bytes, text/plain)
2002-05-08 13:25 UTC, Riccardo Persichetti
Details
fte-20020324-gentoo.diff (fte-20020324-gentoo.diff,1.86 KB, patch)
2002-05-08 13:25 UTC, Riccardo Persichetti
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Riccardo Persichetti 2002-05-08 13:23:27 UTC
those are the updated ebuilds for "fte" a nice text editor...

files go in /usr/portage/app-editors/fte
and /usr/portage/app-editors/fte/files

--fte-20020324.ebuild-start--
# 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://prdownloads.sourceforge.net/fte/fte-20020324-src.zip
         http://prdownloads.sourceforge.net/fte/fte-20020324-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() {
        emake 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
}
--fte-20020324.ebuild-end--


--digest-fte-20020324-start--
MD5 6a0fb80491e4a4edfab0faf8f5a3dc49 fte-20020324-src.zip 625459
MD5 499b051f6484df3b4f93b43fe9143d0f fte-20020324-common.zip 184928
--digest-fte-20020324-end--


-fte-20020324-gentoo.diff-start--
--- Makefile.orig       Wed Aug  8 04:14:56 2001
+++ Makefile    Mon Sep 17 21:17:51 2001
@@ -1,8 +1,8 @@
-PREFIX=/usr/local
+PREFIX=/usr

 BINDIR=$(PREFIX)/bin
 LIBDIR=$(PREFIX)/lib/fte
-CONFIGDIR=$(LIBDIR)/config
+CONFIGDIR=/usr/share/fte

 .PHONY: all install

--- src/fte-unix.mak.orig       Tue Sep 18 00:17:42 2001
+++ src/fte-unix.mak    Tue Sep 18 00:18:34 2001
@@ -5,7 +5,7 @@

 #  vfte - for Linux console directly (with limitations, see con_linux.cpp)

-TARGETS = xfte vfte sfte
+TARGETS = @targets@
 #TARGETS = xfte

 PRIMARY = xfte
@@ -125,18 +125,18 @@

 #######################################################################

-#QTDIR   = /users/markom/qt
-#QLIBDIR  = -L$(QTDIR)/lib
-#QINCDIR  = -I$(QTDIR)/include
+QTDIR    = /usr/X11R6/lib/qt
+QLIBDIR  = -L$(QTDIR)/lib
+QINCDIR  = -I$(QTDIR)/include
 #QINCDIR  = -I/usr/include/qt

-MOC      = moc
+MOC      = /usr/X11R6/lib/qt/bin/moc

 LIBDIR   =
 INCDIR   =

 #OPTIMIZE = -g # -O -g
-OPTIMIZE = -O2
+OPTIMIZE = @cflags@
 #OPTIMIZE = -O2 -s

 CCFLAGS  = $(OPTIMIZE) $(I18NOPTIONS) $(APPOPTIONS) $(COPTIONS) -DUNIX $(UOS)
$(INCDIR) $(XINCDIR) $(QINCDIR) $(MINCDIR) $(SINCDIR)
@@ -177,9 +177,9 @@
        perl mkdefcfg.pl <defcfg.cnf >defcfg.h

 #DEFAULT_FTE_CONFIG = simple.fte
-DEFAULT_FTE_CONFIG = defcfg.fte
+#DEFAULT_FTE_CONFIG = defcfg.fte
 #DEFAULT_FTE_CONFIG = defcfg2.fte
-#DEFAULT_FTE_CONFIG = ../config/main.fte
+DEFAULT_FTE_CONFIG = ../config/main.fte

 defcfg.cnf: $(DEFAULT_FTE_CONFIG) cfte
        ./cfte $(DEFAULT_FTE_CONFIG) defcfg.cnf
@@ -187,8 +187,8 @@
 xfte: $(OBJS) $(XOBJS)
        $(LD) $(LDFLAGS) $(OBJS) $(XOBJS) $(XLIBS) -o xfte

-#qfte: g_qt.moc g_qt_dlg.moc $(OBJS) $(QOBJS)
-#      $(LD) $(LDFLAGS) $(OBJS) $(QOBJS) $(QLIBS) $(XLIBS) -o qfte
+qfte: g_qt.moc g_qt_dlg.moc $(OBJS) $(QOBJS)
+       $(LD) $(LDFLAGS) $(OBJS) $(QOBJS) $(QLIBS) $(XLIBS) -o qfte

 vfte: $(OBJS) $(VOBJS)
        $(LD) $(LDFLAGS) $(OBJS) $(VOBJS) $(VLIBS) -o vfte
-fte-20020324-gentoo.diff-end--

hope this gets in...

cheers,

  Riccardo
Comment 1 Riccardo Persichetti 2002-05-08 13:24:40 UTC
Created attachment 904 [details]
fte-20020324.ebuild
Comment 2 Riccardo Persichetti 2002-05-08 13:25:14 UTC
Created attachment 905 [details]
digest-fte-20020324
Comment 3 Riccardo Persichetti 2002-05-08 13:25:53 UTC
Created attachment 906 [details, diff]
fte-20020324-gentoo.diff
Comment 4 Maarten Thibaut (RETIRED) gentoo-dev 2002-05-16 19:37:45 UTC
New ebuild checked into CVS.