summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-21 00:58:48 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-21 00:58:48 +0000
commit452ae14cfaa10ad783ec3fea752d16f83f31f17a (patch)
treea4a27902b3aa0fb899a0e923318c22886e218aad /sys-apps/mouseemu
parentAdded patches from RedHat to support PIEs in gdb-6.3 (diff)
downloadgentoo-2-452ae14cfaa10ad783ec3fea752d16f83f31f17a.tar.gz
gentoo-2-452ae14cfaa10ad783ec3fea752d16f83f31f17a.tar.bz2
gentoo-2-452ae14cfaa10ad783ec3fea752d16f83f31f17a.zip
respect CFLAGS/LDFLAGS
(Portage version: 2.1_pre4-r1)
Diffstat (limited to 'sys-apps/mouseemu')
-rw-r--r--sys-apps/mouseemu/files/mouseemu-0.15-build.patch9
-rw-r--r--sys-apps/mouseemu/mouseemu-0.15.ebuild25
2 files changed, 20 insertions, 14 deletions
diff --git a/sys-apps/mouseemu/files/mouseemu-0.15-build.patch b/sys-apps/mouseemu/files/mouseemu-0.15-build.patch
new file mode 100644
index 000000000000..882d66fa7750
--- /dev/null
+++ b/sys-apps/mouseemu/files/mouseemu-0.15-build.patch
@@ -0,0 +1,9 @@
+--- Makefile
++++ Makefile
+@@ -1,5 +1,5 @@
+ all:
+- gcc -Wall -g -o mouseemu mouseemu.c
++ gcc -Wall $(CFLAGS) $(LDFLAGS) -o mouseemu mouseemu.c
+ clean:
+ rm -f *.o core* mouseemu
+ install:
diff --git a/sys-apps/mouseemu/mouseemu-0.15.ebuild b/sys-apps/mouseemu/mouseemu-0.15.ebuild
index 0715e086538b..be0035efb954 100644
--- a/sys-apps/mouseemu/mouseemu-0.15.ebuild
+++ b/sys-apps/mouseemu/mouseemu-0.15.ebuild
@@ -1,36 +1,33 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/mouseemu/mouseemu-0.15.ebuild,v 1.1 2005/05/08 23:46:10 pylon Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/mouseemu/mouseemu-0.15.ebuild,v 1.2 2006/02/21 00:58:48 vapier Exp $
inherit eutils
DESCRIPTION="Emulates scrollwheel, right- & left-click for one-button mice/touchpads"
HOMEPAGE="http://geekounet.org/powerbook/"
SRC_URI="http://geekounet.org/powerbook/files/${P}.tar.gz"
+
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ~ppc"
IUSE=""
+
DEPEND=""
-S="${WORKDIR}/${PN}"
+S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A}
- cd ${S}
- epatch ${FILESDIR}/${PN}-0.13-fix.patch
-}
-
-src_compile() {
- echo `pwd`
- emake || die
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-0.13-fix.patch
+ epatch "${FILESDIR}"/${PN}-0.15-build.patch
}
src_install() {
- dosbin mouseemu
- dodoc README COPYING
- exeinto /etc/init.d/
- newexe mouseemu.init.gentoo mouseemu
+ dosbin mouseemu || die
+ dodoc README
+ newinitd mouseemu.init.gentoo mouseemu
insinto /etc
doins mouseemu.conf
}