/[gentoo-x86]/sys-libs/libkudzu/libkudzu-1.2.57.1.ebuild
Gentoo

Contents of /sys-libs/libkudzu/libkudzu-1.2.57.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Fri Apr 15 03:14:58 2011 UTC (3 years, 5 months ago) by jer
Branch: MAIN
Changes since 1.14: +3 -2 lines
Respect CC.

(Portage version: 2.2.0_alpha30/cvs/Linux i686)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-libs/libkudzu/libkudzu-1.2.57.1.ebuild,v 1.14 2009/01/11 19:08:13 maekke Exp $
4
5 inherit eutils toolchain-funcs flag-o-matic
6
7 DESCRIPTION="Red Hat Hardware detection tools"
8 HOMEPAGE="http://rhlinux.redhat.com/kudzu/"
9 SRC_URI="mirror://gentoo/kudzu-${PV}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="alpha amd64 ia64 -mips ppc ppc64 sparc x86"
14 IUSE="zlib"
15
16 DEPEND="dev-libs/popt
17 zlib? ( sys-libs/zlib )
18 >=sys-apps/pciutils-2.2.4"
19 RDEPEND="${DEPEND}
20 sys-apps/hwdata-gentoo
21 !sys-apps/kudzu"
22
23 S=${WORKDIR}/kudzu-${PV}
24
25 src_unpack() {
26 unpack ${A}
27
28 epatch \
29 "${FILESDIR}"/kudzu-${PV}-sbusfix.patch \
30 "${FILESDIR}"/kudzu-${PV}-sparc-keyboard.patch
31 }
32
33 src_compile() {
34 tc-export CC
35 if use zlib
36 then
37 perl -pi -e 's| -lpci| -lz -lpci|g' Makefile
38 elif built_with_use --missing false sys-apps/pciutils zlib
39 then
40 die "You need to build with USE=zlib to match sys-apps/pcituils"
41 fi
42 # Fix the modules directory to match Gentoo layout.
43 perl -pi -e 's|/etc/modutils/kudzu|/etc/modules.d/kudzu|g' *.*
44
45 if use ppc && [ "$(tc-arch-kernel)" != "ppc" ]; then
46 emake libkudzu.a libkudzu_loader.a ARCH="ppc" \
47 RPM_OPT_FLAGS="${CFLAGS}" || die
48 else
49 emake libkudzu.a libkudzu_loader.a ARCH=$(tc-arch-kernel) \
50 RPM_OPT_FLAGS="${CFLAGS}" || die
51 fi
52 }
53
54 src_install() {
55 keepdir /etc/sysconfig
56 insinto /usr/include/kudzu
57 doins *.h
58 dolib.a libkudzu.a libkudzu_loader.a
59 }

  ViewVC Help
Powered by ViewVC 1.1.20