/[gentoo-x86]/sys-apps/razercfg/razercfg-0.17.ebuild
Gentoo

Contents of /sys-apps/razercfg/razercfg-0.17.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Jul 12 21:48:57 2012 UTC (21 months ago) by joker
Branch: MAIN
Changes since 1.2: +2 -2 lines
Update SRC_URI to new domain

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/razercfg/razercfg-0.17.ebuild,v 1.2 2012/04/30 12:38:02 joker Exp $
4
5 EAPI=4
6
7 inherit cmake-utils multilib eutils
8
9 DESCRIPTION="Utility for advanced configuration of Razer mice (DeathAdder, Krait, Lachesis)"
10
11 HOMEPAGE="http://bues.ch/cms/hacking/razercfg.html"
12 SRC_URI="http://bues.ch/${PN}/${P}.tar.bz2"
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="+pm-utils qt4"
17
18 RDEPEND="${DEPEND}
19 pm-utils? ( sys-power/pm-utils )
20 qt4? ( dev-python/PyQt4 )
21 dev-lang/python"
22
23 DEPEND="${DEPEND}"
24
25 src_prepare() {
26 sed -i \
27 -e '/ldconfig/{N;d}' \
28 -e '/udevadm control/{N;d}' \
29 -e "s:/etc/udev/rules.d/:/$(get_libdir)/udev/rules.d/:" \
30 -e 's:01-razer-udev.rules:40-razercfg.rules:' \
31 -e "s:/etc/pm/sleep.d:/usr/$(get_libdir)/pm-utils/sleep.d/:" \
32 -e 's:50-razer:80razer:' \
33 librazer/CMakeLists.txt \
34 || die "sed failed"
35 }
36
37 src_install() {
38 cmake-utils_src_install
39 newinitd "${FILESDIR}"/razerd.init.d razerd
40 dodoc README razer.conf
41
42 if ! use qt4; then
43 rm "${D}"/usr/bin/qrazercfg
44 else
45 make_desktop_entry qrazercfg "Razer Mouse Settings" mouse "Qt;Settings"
46 fi
47
48 use pm-utils || rm "${D}"/usr/$(get_libdir)/pm-utils/sleep.d/80razer
49 }
50
51 pkg_postinst() {
52 udevadm control --reload-rules && udevadm trigger --subsystem-match=usb
53 }

  ViewVC Help
Powered by ViewVC 1.1.20