/[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.7 - (hide annotations) (download)
Tue Jun 29 16:08:39 2010 UTC (8 years, 1 month ago) by ssuominen
Branch: MAIN
Changes since 1.6: +7 -6 lines
Fix building with -Wl,--as-needed wrt #318135 by Kacper Kowalik.
(Portage version: 2.2_rc67/cvs/Linux x86_64)

1 jer 1.6 # Copyright 1999-2010 Gentoo Foundation
2 sbriesen 1.1 # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.7 # $Header: /var/cvsroot/gentoo-x86/net-wireless/irda-utils/irda-utils-0.9.18-r3.ebuild,v 1.6 2010/04/28 22:27:37 jer Exp $
4 sbriesen 1.1
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 nixnut 1.4 KEYWORDS="amd64 ~arm ppc ~sh x86"
14 sbriesen 1.1 IUSE=""
15    
16 drac 1.2 RDEPEND="=dev-libs/glib-2*
17     >=sys-apps/pciutils-2.2.7-r1
18 sbriesen 1.1 sys-process/procps
19     sys-apps/setserial
20     sys-apps/grep
21     sys-fs/udev"
22 drac 1.2 DEPEND="${RDEPEND}
23     dev-util/pkgconfig
24     !app-laptop/smcinit"
25 sbriesen 1.1
26     src_unpack() {
27     unpack ${A}
28    
29     cd "${S}"
30 ssuominen 1.7 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 sbriesen 1.1
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 sbriesen 1.5 newins "${FILESDIR}/irda.modsd" irda.conf
89 sbriesen 1.1
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