summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-04-06 03:45:14 +0000
committerMike Frysinger <vapier@gentoo.org>2004-04-06 03:45:14 +0000
commita79454b8fc48653f8b097cccc43c0082148dfe01 (patch)
treed3630ae7b611b7d4b5d150d5000355298fcfb277 /app-editors/mp
parent(no commit message) (diff)
downloadhistorical-a79454b8fc48653f8b097cccc43c0082148dfe01.tar.gz
historical-a79454b8fc48653f8b097cccc43c0082148dfe01.tar.bz2
historical-a79454b8fc48653f8b097cccc43c0082148dfe01.zip
add inherit eutils
Diffstat (limited to 'app-editors/mp')
-rw-r--r--app-editors/mp/mp-3.2.11.ebuild32
1 files changed, 18 insertions, 14 deletions
diff --git a/app-editors/mp/mp-3.2.11.ebuild b/app-editors/mp/mp-3.2.11.ebuild
index 323e1297dcb2..de87b2d25151 100644
--- a/app-editors/mp/mp-3.2.11.ebuild
+++ b/app-editors/mp/mp-3.2.11.ebuild
@@ -1,36 +1,40 @@
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-editors/mp/mp-3.2.11.ebuild,v 1.2 2004/03/13 22:30:28 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-editors/mp/mp-3.2.11.ebuild,v 1.3 2004/04/06 03:42:07 vapier Exp $
+
+inherit eutils
DESCRIPTION="mp, the definitive text editor"
+HOMEPAGE="http://www.triptico.com/software/mp.html"
SRC_URI="http://www.triptico.com/download/${P}.tar.gz"
-HOMEPAGE="http://www.triptico.com/software/mp.html"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~sparc"
+IUSE="ncurses gtk"
DEPEND="virtual/glibc
ncurses? ( sys-libs/ncurses )
- gtk? ( =x11-libs/gtk+-1.2* )"
-
+ gtk? ( =x11-libs/gtk+-1.2* )
+ !gtk? ( sys-libs/ncurses )"
RDEPEND="${DEPEND}
dev-lang/perl"
-IUSE="ncurses gtk"
-SLOT="0"
-LICENSE="GPL-2"
-KEYWORDS="~x86 ~sparc"
src_compile() {
epatch ${FILESDIR}/gentoo-synh-mp.patch-3.2.11
- if [ -n "`use ncurses`" ] && [ -n "`use gtk`" ]; then emake || die;
- elif [ -n "`use ncurses`" ]; then emake mp || die;
- elif [ -n "`use gtk`" ]; then emake gmp || die;
- else die "You need ncurses and/or gtk in your USE variables";
+ if use ncurses && use gtk ; then
+ emake || die "make failed"
+ elif use gtk ; then
+ emake gmp || die "make gmp failed"
+ else
+ emake mp || die "make mp failed"
fi
}
-src_install () {
+src_install() {
dodir /usr/bin
make install PREFIX=${D}/usr || die "install failed"
- dodoc AUTHORS Changelog COPYING README
+ dodoc AUTHORS Changelog README
dohtml README.html doc/mp_api.html
insinto /usr/share/pixmaps/
doins mp.xpm