summaryrefslogtreecommitdiff
blob: db1b41a1cf04b58ce35749da81f47d51f4bc9e0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/mp/mp-3.3.1.ebuild,v 1.8 2005/06/12 12:10:31 swegener Exp $

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="ncurses gtk"

DEPEND="virtual/libc
		ncurses? ( sys-libs/ncurses )
		gtk? ( >=x11-libs/gtk+-1.2 )
		!gtk? ( sys-libs/ncurses )"
RDEPEND="${DEPEND}
		dev-lang/perl"

src_compile() {
	local myconf

	if use gtk ; then
		if use ncurses ; then
			sh config.sh ${myconf}|| die "Configure Failed"
		else
			myconf="${myconf} --without-curses"
			sh config.sh ${myconf} || die "Configure Failed"
		fi
	else
		myconf="${myconf} --without-gtk"
		sh config.sh ${myconf} || die "Configure Failed"
	fi
	echo ${CFLAGS} >> config.cflags
	emake || die "Compile Failed"
}

src_install() {
	dobin mp || die "Install Failed"
	use gtk && dosym mp "${DESTTREE}/bin/gmp"
	dodoc AUTHORS README Changelog mprc.sample
	doman mp.1
}