blob: 721334fef878e94f55f717db93731ec3a8a62820 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-editors/mp/mp-3.3.18b.ebuild,v 1.5 2008/03/26 17:04:40 corsair Exp $
inherit eutils
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="alpha amd64 ia64 ppc ppc64 sparc x86"
IUSE="gtk ncurses nls pcre"
RDEPEND="virtual/libc
ncurses? ( sys-libs/ncurses )
gtk? ( >=x11-libs/gtk+-2 >=x11-libs/pango-1.8.0 )
!gtk? ( sys-libs/ncurses )
nls? ( sys-devel/gettext )
pcre? ( dev-libs/libpcre )
dev-lang/perl"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
src_compile() {
local myconf="--prefix=/usr --without-win32 --without-gtk1"
if use gtk ; then
! use ncurses && myconf="${myconf} --without-curses"
else
myconf="${myconf} --without-gtk2"
fi
use nls || myconfig="${myconf} --without-i18n --without-gettext"
use pcre || myconf="${myconf} --without-pcre --with-included-regex"
sh config.sh ${myconf} || die "Configure failed"
echo ${CFLAGS} >> config.cflags
echo ${LDFLAGS} >> config.ldflags
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
}
pkg_postinst() {
if use gtk ; then
einfo
einfo "mp is symlinked to gmp! Use mp -tx to use text mode!"
einfo
epause 5
fi
}
|