summaryrefslogtreecommitdiff
blob: 152be34ab38fe1c14ff41f64af5ad7cddae1ace0 (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Your Name <your email>
# $Header: /var/cvsroot/gentoo-x86/app-text/gmanedit/gmanedit-0.3.3-r1.ebuild,v 1.1 2001/10/06 17:22:51 azarah Exp $

#P=
A=${P}.tar.bz2
S=${WORKDIR}/${P}.orig
DESCRIPTION="Gnome based manpage editor"
SRC_URI="http://gmanedit.sourceforge.net/files/${A}"
HOMEPAGE="http://gmanedit.sourceforge.net/"

DEPEND="virtual/x11
		  >=gnome-base/gnome-core-1.4.0.4-r1"

src_unpack() {
	unpack ${A}
	cd ${S}
	patch -p0 < ${FILESDIR}/gmanedit-0.3.3.diff
}

src_compile() {

local myconf
if [ -z "`use gnome`" ]; then
	myconf="--with-gnome-includes=/usr/include\
				--with-gnome-libs=/usr/lib"
fi
# NOTE WILL NOT COMPILE WITHOUT --disable-nls
	 try ./configure --prefix=/usr --host=${CHOST}\
		--disable-nls  ${myconf}
    try make

}

src_install () {

    try make DESTDIR=${D} install
	dodoc AUTHORS COPYING ChangeLog TODO README NEWS
}