/[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.5 - (show annotations) (download)
Thu Oct 8 19:54:30 2009 UTC (9 years ago) by sbriesen
Branch: MAIN
Changes since 1.4: +2 -2 lines
fixed modprobe.d file (.conf extension) + removed old version.
(Portage version: 2.2_rc44/cvs/Linux i686)

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

  ViewVC Help
Powered by ViewVC 1.1.20