Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 299132 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/x11-misc/xdotool/xdotool-20090815.ebuild (-13 / +9 lines)
Lines 4-10 Link Here
4
4
5
EAPI=2
5
EAPI=2
6
6
7
inherit toolchain-funcs
7
inherit eutils toolchain-funcs flag-o-matic multilib
8
8
9
DESCRIPTION="Simulate keyboard input and mouse activity, move and resize windows."
9
DESCRIPTION="Simulate keyboard input and mouse activity, move and resize windows."
10
HOMEPAGE="http://www.semicomplete.com/projects/xdotool/"
10
HOMEPAGE="http://www.semicomplete.com/projects/xdotool/"
Lines 21-41 Link Here
21
RDEPEND="${DEPEND}"
21
RDEPEND="${DEPEND}"
22
22
23
src_prepare() {
23
src_prepare() {
24
	cd "${S}"
24
	epatch "${FILESDIR}/${P}_install-D.patch"
25
	sed -i -e "s:^CFLAGS=\?.*:CFLAGS=-std=c99 ${CFLAGS}:" \
25
}
26
		-e "s:^LIBS=.*:LIBS=$(pkg-config --libs x11 xtst):" \
26
27
		-e "s:^INC=.*:INC=$(pkg-config --cflags x11 xtst):" \
27
src_compile() {
28
		-e "s:\$(CC):$(tc-getCC):" \
28
	emake CC="$(tc-getCC)" || die
29
		-e 's:LDFLAGS+=$(LIBS)::' \
29
	emake LD="$(tc-getLD)" LDFLAGS="$(raw-ldflags)" libxdo.so || die
30
		-e 's:-o $@:$(LIBS) -o $@:' \
31
		-e "s:\$(CFLAGS):\$(INC) \$(CFLAGS):" \
32
		Makefile \
33
		|| die "sed Makefile failed."
34
}
30
}
35
31
36
src_install() {
32
src_install() {
37
	dobin ${PN}
33
	emake PREFIX="${D}usr" INSTALLLIB="${D}usr/$(get_libdir)" install || die
38
	doman ${PN}.1
34
39
	dodoc CHANGELIST README
35
	dodoc CHANGELIST README
40
	if use examples; then
36
	if use examples; then
41
		insinto /usr/share/doc/${PF}/examples
37
		insinto /usr/share/doc/${PF}/examples

Return to bug 299132