/[gentoo-x86]/sys-apps/pcfclock/pcfclock-0.44-r6.ebuild
Gentoo

Contents of /sys-apps/pcfclock/pcfclock-0.44-r6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Dec 9 09:32:22 2013 UTC (9 months, 2 weeks ago) by pinkbyte
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Remove sys-apps/pcfclock, wrt bug #489510

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/pcfclock/pcfclock-0.44-r6.ebuild,v 1.5 2012/12/11 18:10:28 axs Exp $
4
5 #EAPI="2" can't be used because of linux-mod
6
7 inherit eutils linux-mod udev toolchain-funcs
8
9 DESCRIPTION="driver for the parallel port radio clock sold by Conrad Electronic"
10 HOMEPAGE="http://www-stud.ims.uni-stuttgart.de/~voegelas/pcf.html"
11 SRC_URI="http://www-stud.ims.uni-stuttgart.de/~voegelas/pcfclock/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86 ~ppc"
16 IUSE=""
17
18 RDEPEND=""
19 DEPEND="virtual/pkgconfig"
20
21 pkg_setup() {
22 CONFIG_CHECK="PARPORT"
23 linux-mod_pkg_setup
24 BUILD_TARGETS="all"
25 ECONF_PARAMS="--with-linux=${KERNEL_DIR}"
26 MODULE_NAMES="pcfclock(::${S}/linux)"
27 MODULESD_PCFCLOCK_ENABLED="yes"
28 MODULESD_PCFCLOCK_EXAMPLES=( "pcfclock parport=0,none,none" )
29 MODULESD_PCFCLOCK_ALIASES=(
30 "char-major-181 pcfclock"
31 "/dev/pcfclock0 char-major-181"
32 "/dev/pcfclock1 char-major-181"
33 "/dev/pcfclock2 char-major-181"
34 )
35 }
36
37 src_unpack() {
38 unpack ${A}
39 cd "${S}"
40 epatch "${FILESDIR}/${P}-kernel-2.6.27.diff"
41 epatch "${FILESDIR}/${P}-configure.diff"
42 convert_to_m "linux/Makefile.in"
43 }
44
45 src_install() {
46 linux-mod_src_install
47 dosbin pcfdate/pcfdate
48 doman {linux,pcfdate}/*.[48]
49 dodoc AUTHORS ChangeLog NEWS README THANKS
50
51 # Add configuration for udev
52 local udevdir="$(udev_get_udevdir)"
53 dodir "${udevdir}"/rules.d
54 echo 'KERNEL=="pcfclock*", NAME="%k", MODE="0444"' \
55 > "${D}/${udevdir}"/rules.d/55-${PN}.rules
56 }

  ViewVC Help
Powered by ViewVC 1.1.20