/[gentoo-x86]/app-admin/consolehm/consolehm-1.31.ebuild
Gentoo

Contents of /app-admin/consolehm/consolehm-1.31.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sun Oct 11 23:13:32 2009 UTC (4 years, 11 months ago) by halcy0n
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +6 -6 lines
QA fixes, unquoted variables
(Portage version: 2.2_rc45/cvs/Linux x86_64)

1 halcy0n 1.2 # Copyright 1999-2009 Gentoo Foundation
2 the_paya 1.1 # Distributed under the terms of the GNU General Public License v2
3 halcy0n 1.2 # $Header: /var/cvsroot/gentoo-x86/app-admin/consolehm/consolehm-1.31.ebuild,v 1.1 2007/01/12 15:23:09 the_paya Exp $
4 the_paya 1.1
5     inherit eutils
6    
7     DESCRIPTION="Console based hardware monitor for FreeBSD"
8     HOMEPAGE="ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/fenner/"
9     SRC_URI="ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/fenner/${P}.tar.gz"
10     LICENSE="BSD-2"
11     SLOT="0"
12    
13     KEYWORDS="~x86-fbsd"
14    
15     IUSE=""
16    
17     DEPEND=""
18     RDEPEND="${DEPEND}"
19    
20     S="${WORKDIR}/${PN}"
21    
22     src_unpack() {
23     unpack ${A}
24 halcy0n 1.2 epatch "${FILESDIR}"/${PN}-gcc4.patch || die "patch failed"
25 the_paya 1.1 export CHMS="${S}/consolehm"
26     # The only 'SMBus' smb.h i've found is in a different place:
27     cd "${S}/consolehm"
28     sed -i.orig -e 's:machine/smb.h:dev/smbus/smb.h:g' \
29     configure.in \
30     configure \
31     chm.h || die "sed failed."
32     }
33    
34     src_compile() {
35     cd "${S}/consolehm"
36     econf || die "econf failed"
37     MAKE=make emake || die "emake failed"
38     }
39    
40     src_install() {
41     dobin "${S}/consolehm/chm"
42     doman "${S}/consolehm/chm.8"
43 halcy0n 1.2 dodoc "${S}"/CHANGELOG
44     dodoc "${S}"/README
45     dodoc "${S}"/TODO
46 the_paya 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20