/[gentoo-x86]/sys-apps/superiotool/superiotool-99999999.ebuild
Gentoo

Contents of /sys-apps/superiotool/superiotool-99999999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Dec 5 17:53:39 2011 UTC (2 years, 9 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Merge live/snapshot ebuilds, and touch it up a bit.

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

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-apps/superiotool/superiotool-9999.ebuild,v 1.3 2011/01/09 22:19:08 idl0r Exp $
4
5 EAPI="4"
6
7 inherit toolchain-funcs eutils
8
9 if [[ ${PV} == "99999999" ]] ; then
10 ESVN_REPO_URI="svn://coreboot.org/coreboot/trunk/util/${PN}"
11 inherit subversion
12 SRC_URI=""
13 else
14 SRC_URI="mirror://gentoo/${P}.tar.xz"
15 KEYWORDS="~amd64 ~x86"
16 fi
17
18 DESCRIPTION="util to detect Super I/O chips and functionality"
19 HOMEPAGE="http://www.coreboot.org/Superiotool"
20
21 LICENSE="GPL-2"
22 SLOT="0"
23 IUSE="pci"
24
25 RDEPEND="pci? ( sys-apps/pciutils )"
26 DEPEND="${RDEPEND}
27 app-arch/xz-utils"
28
29 src_prepare() {
30 sed -i \
31 -e 's:-Werror ::' \
32 -e 's:-O2 ::' \
33 -e 's:\s\+\?-lz\s\+\?::' \
34 -e "/^CONFIG_PCI =/s:=.*:=$(usex pci yes no):" \
35 -e '/PREFIX/s:=.*:= /usr:' \
36 Makefile || die
37 }
38
39 src_compile() {
40 emake \
41 CC="$(tc-getCC)" \
42 SVNDEF="-D'SUPERIOTOOL_VERSION=\"${ESVN_WC_REVISION}\"'"
43 }
44
45 src_install() {
46 emake install DESTDIR="${D}"
47 dodoc README
48 }

  ViewVC Help
Powered by ViewVC 1.1.20