Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 90802
Collapse All | Expand All

(-)synaptics-0.14.1.ebuild.orig (-12 / +15 lines)
Lines 1-8 Link Here
1
# Copyright 1999-2005 Gentoo Foundation
1
# Copyright 1999-2005 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/x11-misc/synaptics/synaptics-0.14.1.ebuild,v 1.1 2005/03/15 03:32:18 battousai Exp $
3
# $Header: $
4
4
5
inherit toolchain-funcs eutils
5
inherit toolchain-funcs eutils x11-prefix
6
6
7
# This ebuild overwrites synaptics files installed by <= xfree-4.3.0-r6
7
# This ebuild overwrites synaptics files installed by <= xfree-4.3.0-r6
8
# and xfree-4.3.99.14 >= X >= xfree-4.3.99.8.
8
# and xfree-4.3.99.14 >= X >= xfree-4.3.99.8.
Lines 20-32 Link Here
20
src_unpack() {
20
src_unpack() {
21
	unpack ${A}
21
	unpack ${A}
22
22
23
	cd ${S}
23
	# Put stuff into $X11_PREFIX, also switch up the CC and CFLAGS stuff.
24
24
	sed -i \
25
	# Put stuff into /usr/X11R6, also switch up the CC and CFLAGS stuff.
25
		-e "/^BINDIR = /s:/usr/local:${X11_PREFIX}:" \
26
	sed -i -e "s:BINDIR = \\\$(DESTDIR)/usr/local/bin:BINDIR = ${D}/usr/X11R6/bin:g" ${S}/Makefile
26
		-e "/^CC = /s:gcc:$(tc-getCC):" \
27
	sed -i -e "s:CC = gcc:CC = $(tc-getCC):g" ${S}/Makefile
27
		-e "/^CDEBUGFLAGS = /s:-O2:${CFLAGS}:" \
28
	sed -i -e "s:CDEBUGFLAGS = -O2:CDEBUGFLAGS = ${CFLAGS}:g" ${S}/Makefile
28
		-e "/^MANDIR = /s:/usr/local/man:/usr/share/man:" \
29
	sed -i -e "s:MANDIR = .*:MANDIR = \\\$(DESTDIR)/usr/man/man1:" ${S}/Makefile
29
		-e "/^INSTALLED_X = /s:/usr/X11R6:${X11_PREFIX}:" \
30
		${S}/Makefile
31
	sed -e "s:/usr/X11R6:${X11_PREFIX}:" \
32
		${FILESDIR}/rc.init > ${S}/rc.init
30
}
33
}
31
34
32
src_compile() {
35
src_compile() {
Lines 34-45 Link Here
34
}
37
}
35
38
36
src_install() {
39
src_install() {
37
	dodir /usr/X11R6/{bin,lib/modules/input}
40
	dodir ${X11_PREFIX}/{bin,lib/modules/input}
38
41
39
	# Yes, they got the DESTDIR stuff going. And there was much rejoicing.
42
	# Yes, they got the DESTDIR stuff going. And there was much rejoicing.
40
	make DESTDIR=${D} install || die
43
	make DESTDIR=${D} install || die
41
	dodoc {script/usbmouse,alps.patch,COMPATIBILITY,FILES,INSTALL{,.DE},LICENSE,NEWS,TODO,README{,.alps}}
44
	dodoc {script/usbmouse,alps.patch,COMPATIBILITY,FILES,INSTALL{,.DE},LICENSE,NEWS,TODO,README{,.alps}}
42
	# Stupid new daemon, didn't work for me because of shm issues
45
	# Stupid new daemon, didn't work for me because of shm issues
43
	exeinto /etc/init.d && newexe ${FILESDIR}/rc.init syndaemon
46
	newinitd ${S}/rc.init syndaemon
44
	insinto /etc/conf.d && newins ${FILESDIR}/rc.conf syndaemon
47
	newconfd ${FILESDIR}/rc.conf syndaemon
45
}
48
}

Return to bug 90802