| 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.3.4.ebuild,v 1.8 2012/08/26 17:34:41 armin76 Exp $ |
| 4 |
|
| 5 |
EAPI="4" |
| 6 |
|
| 7 |
inherit toolchain-funcs |
| 8 |
|
| 9 |
DESCRIPTION="Pipe Viewer: a tool for monitoring the progress of data through a pipe" |
| 10 |
HOMEPAGE="http://www.ivarch.com/programs/pv.shtml" |
| 11 |
SRC_URI="http://www.ivarch.com/programs/sources/${P}.tar.gz" |
| 12 |
|
| 13 |
LICENSE="Artistic-2" |
| 14 |
SLOT="0" |
| 15 |
KEYWORDS="alpha amd64 arm hppa ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc64-solaris ~x86-solaris" |
| 16 |
|
| 17 |
IUSE="nls" |
| 18 |
PV_LINGUAS="de fr pl pt" |
| 19 |
for lingua in ${PV_LINGUAS}; do |
| 20 |
IUSE+=" linguas_${lingua}" |
| 21 |
done |
| 22 |
|
| 23 |
DOCS=( README doc/NEWS doc/TODO ) |
| 24 |
|
| 25 |
src_configure() { |
| 26 |
local lingua |
| 27 |
for lingua in ${PV_LINGUAS}; do |
| 28 |
if ! use linguas_${lingua}; then |
| 29 |
sed -i configure -e "/ALL_LINGUAS=/s:${lingua}::g" || die |
| 30 |
fi |
| 31 |
done |
| 32 |
econf $(use_enable nls) |
| 33 |
} |
| 34 |
|
| 35 |
src_compile() { |
| 36 |
emake LD="$(tc-getLD)" |
| 37 |
} |