# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Minimum Profit: A text editor for programmers" HOMEPAGE="http://www.triptico.com/software/mp.html" SRC_URI="http://www.triptico.com/download/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~sparc ~amd64 ~ppc" IUSE="gtk gtk2 ncurses pcre" DEPEND="virtual/libc ncurses? ( sys-libs/ncurses ) gtk2? ( !gtk? ( >=x11-libs/gtk+-2.4* ) ) gtk? ( !gtk2? ( >=x11-libs/gtk+-1.2* ) ) !gtk? ( sys-libs/ncurses )" RDEPEND="${DEPEND} pcre? ( >=dev-lang/perl )" src_compile() { local myconf use ncurses || myconf="${myconf} --without-curses" use gtk || myconf="${myconf} --without-gtk1" use gtk2 || myconf="${myconf} --without-gtk2" use pcre || myconf="${myconf} --without-pcre --with-included-regex" sh config.sh ${myconf} || die "Configure failed" echo ${CFLAGS} >> config.cflags emake || die "Compile Failed" } src_install() { dobin mp || die "Install Failed" use gtk && dosym mp "${DESTDIR}/bin/gmp" dodoc AUTHORS README Changelog mprc.sample doman mp.1 }