mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-01-30 12:02:57 +01:00
* Updated libkudzu fro hw detection
This commit is contained in:
parent
d542c9e69f
commit
fad92ee896
2 changed files with 52 additions and 0 deletions
2
sys-libs/libkudzu/Manifest
Normal file
2
sys-libs/libkudzu/Manifest
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
DIST kudzu-1.2.85-1.src.rpm 153824 RMD160 d3c9a62fc6e3983057ba57dd480b2d5ed90d4c78 SHA1 c31a575804f7225ba56d53aa605646359b1c8361 SHA256 57a76fa5b19740428c15665ececa3ebbd45eac54ddca69deeb498d9db3d7a9a1
|
||||
EBUILD libkudzu-1.2.85.1.ebuild 1384 RMD160 ec03ee83ee014cb32374df3f20e953a6a4aab58c SHA1 39e16336fe8c956fec2bd8712d7550d78db46772 SHA256 2456e86b5873980f8c9d8613f1e2faea94e86ec822f7868298938653f0ac9c6d
|
||||
50
sys-libs/libkudzu/libkudzu-1.2.85.1.ebuild
Normal file
50
sys-libs/libkudzu/libkudzu-1.2.85.1.ebuild
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-libs/libkudzu/libkudzu-1.2.57.1.ebuild,v 1.11 2008/10/31 16:16:26 jer Exp $
|
||||
|
||||
inherit rpm eutils toolchain-funcs flag-o-matic
|
||||
|
||||
RPMREV="1"
|
||||
DESCRIPTION="Red Hat Hardware detection tools"
|
||||
HOMEPAGE="http://rhlinux.redhat.com/kudzu/"
|
||||
SRC_URI="mirror://fedora-dev/releases/10/Everything/source/SRPMS/kudzu-1.2.85-${RPMREV}.src.rpm"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ia64 -mips ppc ppc64 sparc ~x86"
|
||||
IUSE="zlib"
|
||||
|
||||
DEPEND="dev-libs/popt
|
||||
zlib? ( sys-libs/zlib )
|
||||
>=sys-apps/pciutils-2.2.4"
|
||||
RDEPEND="${DEPEND}
|
||||
sys-apps/hwdata-redhat
|
||||
!sys-apps/kudzu"
|
||||
|
||||
S=${WORKDIR}/kudzu-1.2.85
|
||||
|
||||
src_compile() {
|
||||
if use zlib
|
||||
then
|
||||
perl -pi -e 's| -lpci| -lz -lpci|g' Makefile
|
||||
elif built_with_use --missing false sys-apps/pciutils zlib
|
||||
then
|
||||
die "You need to build with USE=zlib to match sys-apps/pcituils"
|
||||
fi
|
||||
# Fix the modules directory to match Gentoo layout.
|
||||
perl -pi -e 's|/etc/modutils/kudzu|/etc/modules.d/kudzu|g' *.*
|
||||
|
||||
if use ppc && [ "$(tc-arch-kernel)" != "ppc" ]; then
|
||||
emake libkudzu.a ARCH="ppc" \
|
||||
RPM_OPT_FLAGS="${CFLAGS}" || die
|
||||
else
|
||||
emake libkudzu.a ARCH=$(tc-arch-kernel) \
|
||||
RPM_OPT_FLAGS="${CFLAGS}" || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
keepdir /etc/sysconfig
|
||||
insinto /usr/include/kudzu
|
||||
doins *.h
|
||||
dolib.a libkudzu.a
|
||||
}
|
||||
Loading…
Reference in a new issue