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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20