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

Diff of /sys-apps/pv/pv-1.4.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20