/[gentoo-x86]/sys-apps/pv/pv-1.4.4.ebuild
Gentoo

Contents of /sys-apps/pv/pv-1.4.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Dec 13 17:49:38 2012 UTC (19 months, 1 week ago) by jer
Branch: MAIN
Changes since 1.1: +8 -5 lines
Add IUSE=debug.

(Portage version: 2.2.0_alpha148/cvs/Linux x86_64, signed Manifest commit with key A792A613)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/pv/pv-1.4.4.ebuild,v 1.1 2012/12/13 11:25:13 jlec Exp $
4
5 EAPI=4
6 inherit toolchain-funcs
7
8 DESCRIPTION="Pipe Viewer: a tool for monitoring the progress of data through a pipe"
9 HOMEPAGE="http://www.ivarch.com/programs/pv.shtml"
10 SRC_URI="http://www.ivarch.com/programs/sources/${P}.tar.gz"
11
12 LICENSE="Artistic-2"
13 SLOT="0"
14 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc64-solaris ~x86-solaris"
15
16 IUSE="debug nls"
17 PV_LINGUAS="de fr pl pt"
18 for lingua in ${PV_LINGUAS}; do
19 IUSE+=" linguas_${lingua}"
20 done
21
22 DOCS=( README doc/NEWS doc/TODO )
23
24 src_prepare() {
25 sed -i configure -e 's|CFLAGS="-g -Wall"|:|g' || die
26 }
27
28 src_configure() {
29 local lingua
30 for lingua in ${PV_LINGUAS}; do
31 if ! use linguas_${lingua}; then
32 sed -i configure -e "/ALL_LINGUAS=/s:${lingua}::g" || die
33 fi
34 done
35 econf $(use_enable debug debugging) $(use_enable nls)
36 }
37
38 src_test() {
39 if ! has_version sys-apps/usleep; then
40 sed -i -e 's:usleep 200000 || ::g' tests/019-remote-cksum || die
41 fi
42 default
43 }
44
45 src_compile() {
46 emake LD="$(tc-getLD)"
47 }

  ViewVC Help
Powered by ViewVC 1.1.20