/[gentoo-x86]/sys-apps/hwsetup/hwsetup-1.2-r2.ebuild
Gentoo

Contents of /sys-apps/hwsetup/hwsetup-1.2-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Feb 1 13:20:13 2013 UTC (18 months, 2 weeks ago) by gmsoft
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +3 -3 lines
hppa stable

(Portage version: 2.1.11.31/cvs/Linux parisc64, unsigned Manifest commit)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/hwsetup/hwsetup-1.2-r2.ebuild,v 1.5 2012/03/08 14:52:15 ranger Exp $
4
5 inherit eutils toolchain-funcs flag-o-matic
6
7 MY_PV=${PV}-7
8 DESCRIPTION="Hardware setup program from Knoppix - used only on LiveCD"
9 HOMEPAGE="http://www.knopper.net/"
10 SRC_URI="http://debian-knoppix.alioth.debian.org/sources/${PN}_${MY_PV}.tar.gz"
11 #http://developer.linuxtag.net/knoppix/sources/${PN}_${MY_PV}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="alpha amd64 hppa ia64 -mips ppc ppc64 sparc x86"
16 IUSE="zlib"
17
18 COMMON_DEPEND="zlib? ( sys-libs/zlib )
19 sys-apps/pciutils"
20 DEPEND="${COMMON_DEPEND}
21 sys-libs/libkudzu"
22 RDEPEND="${COMMON_DEPEND}
23 sys-apps/hwdata-gentoo"
24
25 pkg_setup() {
26 ewarn "This package is designed for use on the LiveCD only and will do "
27 ewarn "unspeakably horrible and unexpected things on a normal system."
28 ewarn "YOU HAVE BEEN WARNED!!!"
29 }
30
31 src_unpack() {
32 unpack ${A}
33 epatch \
34 "${FILESDIR}"/${MY_PV}-dyn_blacklist.patch \
35 "${FILESDIR}"/${PV}-3-fastprobe.patch \
36 "${FILESDIR}"/${MY_PV}-gentoo.patch \
37 "${FILESDIR}"/${PV}-strip.patch \
38 "${FILESDIR}"/${MY_PV}-openchrome.patch
39 }
40
41 src_compile() {
42 if use zlib ; then
43 sed -i \
44 -e '/^LIBS=/s,-lpci,-lz -lpci,g' \
45 Makefile
46 elif built_with_use --missing false sys-apps/pciutils zlib ; then
47 die "You need to build with USE=zlib to match sys-apps/pcituils"
48 fi
49 emake LDFLAGS="${LDFLAGS}" OPT="${CFLAGS}" CC="$(tc-getCC)" || die "emake failed"
50 }
51
52 src_install() {
53 einstall DESTDIR="${D}" PREFIX=/usr MANDIR=/usr/share/man || die "Install failed"
54 keepdir /etc/sysconfig
55 }
56
57 pkg_postinst() {
58 ewarn "This package is intended for usage on the Gentoo release media. If"
59 ewarn "you are not building a CD, remove this package. It will not work"
60 ewarn "properly on a running system, as Gentoo does not use any of the"
61 ewarn "Knoppix-style detection except for CD builds."
62 }

  ViewVC Help
Powered by ViewVC 1.1.20