/[gentoo-x86]/net-wireless/irda-utils/irda-utils-0.9.18-r3.ebuild
Gentoo

Contents of /net-wireless/irda-utils/irda-utils-0.9.18-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Tue Dec 11 17:37:23 2012 UTC (2 years ago) by axs
Branch: MAIN
Changes since 1.8: +2 -2 lines
virtualize udev dependency

(Portage version: 2.1.11.33/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-wireless/irda-utils/irda-utils-0.9.18-r3.ebuild,v 1.8 2012/05/04 06:41:55 jdhore Exp $
4
5 inherit eutils toolchain-funcs flag-o-matic
6
7 DESCRIPTION="IrDA management and handling utilities"
8 HOMEPAGE="http://irda.sourceforge.net"
9 SRC_URI="mirror://sourceforge/irda/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="amd64 ~arm ppc ~sh x86"
14 IUSE=""
15
16 RDEPEND="=dev-libs/glib-2*
17 >=sys-apps/pciutils-2.2.7-r1
18 sys-process/procps
19 sys-apps/setserial
20 sys-apps/grep
21 virtual/udev"
22 DEPEND="${RDEPEND}
23 virtual/pkgconfig
24 !app-laptop/smcinit"
25
26 src_unpack() {
27 unpack ${A}
28
29 cd "${S}"
30 epatch "${FILESDIR}"/irda-utils-rh1.patch \
31 "${FILESDIR}"/${P}-makefile.diff \
32 "${FILESDIR}"/${P}-smcinit.diff \
33 "${FILESDIR}"/${P}-io.h.diff \
34 "${FILESDIR}"/${P}-dofail.patch \
35 "${FILESDIR}"/${P}-asneeded.patch
36
37 # fix crosscompile, respect CFLAGS (Bug 200295)
38 sed -i -e "/^CC/s:gcc:$(tc-getCC):" \
39 -e "/^LD/s:ld:$(tc-getLD):" \
40 -e "/^AR/s:ar:$(tc-getAR):" \
41 -e "/^RANLIB/s:ranlib:$(tc-getRANLIB):" \
42 -e "/^CFLAGS/s:-O2:${CFLAGS}:" Makefile */Makefile
43
44 # fix compile when pciutils is compiled with USE=zlib (Bug 200295)
45 sed -i -e "s:-lpci:$(pkg-config --libs libpci):g" smcinit/Makefile
46
47 # disable etc subdir in Makefile
48 sed -i -e "s:^\(DIRS.*=.* \)etc \(.*\):\1\2:g" Makefile
49
50 # disable write_pid(), because we don't need it
51 sed -i -e "s:\(write_pid();\):/* \1 */:g" irattach/util.c
52
53 append-flags "-fno-strict-aliasing"
54 }
55
56 src_compile() {
57 emake RPM_OPT_FLAGS="${CFLAGS}" RPM_BUILD_ROOT="${D}" ROOT="${D}" \
58 || die "emake failed"
59 }
60
61 src_install () {
62 dodir /usr/bin
63 dodir /usr/sbin
64
65 emake install RPM_OPT_FLAGS="${CFLAGS}" ROOT="${D}" \
66 MANDIR="${D}usr/share/man" || die "emake install failed"
67
68 newdoc ethereal/README README.wireshark
69 newdoc irattach/README README.irattach
70 newdoc irdadump/README README.irdadump
71 newdoc irdaping/README README.irdaping
72 newdoc irsockets/README README.irsockets
73 newdoc tekram/README README.tekram
74 newdoc smcinit/README README.smcinit
75 newdoc smcinit/README.Peri README.smcinit.Peri
76 newdoc smcinit/README.Rob README.smcinit.Rob
77 newdoc smcinit/README.Tom README.smcinit.Tom
78 newdoc irattach/ChangeLog ChangeLog.irattach
79 newdoc irdadump/ChangeLog ChangeLog.irdadump
80 newdoc smcinit/ChangeLog ChangeLog.smcinit
81 dohtml smcinit/RobMiller-irda.html
82 dodoc README
83
84 newconfd "${FILESDIR}/irda.confd" irda
85 newinitd "${FILESDIR}/irda.initd" irda
86
87 insinto /etc/modprobe.d
88 newins "${FILESDIR}/irda.modsd" irda.conf
89
90 insinto /etc/udev/rules.d
91 newins "${FILESDIR}/irda.rules" 53-irda.rules
92 exeinto /lib/udev
93 newexe "${FILESDIR}/irda-setup.sh" irda-setup
94 newexe "${FILESDIR}/irda-usb.sh" irda-usb
95 }

  ViewVC Help
Powered by ViewVC 1.1.20