/[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.10 - (show annotations) (download)
Sat Jan 25 15:47:19 2014 UTC (2 months, 3 weeks ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
Version bump.

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key A792A613)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-admin/sysstat/sysstat-10.0.5.ebuild,v 1.9 2013/04/02 19:34:55 jer Exp $
4
5 EAPI="4"
6
7 inherit eutils multilib toolchain-funcs
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 KEYWORDS="alpha amd64 ~arm hppa ~mips ppc ppc64 sparc x86"
16 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 tc-export AR
63 sa_lib_dir=/usr/$(get_libdir)/sa \
64 conf_dir=/etc \
65 rcdir=Gentoo-does-not-use-rc.d \
66 econf \
67 $(use_enable cron install-cron) \
68 $(use_enable debug debuginfo) \
69 $(use_enable doc documentation ) \
70 $(use_enable isag install-isag) \
71 $(use_enable lm_sensors sensors) \
72 $(use_enable nls)
73 }
74
75 src_compile() {
76 emake LFLAGS="${LDFLAGS}"
77 }
78
79 src_install() {
80 keepdir /var/log/sa
81
82 use cron && dodir /etc/cron.{daily,hourly}
83
84 emake \
85 DESTDIR="${D}" \
86 DOC_DIR=/usr/share/doc/${PF} \
87 install
88
89 dodoc contrib/sargraph/sargraph
90
91 newinitd "${FILESDIR}"/sysstat.init.d sysstat
92
93 use doc && rm -f "${D}"usr/share/doc/${PF}/COPYING
94 }

  ViewVC Help
Powered by ViewVC 1.1.20