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 |
"${FILESDIR}/${P}_as-needed.patch" |
26 |
-e "s:^LIBS=.*:LIBS=$(pkg-config --libs x11 xtst):" \ |
26 |
} |
27 |
-e "s:^INC=.*:INC=$(pkg-config --cflags x11 xtst):" \ |
27 |
|
28 |
-e "s:\$(CC):$(tc-getCC):" \ |
28 |
src_compile() { |
29 |
-e 's:LDFLAGS+=$(LIBS)::' \ |
29 |
emake CC="$(tc-getCC)" || die |
30 |
-e 's:-o $@:$(LIBS) -o $@:' \ |
30 |
export LDFLAGS="$(raw-ldflags)" |
31 |
-e "s:\$(CFLAGS):\$(INC) \$(CFLAGS):" \ |
31 |
emake LD="$(tc-getLD)" libxdo.so || die |
32 |
Makefile \ |
|
|
33 |
|| die "sed Makefile failed." |
34 |
} |
32 |
} |
35 |
|
33 |
|
36 |
src_install() { |
34 |
src_install() { |
37 |
dobin ${PN} |
35 |
emake PREFIX="${D}usr" INSTALLLIB="${D}usr/$(get_libdir)" install || die |
38 |
doman ${PN}.1 |
36 |
|
39 |
dodoc CHANGELIST README |
37 |
dodoc CHANGELIST README |
40 |
if use examples; then |
38 |
if use examples; then |
41 |
insinto /usr/share/doc/${PF}/examples |
39 |
insinto /usr/share/doc/${PF}/examples |