blob: ad8a2b3155945bce2a693695a2abb8387c9f4c4f (
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
63
64
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/manedit/manedit-0.8.1.ebuild,v 1.2 2007/02/19 22:30:29 fuzzyray Exp $
inherit eutils
DESCRIPTION="Man page editor using XML tags"
HOMEPAGE="http://wolfpack.twu.net/ManEdit/"
SRC_URI="ftp://wolfpack.twu.net/users/wolfpack/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE=""
RDEPEND="=x11-libs/gtk+-1*
sys-libs/zlib
app-arch/bzip2
|| ( ( x11-libs/libXi
)
virtual/x11
)"
DEPEND="${RDEPEND}"
src_unpack() {
# Patch to fix QA warnings and to generate man page.
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PF}-gentoo.patch
}
src_compile() {
# It autodetects x86 processors and adds the -march option itself
# but we don't actually want that.
env CFLAGS="${CFLAGS}" \
./configure Linux \
--prefix=/usr \
--mandir=/usr/share/man \
--datadir=/usr/share \
--enable=bzip2 \
--enable=zlib \
--disable="arch-i486" \
--disable="arch-i586" \
--disable="arch-i686" \
--disable="arch-pentiumpro" || die "Bad Configure"
emake || die "Compile Error"
}
src_install() {
# fix strip error (tries to strip a shell script)
cp manedit/Makefile.install.UNIX{,.orig}
sed -e '/INST.*FLAGS.*-s$/s:-s::' \
manedit/Makefile.install.UNIX.orig > manedit/Makefile.install.UNIX
# set man dir too or FHS is violated (/usr/man)
make \
PREFIX=${D}/usr \
MAN_DIR=${D}/usr/share/man/man1 \
ICONS_DIR=${D}/usr/share/pixmaps \
install || die "make install failed."
dodoc AUTHORS LICENSE README
}
|