diff options
author | Alastair Tse <liquidx@gentoo.org> | 2003-02-17 03:19:24 +0000 |
---|---|---|
committer | Alastair Tse <liquidx@gentoo.org> | 2003-02-17 03:19:24 +0000 |
commit | f32f8dbb863ff4852b79d33995dbc61a762d04f7 (patch) | |
tree | 9870eb7493f2c5a6d4a5e67d39ed65a0d9723fd4 /app-editors/jed | |
parent | inital import (diff) | |
download | gentoo-2-f32f8dbb863ff4852b79d33995dbc61a762d04f7.tar.gz gentoo-2-f32f8dbb863ff4852b79d33995dbc61a762d04f7.tar.bz2 gentoo-2-f32f8dbb863ff4852b79d33995dbc61a762d04f7.zip |
added optional xft support to jed
Diffstat (limited to 'app-editors/jed')
-rw-r--r-- | app-editors/jed/ChangeLog | 8 | ||||
-rw-r--r-- | app-editors/jed/files/digest-jed-0.99.16-r1 | 1 | ||||
-rw-r--r-- | app-editors/jed/jed-0.99.16-r1.ebuild | 89 |
3 files changed, 97 insertions, 1 deletions
diff --git a/app-editors/jed/ChangeLog b/app-editors/jed/ChangeLog index d0ad1d601eca..00a5043884d9 100644 --- a/app-editors/jed/ChangeLog +++ b/app-editors/jed/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-editors/jed # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-editors/jed/ChangeLog,v 1.7 2003/02/12 03:47:20 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-editors/jed/ChangeLog,v 1.8 2003/02/17 03:19:24 liquidx Exp $ + +*jed-0.99.16-r1 (17 Feb 2003) + + 17 Feb 2003; Alastair Tse <alastair@gentoo.org> jed-0.99.16.ebuild, + + Added Xft support. Enabled by "truetype" USE flag. Resolves bug #15534. *jed-0.99.16 (14 Dec 2002) diff --git a/app-editors/jed/files/digest-jed-0.99.16-r1 b/app-editors/jed/files/digest-jed-0.99.16-r1 new file mode 100644 index 000000000000..180e8555d8af --- /dev/null +++ b/app-editors/jed/files/digest-jed-0.99.16-r1 @@ -0,0 +1 @@ +MD5 c2bcd89c92a120559865a539c2705999 jed-0.99-16.tar.bz2 667623 diff --git a/app-editors/jed/jed-0.99.16-r1.ebuild b/app-editors/jed/jed-0.99.16-r1.ebuild new file mode 100644 index 000000000000..2e789e429942 --- /dev/null +++ b/app-editors/jed/jed-0.99.16-r1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-editors/jed/jed-0.99.16-r1.ebuild,v 1.1 2003/02/17 03:19:24 liquidx Exp $ + +IUSE="X gpm truetype" + +P0=${PN}-0.99-16 +S=${WORKDIR}/${P0} +DESCRIPTION="Console S-Lang-based editor" +SRC_URI="ftp://ftp.jedsoft.org/pub/davis/jed/v0.99/${PN}-0.99-16.tar.bz2" +HOMEPAGE="http://space.mit.edu/~davis/jed/" + +DEPEND=">=sys-libs/slang-1.4.5 + X? ( virtual/x11 ) + gpm? ( sys-libs/gpm ) + truetype? ( >=x11-libs/xft-2.0 + >=media-libs/freetype-2.0 )" + +PROVIDE="virtual/editor" + +SLOT="0" +KEYWORDS="~x86 ~ppc ~sparc " +LICENSE="GPL-2" + +src_compile() { + export JED_ROOT=/usr/share/jed + + ./configure --host=${CHOST} \ + --prefix=$JED_ROOT \ + --bindir=/usr/bin \ + --mandir=/usr/share/man || die + + if [ -n "`use gpm`" ] ; then + cd src + mv Makefile Makefile.orig + sed -e 's/#MOUSEFLAGS/MOUSEFLAGS/' \ + -e 's/#MOUSELIB/MOUSELIB/' \ + -e 's/#GPMMOUSEO/GPMMOUSEO/' \ + -e 's/#OBJGPMMOUSEO/OBJGPMMOUSEO/' \ + Makefile.orig > Makefile + cd ${S} + fi + + if [ -n "`use truetype`" ]; then + cd src + mv Makefile Makefile.orig + sed -e 's/#XRENDERFONTLIBS/XRENDERFONTLIBS/' Makefile.orig > Makefile.new + sed -e 's/^CONFIG_H = config.h/xterm_C_FLAGS = `freetype-config --cflags`\nCONFIG_H = config.h/' Makefile.new > Makefile + mv jed-feat.h jed-feat.h.orig + sed -e 's/#define XJED_HAS_XRENDERFONT 0/#define XJED_HAS_XRENDERFONT 1/' jed-feat.h.orig > jed-feat.h + cd ${S} + fi + + make clean || die + + emake || die + + if [ -n "`use X`" ] ; then + emake xjed || die + fi +} + +src_install () { + make DESTDIR=${D} install || die + + cd doc + cp README AUTHORS + + cd ${S} + dodoc COPYING COPYRIGHT INSTALL INSTALL.unx README \ + doc/AUTHORS doc/manual/jed.tex + + cd ${S}/info + rm info.info + patch < ${FILESDIR}/jed.info.diff || die + cd ${S} + + insinto /usr/share/info + doins info/* + + insinto /etc + doins lib/jed.conf + + cd ${D} + rm -rf usr/share/jed/info + # can't rm usr/share/jed/doc -- used internally by jed/xjed +} + + |