# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: S="${WORKDIR}/nedit-5.4RC1" DESCRIPTION="multi-purpose text editor for the X Window System" SRC_URI="http://nedit.org/ftp/beta/nedit-5.4RC1.tar.bz2" HOMEPAGE="http://nedit.org" LICENSE="GPL-2" #KEYWORDS="~x86" KEYWORDS="-*" SLOT="0" IUSE="spell lesstif" RDEPEND="spell? ( virtual/aspell-dict )" DEPEND="${RDEPEND} lesstif? ( x11-libs/lesstif ) : ( "Version". It also requires # the user to press a key before compiling begins. # (see `util/check_lin_tif.c' for a list of known-good versions). # chmod +w ${S}/util/check_lin_tif.c LC_ALL="C" sed -i \ -e "s:\(fgets(buf, 2, stdin);\):/*\1*/:g" \ ${S}/util/check_lin_tif.c || die "patching check_lin_tif" } src_compile() { local e_cflags= local e_ldflags= e_cflags="${e_cflags} -DHAVE__XMVERSIONSTRING" if [ `use lesstif` ]; then e_cflags="${e_cflags} -I/usr/X11R6/LessTif/include -DBUILD_BROKEN_NEDIT" e_ldflags="${e_ldflags} -L/usr/X11R6/LessTif/lib" else : fi make \ CC="${CC}" \ E_CFLAGS="${e_cflags}" \ E_LDFLAGS="${e_ldflags}" \ linux || die "make failed" } src_install() { into /usr dobin source/nedit exeinto /usr/bin newexe source/nc neditc newman doc/nedit.man nedit.1 newman doc/nc.man neditc.1 dodoc README ReleaseNotes ChangeLog COPYRIGHT cd doc dodoc *.txt nedit.doc README.FAQ NEdit.ad dohtml *.{dtd,xsl,xml,html,awk} }