/[gentoo-x86]/app-admin/sysstat/sysstat-10.0.5.ebuild
Gentoo

Contents of /app-admin/sysstat/sysstat-10.0.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Tue Jul 24 16:05:46 2012 UTC (10 months, 3 weeks ago) by blueness
Branch: MAIN
Changes since 1.2: +2 -2 lines
Stable ppc/ppc64

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 jer 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 blueness 1.3 # $Header: /var/cvsroot/gentoo-x86/app-admin/sysstat/sysstat-10.0.5.ebuild,v 1.2 2012/05/19 11:58:12 blueness Exp $
4 jer 1.1
5     EAPI="4"
6    
7     inherit eutils multilib
8    
9     DESCRIPTION="System performance tools for Linux"
10     HOMEPAGE="http://pagesperso-orange.fr/sebastien.godard/"
11     SRC_URI="${HOMEPAGE}${P}.tar.bz2"
12    
13     LICENSE="GPL-2"
14     SLOT="0"
15 blueness 1.3 KEYWORDS="~alpha ~amd64 ~hppa ~mips ppc ppc64 ~sparc ~x86"
16 jer 1.1 IUSE="cron debug +doc isag nls lm_sensors"
17    
18     SYSSTAT_LINGUAS="
19     af cs da de eo es eu fi fr hr id it ja ky lv mt nb nl nn pl pt pt_BR ro ru
20     sk sr sv uk vi zh_CN zh_TW
21     "
22    
23     for SYSSTAT_LINGUA in ${SYSSTAT_LINGUAS}; do
24     IUSE="${IUSE} linguas_${SYSSTAT_LINGUA}"
25     done
26    
27     RDEPEND="
28     cron? ( sys-process/cronbase )
29     isag? (
30     dev-lang/tk
31     dev-vcs/rcs
32     sci-visualization/gnuplot
33     )
34     nls? ( virtual/libintl )
35     lm_sensors? ( sys-apps/lm_sensors )
36     "
37     DEPEND="
38     ${RDEPEND}
39     nls? ( sys-devel/gettext )
40     "
41    
42     src_prepare() {
43     local po_count li_count lingua NLSDIR="${S}/nls"
44    
45     count() { echo ${#}; }
46     po_count=$(count ${NLSDIR}/*.po)
47     li_count=$(count ${SYSSTAT_LINGUAS})
48     [[ ${po_count} = ${li_count} ]] \
49     || die "Number of LINGUAS does not match number of .po files"
50     unset count
51    
52     einfo "Keeping these locales: ${LINGUAS}."
53     for lingua in ${SYSSTAT_LINGUAS}; do
54     if ! use linguas_${lingua}; then
55     rm -f "${NLSDIR}/${lingua}.po" || die
56     fi
57     done
58     epatch "${FILESDIR}"/${PN}-10.0.4-flags.patch
59     }
60    
61     src_configure() {
62     sa_lib_dir=/usr/$(get_libdir)/sa \
63     conf_dir=/etc \
64     rcdir=Gentoo-does-not-use-rc.d \
65     econf \
66     $(use_enable cron install-cron) \
67     $(use_enable debug debuginfo) \
68     $(use_enable doc documentation ) \
69     $(use_enable isag install-isag) \
70     $(use_enable lm_sensors sensors) \
71     $(use_enable nls)
72     }
73    
74     src_compile() {
75     emake LFLAGS="${LDFLAGS}"
76     }
77    
78     src_install() {
79     keepdir /var/log/sa
80    
81     use cron && dodir /etc/cron.{daily,hourly}
82    
83     emake \
84     DESTDIR="${D}" \
85     DOC_DIR=/usr/share/doc/${PF} \
86     install
87    
88     dodoc contrib/sargraph/sargraph
89    
90     newinitd "${FILESDIR}"/sysstat.init.d sysstat
91    
92     use doc && rm -f "${D}"usr/share/doc/${PF}/COPYING
93     }

  ViewVC Help
Powered by ViewVC 1.1.20