summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2012-08-25 16:59:48 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2012-08-25 16:59:48 +0000
commit6d61e0b78601d122830fdef1cd40629faf6076dc (patch)
tree8d7d4468f9bcd1aef7b4ce039c6e03db59fdf311 /sys-apps
parentmajor typing error (diff)
downloadgentoo-2-6d61e0b78601d122830fdef1cd40629faf6076dc.tar.gz
gentoo-2-6d61e0b78601d122830fdef1cd40629faf6076dc.tar.bz2
gentoo-2-6d61e0b78601d122830fdef1cd40629faf6076dc.zip
Support reading udevdir from udev.pc pkg-config file. No revision bump since this thing doesn't compile anyways
(Portage version: 2.2.0_alpha122/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/pcfclock/ChangeLog7
-rw-r--r--sys-apps/pcfclock/pcfclock-0.44-r6.ebuild15
2 files changed, 15 insertions, 7 deletions
diff --git a/sys-apps/pcfclock/ChangeLog b/sys-apps/pcfclock/ChangeLog
index fd9622dba123..29b3870c2f0e 100644
--- a/sys-apps/pcfclock/ChangeLog
+++ b/sys-apps/pcfclock/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for sys-apps/pcfclock
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcfclock/ChangeLog,v 1.16 2010/11/16 16:32:53 sbriesen Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcfclock/ChangeLog,v 1.17 2012/08/25 16:59:48 ssuominen Exp $
+
+ 25 Aug 2012; Samuli Suominen <ssuominen@gentoo.org> pcfclock-0.44-r6.ebuild:
+ Support reading udevdir from udev.pc pkg-config file.
16 Nov 2010; Stefan Briesenick <sbriesen@gentoo.org>
-pcfclock-0.44-r5.ebuild:
diff --git a/sys-apps/pcfclock/pcfclock-0.44-r6.ebuild b/sys-apps/pcfclock/pcfclock-0.44-r6.ebuild
index 91d819d4f667..33a5885c271c 100644
--- a/sys-apps/pcfclock/pcfclock-0.44-r6.ebuild
+++ b/sys-apps/pcfclock/pcfclock-0.44-r6.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcfclock/pcfclock-0.44-r6.ebuild,v 1.3 2010/11/16 16:31:29 sbriesen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcfclock/pcfclock-0.44-r6.ebuild,v 1.4 2012/08/25 16:59:48 ssuominen Exp $
#EAPI="2" can't be used because of linux-mod
-inherit eutils linux-mod
+inherit eutils linux-mod toolchain-funcs
DESCRIPTION="driver for the parallel port radio clock sold by Conrad Electronic"
HOMEPAGE="http://www-stud.ims.uni-stuttgart.de/~voegelas/pcf.html"
@@ -15,6 +15,9 @@ SLOT="0"
KEYWORDS="~amd64 ~x86 ~ppc"
IUSE=""
+RDEPEND=""
+DEPEND="virtual/pkgconfig"
+
pkg_setup() {
CONFIG_CHECK="PARPORT"
linux-mod_pkg_setup
@@ -46,7 +49,9 @@ src_install() {
dodoc AUTHORS ChangeLog NEWS README THANKS
# Add configuration for udev
- dodir /etc/udev/rules.d
+ local udevdir=/lib/udev
+ has_version sys-fs/udev && udevdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)"
+ dodir "${udevdir}"/rules.d
echo 'KERNEL=="pcfclock*", NAME="%k", MODE="0444"' \
- > "${D}/etc/udev/rules.d/55-${PN}.rules"
+ > "${D}/${udevdir}"/rules.d/55-${PN}.rules
}