# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: inherit lesstif S="${WORKDIR}/nedit-5.4RC2" DESCRIPTION="multi-purpose text editor for the X Window System" SRC_URI="ftp://ftp.nedit.org/pub/beta/nedit-5.4RC2.tar.bz2" HOMEPAGE="http://www.nedit.org" LICENSE="GPL-2" #KEYWORDS="~x86" KEYWORDS="-*" SLOT="0" IUSE="lesstif" RDEPEND="virtual/aspell-dict" DEPEND="${RDEPEND} lesstif? ( x11-libs/lesstif ) : ( \\n");:g'\ "${S}/util/check_lin_tif.c" eend $? || die fi } src_compile() { local cflags="${CFLAGS} -D_GENTOO_ -DHAVE__XMVERSIONSTRING" local ldflags= if [ -n "`use lesstif`" ]; then cflags="${cflags} -I${LESSTIF_DIR}/include" ldflags="${ldflags} -L${LESSTIF_DIR}/lib" else : fi if [ "$ALLOW_BAD_MOTIF" = "yes" ]; then make -C util -f ../makefiles/Makefile.linux \ E_CFLAGS="$cflags" \ E_LDFLAGS="$ldflags" \ check_lin_tif util/check_lin_tif ; tif_check=$? make -C util -f ../makefiles/Makefile.linux clean if [ $tif_check -eq 1 ]; then einfo "bad motif detected, adding '-DBUILD_BROKEN_NEDIT'" cflags="${cflags} -DBUILD_BROKEN_NEDIT" elif [ $tif_check -eq 2 ]; then einfo "untested motif detected, adding '-DBUILD_UNTESTED_NEDIT'" cflags="${cflags} -DBUILD_UNTESTED_NEDIT" fi unset tif_check fi emake \ E_CFLAGS="${cflags}" \ E_LDFLAGS="${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} }