/[gentoo-x86]/sys-apps/hwdata-redhat/hwdata-redhat-0.217.ebuild
Gentoo

Contents of /sys-apps/hwdata-redhat/hwdata-redhat-0.217.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Feb 25 06:45:07 2012 UTC (2 years, 11 months ago) by robbat2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +3 -3 lines
Bug #405687: Depend on virtual/modutils instead of sys-apps/module-init-tools.

(Portage version: 2.2.0_alpha87/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/hwdata-redhat/hwdata-redhat-0.217.ebuild,v 1.2 2011/12/21 08:16:22 floppym Exp $
4
5 inherit eutils flag-o-matic rpm
6
7 # Tag for which Fedora Core version it's from
8 FCVER="9"
9 # Revision of the RPM. Shouldn't affect us, as we're just grabbing the source
10 # tarball out of it
11 RPMREV="1"
12
13 MY_P="${P/-redhat}"
14 DESCRIPTION="Hardware identification and configuration data"
15 HOMEPAGE="http://fedora.redhat.com/projects/config-tools/"
16 SRC_URI="mirror://fedora-dev/releases/9/Everything/source/SRPMS/${MY_P}-${RPMREV}.fc${FCVER}.src.rpm"
17 LICENSE="GPL-2 MIT"
18 SLOT="0"
19 KEYWORDS="~ppc ~ppc64 ~x86 ~amd64"
20 IUSE="test"
21 RDEPEND="virtual/modutils
22 !sys-apps/hwdata-gentoo"
23 DEPEND="${RDEPEND}
24 test? ( sys-apps/pciutils )"
25 S="${WORKDIR}/${MY_P}"
26
27 src_unpack() {
28 rpm_src_unpack ${A}
29
30 cd "${S}"
31 sed -i -e "s:\(/sbin\/lspci\):/usr\1:g" Makefile || die
32 epatch "${FILESDIR}/${P}-python-3.patch"
33 }
34
35 src_install() {
36 emake DESTDIR="${D}" install || die "emake install failed"
37 # Don't let it overwrite a udev-installed file
38 rm -rf "${D}"/etc/ || die
39 }

  ViewVC Help
Powered by ViewVC 1.1.20