summaryrefslogtreecommitdiff
blob: fdd4156faaa4f1579188049487f3539f962945bf (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xclip/xclip-0.08-r2.ebuild,v 1.2 2007/08/17 13:03:22 gustavoz Exp $

inherit eutils

DESCRIPTION="Command-line utility to read data from standard in and place it in an X selection for pasting into X applications."
SRC_URI="http://people.debian.org/~kims/${PN}/${P}.tar.gz
	mirror://debian/pool/main/x/${PN}/${PN}_${PV}-7.diff.gz"
HOMEPAGE="http://people.debian.org/~kims/xclip"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE=""

S="${WORKDIR}"/${PN}

RDEPEND="x11-libs/libX11
	x11-libs/libXmu
	x11-libs/libXt
	x11-libs/libXext"
DEPEND="${RDEPEND}
	app-text/rman
	x11-misc/imake"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${WORKDIR}"/${PN}_${PV}-7.diff
}

src_compile() {
	xmkmf || die "xmkmf failed."
	emake || die "emake failed."
}

src_install () {
	emake DESTDIR=${D} install || die "emake install failed."
	emake DESTDIR=${D} MANPATH=/usr/share/man MANSUFFIX=1 \
		install.man || die "emake install failed."
	rm -f "${D}"/usr/lib/X11/doc/html/*
	find "${D}" -depth -type d | xargs -n1 rmdir 2>/dev/null
	dodoc README CHANGES
}