/[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.1 - (hide annotations) (download)
Sat Mar 29 02:48:16 2008 UTC (10 years, 3 months ago) by sbriesen
Branch: MAIN
fixed dependencies, cleaned up udev-rules, disabled pidfile writing for irattach (we don't need it and it doesn't work well with multiple irda devices).
(Portage version: 2.1.4.4)

1 sbriesen 1.1 # Copyright 1999-2008 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-r2.ebuild,v 1.1 2008/03/22 18:34:10 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     DEPEND="!app-laptop/smcinit
17     =dev-libs/glib-2*
18     dev-util/pkgconfig
19     >=sys-apps/pciutils-2.2.7-r1"
20    
21     RDEPEND="${DEPEND}
22     sys-process/procps
23     sys-apps/setserial
24     sys-apps/grep
25     sys-fs/udev"
26    
27     src_unpack() {
28     unpack ${A}
29    
30     cd "${S}"
31     epatch "${FILESDIR}/irda-utils-rh1.patch"
32     epatch "${FILESDIR}/${P}-makefile.diff"
33     epatch "${FILESDIR}/${P}-smcinit.diff"
34     epatch "${FILESDIR}/${P}-io.h.diff"
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
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