summaryrefslogtreecommitdiff
blob: 7ad21581bf147e536a2724947980f917622f3a6e (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-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/gnuserv-programs/gnuserv-programs-3.12.8.ebuild,v 1.2 2007/12/01 11:26:26 opfer Exp $

DESCRIPTION="Binary programs for app-emacs/gnuserv"
HOMEPAGE="http://meltin.net/hacks/emacs/"
SRC_URI="http://meltin.net/hacks/emacs/src/gnuserv-${PV}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE="X"

DEPEND="!app-editors/xemacs
	!<=app-emacs/gnuserv-3.12.7
	X? ( x11-libs/libXau )"
RDEPEND="${DEPEND}"
PDEPEND="~app-emacs/gnuserv-${PV}"

S="${WORKDIR}/gnuserv-${PV}"

src_compile() {
	# bug #83112
	unset LDFLAGS

	econf $(use_enable X xauth) \
		--x-includes=/usr/X11R6/include \
		--x-libraries=/usr/X11R6/lib || die "econf failed"
	emake ELC="" || die "emake failed"
}

src_install() {
	emake -j1 ELC="" \
		prefix="${D}"/usr \
		man1dir="${D}"/usr/share/man/man1 \
		install || die "emake install failed"
}