Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 317539 | Differences between
and this patch

Collapse All | Expand All

(-)irda-utils-0.9.18-r3.ebuild.orig (-15 / +16 lines)
Lines 14-20 Link Here
14
IUSE=""
14
IUSE=""
15
15
16
RDEPEND="=dev-libs/glib-2*
16
RDEPEND="=dev-libs/glib-2*
17
	>=sys-apps/pciutils-2.2.7-r1
17
	sys-apps/pciutils
18
	sys-process/procps
18
	sys-process/procps
19
	sys-apps/setserial
19
	sys-apps/setserial
20
	sys-apps/grep
20
	sys-apps/grep
Lines 25-54 Link Here
25
25
26
src_unpack() {
26
src_unpack() {
27
	unpack ${A}
27
	unpack ${A}
28
29
	cd "${S}"
28
	cd "${S}"
29
30
	epatch "${FILESDIR}"/irda-utils-rh1.patch \
30
	epatch "${FILESDIR}"/irda-utils-rh1.patch \
31
		"${FILESDIR}"/${P}-makefile.diff \
31
		"${FILESDIR}"/${P}-makefile.diff \
32
		"${FILESDIR}"/${P}-smcinit.diff \
32
		"${FILESDIR}"/${P}-smcinit.diff \
33
		"${FILESDIR}"/${P}-io.h.diff \
33
		"${FILESDIR}"/${P}-io.h.diff \
34
		"${FILESDIR}"/${P}-dofail.patch \
34
		"${FILESDIR}"/${P}-dofail.patch \
35
		"${FILESDIR}"/${P}-asneeded.patch
35
		"${FILESDIR}"/${P}-asneeded.patch \
36
		"${FILESDIR}"/${P}-bitsperlong-317539.patch
36
37
37
	# fix crosscompile, respect CFLAGS (Bug 200295)
38
	# fix crosscompile, respect CFLAGS (Bug 200295)
38
	sed -i -e "/^CC/s:gcc:$(tc-getCC):" \
39
	sed -i -e "/^CC/s:gcc:$(tc-getCC):" \
39
		-e "/^LD/s:ld:$(tc-getLD):" \
40
		-e "/^LD/s:ld:$(tc-getLD):" \
40
		-e "/^AR/s:ar:$(tc-getAR):" \
41
		-e "/^AR/s:ar:$(tc-getAR):" \
41
		-e "/^RANLIB/s:ranlib:$(tc-getRANLIB):" \
42
		-e "/^RANLIB/s:ranlib:$(tc-getRANLIB):" \
42
		-e "/^CFLAGS/s:-O2:${CFLAGS}:" Makefile */Makefile
43
		-e "/^CFLAGS/s:-O2:${CFLAGS}:" Makefile */Makefile || die
43
44
44
	# fix compile when pciutils is compiled with USE=zlib (Bug 200295)
45
	# 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
	sed -i -e "s:-lpci:$(pkg-config --libs libpci):g" smcinit/Makefile || die
46
47
47
	# disable etc subdir in Makefile
48
	# disable etc subdir in Makefile
48
	sed -i -e "s:^\(DIRS.*=.* \)etc \(.*\):\1\2:g" Makefile
49
	sed -i -e "s:^\(DIRS.*=.* \)etc \(.*\):\1\2:g" Makefile || die
49
50
50
	# disable write_pid(), because we don't need it
51
	# disable write_pid(), because we don't need it
51
	sed -i -e "s:\(write_pid();\):/* \1 */:g" irattach/util.c
52
	sed -i -e "s:\(write_pid();\):/* \1 */:g" irattach/util.c || die
52
53
53
	append-flags "-fno-strict-aliasing"
54
	append-flags "-fno-strict-aliasing"
54
}
55
}
Lines 78-95 Link Here
78
	newdoc irattach/ChangeLog  ChangeLog.irattach
79
	newdoc irattach/ChangeLog  ChangeLog.irattach
79
	newdoc irdadump/ChangeLog  ChangeLog.irdadump
80
	newdoc irdadump/ChangeLog  ChangeLog.irdadump
80
	newdoc smcinit/ChangeLog   ChangeLog.smcinit
81
	newdoc smcinit/ChangeLog   ChangeLog.smcinit
81
	dohtml smcinit/RobMiller-irda.html
82
	dohtml smcinit/RobMiller-irda.html || die
82
	dodoc README
83
	dodoc README || die
83
84
84
	newconfd "${FILESDIR}/irda.confd" irda
85
	newconfd "${FILESDIR}/irda.confd" irda || die
85
	newinitd "${FILESDIR}/irda.initd" irda
86
	newinitd "${FILESDIR}/irda.initd" irda || die
86
87
87
	insinto /etc/modprobe.d
88
	insinto /etc/modprobe.d
88
	newins "${FILESDIR}/irda.modsd" irda.conf
89
	newins "${FILESDIR}/irda.modsd" irda.conf || die
89
90
90
	insinto /etc/udev/rules.d
91
	insinto /etc/udev/rules.d
91
	newins "${FILESDIR}/irda.rules" 53-irda.rules
92
	newins "${FILESDIR}/irda.rules" 53-irda.rules || die
92
	exeinto /lib/udev
93
	exeinto /lib/udev
93
	newexe "${FILESDIR}/irda-setup.sh" irda-setup
94
	newexe "${FILESDIR}/irda-setup.sh" irda-setup || die
94
	newexe "${FILESDIR}/irda-usb.sh" irda-usb
95
	newexe "${FILESDIR}/irda-usb.sh" irda-usb || die
95
}
96
}

Return to bug 317539