blob: 323e1297dcb2cf69ff14fe20efd3081ffc68b237 (
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
|
# 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 $
DESCRIPTION="mp, the definitive text editor"
SRC_URI="http://www.triptico.com/download/${P}.tar.gz"
HOMEPAGE="http://www.triptico.com/software/mp.html"
DEPEND="virtual/glibc
ncurses? ( sys-libs/ncurses )
gtk? ( =x11-libs/gtk+-1.2* )"
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";
fi
}
src_install () {
dodir /usr/bin
make install PREFIX=${D}/usr || die "install failed"
dodoc AUTHORS Changelog COPYING README
dohtml README.html doc/mp_api.html
insinto /usr/share/pixmaps/
doins mp.xpm
}
|