diff options
author | Sergey Popov <pinkbyte@gentoo.org> | 2012-09-30 07:55:09 +0000 |
---|---|---|
committer | Sergey Popov <pinkbyte@gentoo.org> | 2012-09-30 07:55:09 +0000 |
commit | e83a50f50972b3ae00bc2e49b02b3bbd98112055 (patch) | |
tree | 3b7e8d227132e58baf639baae6c3ffbf4375e5a4 /net-analyzer | |
parent | [bump] dev-perl/Log-Log4perl-1.380.0 (diff) | |
download | gentoo-2-e83a50f50972b3ae00bc2e49b02b3bbd98112055.tar.gz gentoo-2-e83a50f50972b3ae00bc2e49b02b3bbd98112055.tar.bz2 gentoo-2-e83a50f50972b3ae00bc2e49b02b3bbd98112055.zip |
New revision with EAPI 4 syntax
(Portage version: 2.2.0_alpha132/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/bwmon/ChangeLog | 9 | ||||
-rw-r--r-- | net-analyzer/bwmon/bwmon-1.3-r1.ebuild | 45 |
2 files changed, 52 insertions, 2 deletions
diff --git a/net-analyzer/bwmon/ChangeLog b/net-analyzer/bwmon/ChangeLog index 44a044a673c5..3e606c51f017 100644 --- a/net-analyzer/bwmon/ChangeLog +++ b/net-analyzer/bwmon/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-analyzer/bwmon -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/bwmon/ChangeLog,v 1.16 2011/12/15 16:16:19 jer Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/bwmon/ChangeLog,v 1.17 2012/09/30 07:55:09 pinkbyte Exp $ + +*bwmon-1.3-r1 (30 Sep 2012) + + 30 Sep 2012; Sergey Popov <pinkbyte@gentoo.org> +bwmon-1.3-r1.ebuild: + New revision with EAPI 4 syntax 15 Dec 2011; Jeroen Roovers <jer@gentoo.org> bwmon-1.3.ebuild: Build fix by Andrew Savchenko (bug #394827). diff --git a/net-analyzer/bwmon/bwmon-1.3-r1.ebuild b/net-analyzer/bwmon/bwmon-1.3-r1.ebuild new file mode 100644 index 000000000000..619b201eb51f --- /dev/null +++ b/net-analyzer/bwmon/bwmon-1.3-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/bwmon/bwmon-1.3-r1.ebuild,v 1.1 2012/09/30 07:55:09 pinkbyte Exp $ + +EAPI="4" + +inherit toolchain-funcs flag-o-matic + +DESCRIPTION="Simple ncurses bandwidth monitor" +HOMEPAGE="http://bwmon.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +RESTRICT="mirror" + +DEPEND="sys-libs/ncurses" +RDEPEND="${DEPEND}" + +SLOT="0" +LICENSE="GPL-2 public-domain" +KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86" +IUSE="" + +doecho() { + echo "$@" + "$@" +} + +src_prepare() { + # Respect CC and CFLAGS + sed -i -e '/^CC/d' \ + -e '/^CFLAGS/d' \ + src/Makefile || die 'sed on CC and CFLAGS failed' + # Respect LDFLAGS + sed -i '/^LDFLAGS/s:LDFLAGS:LIBS:' src/Makefile || die 'sed on LDFLAGS failed' + sed -i 's:$(CC) $(LDFLAGS) -o ../$@ $(OBJS):$(CC) $(CFLAGS) $(LDFLAGS) -o ../$@ $(OBJS) $(LIBS):' src/Makefile || die 'sed on compilation string failed' +} + +src_compile() { + append-cflags -I"${S}"/include -D__THREADS + emake CC="$(tc-getCC)" +} + +src_install () { + dobin ${PN} + dodoc README +} |