/[gentoo-x86]/sys-apps/xmbmon/xmbmon-2.0.5-r1.ebuild
Gentoo

Contents of /sys-apps/xmbmon/xmbmon-2.0.5-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Oct 26 03:11:48 2008 UTC (6 years, 4 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +6 -2 lines
Respect LDFLAGS/CC in build env.
(Portage version: 2.2_rc12/cvs/Linux 2.6.26.2 x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/xmbmon/xmbmon-2.0.5-r1.ebuild,v 1.4 2007/07/22 06:24:53 dberkholz Exp $
4
5 inherit eutils
6
7 MY_P=${PN}${PV//.}
8 DESCRIPTION="Mother Board Monitor Program for X Window System"
9 HOMEPAGE="http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/download.html"
10 SRC_URI="http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/xmbmon/${MY_P}.tar.gz
11 http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/xmbmon/${MY_P}_fflush.patch"
12 # http://www.nt.phys.kyushu-u.ac.jp/shimizu/download/xmbmon/${MY_P}_A7N8X-VM.patch
13
14 LICENSE="BSD"
15 SLOT="0"
16 KEYWORDS="amd64 x86 ~x86-fbsd"
17 IUSE="X"
18
19 DEPEND="X? ( x11-libs/libXt
20 x11-libs/libSM
21 x11-libs/libX11
22 x11-libs/libICE )"
23
24 S=${WORKDIR}/${MY_P}
25
26 src_unpack() {
27 unpack ${A}
28 cd "${S}"
29 # epatch ${DISTDIR}/${MY_P}_A7N8X-VM.patch
30 epatch "${DISTDIR}"/${MY_P}_fflush.patch
31 epatch "${FILESDIR}"/${P}-amd64.patch
32 epatch "${FILESDIR}"/${P}-pid.patch
33 epatch "${FILESDIR}"/${P}-loopback.patch
34 sed -i \
35 -e "/^CFLAGS=/s/-O3/${CFLAGS}/" \
36 -e '/^LDFLAGS=-s$/d' \
37 Makefile.in || die
38 sed -i \
39 -e '/^[[:space:]]*CC=gcc/s,.*,:;,' \
40 configure || die
41 }
42
43 src_compile() {
44 econf || die "Configure failed"
45 emake mbmon || die "Make mbmon failed"
46 if use X ; then
47 emake xmbmon || die "Make xmbmon failed"
48 fi
49 }
50
51 src_install() {
52 dosbin mbmon || die "mbmon failed"
53 doman mbmon.1
54 dodoc ChangeLog* ReadMe* mbmon-rrd.pl
55
56 if use X ; then
57 dosbin xmbmon || die "xmbmon failed"
58 doman xmbmon.1x
59 insinto /etc/X11/app-defaults/
60 newins xmbmon.resources XMBmon
61 fi
62
63 newinitd "${FILESDIR}"/mbmon.rc mbmon
64 newconfd "${FILESDIR}"/mbmon.confd mbmon
65 }
66
67 pkg_postinst() {
68 echo
69 einfo "These programs access SMBus/ISA-IO ports without any kind"
70 einfo "of checking. It is, therefore, very dangerous and may cause"
71 einfo "a system-crash. Make sure you read ReadMe,"
72 einfo "section 4, 'How to use!'"
73 echo
74 }

  ViewVC Help
Powered by ViewVC 1.1.20