|
|
# Distributed under the terms of the GNU General Public License v2 | # Distributed under the terms of the GNU General Public License v2 |
# $Header: /home/cvsroot/gentoo-x86/app-editors/jed/jed-0.99.16.ebuild,v 1.2 2003/01/06 11:20:22 seemant Exp $ | # $Header: /home/cvsroot/gentoo-x86/app-editors/jed/jed-0.99.16.ebuild,v 1.2 2003/01/06 11:20:22 seemant Exp $ |
| |
IUSE="X gpm" |
IUSE="X gpm truetype" |
| |
P0=${PN}-0.99-16 | P0=${PN}-0.99-16 |
S=${WORKDIR}/${P0} | S=${WORKDIR}/${P0} |
|
|
| |
DEPEND=">=sys-libs/slang-1.4.5 | DEPEND=">=sys-libs/slang-1.4.5 |
X? ( virtual/x11 ) | X? ( virtual/x11 ) |
gpm? ( sys-libs/gpm )" |
gpm? ( sys-libs/gpm ) |
|
truetype? ( >=x11-libs/xft-2.0 |
|
>=media-libs/freetype-2.0 )" |
| |
PROVIDE="virtual/editor" | PROVIDE="virtual/editor" |
| |
|
|
cd ${S} | cd ${S} |
fi | 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 | make clean || die |
| |
emake || die | emake || die |