summaryrefslogtreecommitdiff
blob: 9c7e09a6d23143c2d6af4569107a7112c3906edd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/iguanaIR/iguanaIR-0.93.ebuild,v 1.4 2010/03/10 09:29:05 josejx Exp $

inherit eutils flag-o-matic

DESCRIPTION="library for Irman control of Unix software"
HOMEPAGE="http://iguanaworks.net/index.php"
SRC_URI="http://iguanaworks.net/downloads/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE=""

pkg_setup() {
	append-flags -fPIC
}

src_unpack() {
	unpack ${A}
	cd "${S}"

	sed -e "s:CFLAGS =:CFLAGS ?=:" -i Makefile.in

	epatch "${FILESDIR}"/${P}-gentoo.diff \
		"${FILESDIR}"/${P}-asneeded.patch
}

src_install() {
	emake DESTDIR="${D}" install || die

	insinto /etc/udev/rules.d/
	doins "${FILESDIR}"/40-iguanaIR.rules
}