/[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.6 - (show annotations) (download)
Wed Apr 28 22:27:37 2010 UTC (8 years, 1 month ago) by jer
Branch: MAIN
Changes since 1.5: +3 -2 lines
Fail in the top Makefile (bug #317539).
(Portage version: 2.2_rc67/cvs/Linux i686)

1 # Copyright 1999-2010 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.5 2009/10/08 19:54:30 sbriesen 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 sys-fs/udev"
22 DEPEND="${RDEPEND}
23 dev-util/pkgconfig
24 !app-laptop/smcinit"
25
26 src_unpack() {
27 unpack ${A}
28
29 cd "${S}"
30 epatch "${FILESDIR}/irda-utils-rh1.patch"
31 epatch "${FILESDIR}/${P}-makefile.diff"
32 epatch "${FILESDIR}/${P}-smcinit.diff"
33 epatch "${FILESDIR}/${P}-io.h.diff"
34 epatch "${FILESDIR}/${P}-dofail.patch"
35
36 # fix crosscompile, respect CFLAGS (Bug 200295)
37 sed -i -e "/^CC/s:gcc:$(tc-getCC):" \
38 -e "/^LD/s:ld:$(tc-getLD):" \
39 -e "/^AR/s:ar:$(tc-getAR):" \
40 -e "/^RANLIB/s:ranlib:$(tc-getRANLIB):" \
41 -e "/^CFLAGS/s:-O2:${CFLAGS}:" Makefile */Makefile
42
43 # fix compile when pciutils is compiled with USE=zlib (Bug 200295)
44 sed -i -e "s:-lpci:$(pkg-config --libs libpci):g" smcinit/Makefile
45
46 # disable etc subdir in Makefile
47 sed -i -e "s:^\(DIRS.*=.* \)etc \(.*\):\1\2:g" Makefile
48
49 # disable write_pid(), because we don't need it
50 sed -i -e "s:\(write_pid();\):/* \1 */:g" irattach/util.c
51
52 append-flags "-fno-strict-aliasing"
53 }
54
55 src_compile() {
56 emake RPM_OPT_FLAGS="${CFLAGS}" RPM_BUILD_ROOT="${D}" ROOT="${D}" \
57 || die "emake failed"
58 }
59
60 src_install () {
61 dodir /usr/bin
62 dodir /usr/sbin
63
64 emake install RPM_OPT_FLAGS="${CFLAGS}" ROOT="${D}" \
65 MANDIR="${D}usr/share/man" || die "emake install failed"
66
67 newdoc ethereal/README README.wireshark
68 newdoc irattach/README README.irattach
69 newdoc irdadump/README README.irdadump
70 newdoc irdaping/README README.irdaping
71 newdoc irsockets/README README.irsockets
72 newdoc tekram/README README.tekram
73 newdoc smcinit/README README.smcinit
74 newdoc smcinit/README.Peri README.smcinit.Peri
75 newdoc smcinit/README.Rob README.smcinit.Rob
76 newdoc smcinit/README.Tom README.smcinit.Tom
77 newdoc irattach/ChangeLog ChangeLog.irattach
78 newdoc irdadump/ChangeLog ChangeLog.irdadump
79 newdoc smcinit/ChangeLog ChangeLog.smcinit
80 dohtml smcinit/RobMiller-irda.html
81 dodoc README
82
83 newconfd "${FILESDIR}/irda.confd" irda
84 newinitd "${FILESDIR}/irda.initd" irda
85
86 insinto /etc/modprobe.d
87 newins "${FILESDIR}/irda.modsd" irda.conf
88
89 insinto /etc/udev/rules.d
90 newins "${FILESDIR}/irda.rules" 53-irda.rules
91 exeinto /lib/udev
92 newexe "${FILESDIR}/irda-setup.sh" irda-setup
93 newexe "${FILESDIR}/irda-usb.sh" irda-usb
94 }

  ViewVC Help
Powered by ViewVC 1.1.20