diff options
author | Michael Hanselmann <hansmi@gentoo.org> | 2004-06-02 21:00:55 +0000 |
---|---|---|
committer | Michael Hanselmann <hansmi@gentoo.org> | 2004-06-02 21:00:55 +0000 |
commit | d18b1a0ff823e5c84d7f4d81d9edf716ba6852b3 (patch) | |
tree | b177fdccf48745d20d834167505fc9b7a74d7e29 /net-misc/multiimonc | |
parent | Added to ~ppc (Manifest recommit) (diff) | |
download | gentoo-2-d18b1a0ff823e5c84d7f4d81d9edf716ba6852b3.tar.gz gentoo-2-d18b1a0ff823e5c84d7f4d81d9edf716ba6852b3.tar.bz2 gentoo-2-d18b1a0ff823e5c84d7f4d81d9edf716ba6852b3.zip |
multiimonc-0.3.2, first checkin
Diffstat (limited to 'net-misc/multiimonc')
-rw-r--r-- | net-misc/multiimonc/ChangeLog | 9 | ||||
-rw-r--r-- | net-misc/multiimonc/Manifest | 3 | ||||
-rw-r--r-- | net-misc/multiimonc/files/UsagePlot-0.3.2.diff | 41 | ||||
-rw-r--r-- | net-misc/multiimonc/files/digest-multiimonc-0.3.2 | 1 | ||||
-rw-r--r-- | net-misc/multiimonc/metadata.xml | 9 | ||||
-rw-r--r-- | net-misc/multiimonc/multiimonc-0.3.2.ebuild | 31 |
6 files changed, 94 insertions, 0 deletions
diff --git a/net-misc/multiimonc/ChangeLog b/net-misc/multiimonc/ChangeLog new file mode 100644 index 000000000000..43bbf3288b6a --- /dev/null +++ b/net-misc/multiimonc/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for net-misc/multiimonc +# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/multiimonc/ChangeLog,v 1.1 2004/06/02 21:00:55 hansmi Exp $ + +*multiimonc-0.3.2 (02 Jun 2004) + + 02 Jun 2004; Michael Hanselmann <hansmi@gentoo.org>; multiimonc-0.3.2.ebuild, + ChangeLog, metadata.xml: + Initial import. diff --git a/net-misc/multiimonc/Manifest b/net-misc/multiimonc/Manifest new file mode 100644 index 000000000000..6ff4680a39fc --- /dev/null +++ b/net-misc/multiimonc/Manifest @@ -0,0 +1,3 @@ +MD5 4bad45bebb6fac7638a94a25a9b40150 multiimonc-0.3.2.ebuild 771 +MD5 2cc5444d030934460278e406c1b4ca44 files/digest-multiimonc-0.3.2 69 +MD5 7bdd578a8a947fa547d85206719bdade files/UsagePlot-0.3.2.diff 1603 diff --git a/net-misc/multiimonc/files/UsagePlot-0.3.2.diff b/net-misc/multiimonc/files/UsagePlot-0.3.2.diff new file mode 100644 index 000000000000..9b4d3393a0e7 --- /dev/null +++ b/net-misc/multiimonc/files/UsagePlot-0.3.2.diff @@ -0,0 +1,41 @@ +Fix a divide-by-zero-error in UsagePlot.cpp. Will be +fixed in MultiImonC 0.3.3. + +--- UsagePlot.cpp.orig 2004-06-02 21:59:34.973014648 +0200 ++++ UsagePlot.cpp 2004-06-02 22:03:14.151694424 +0200 +@@ -123,18 +123,23 @@ + int iOldYOut = 0; + ChannelUsageData::const_iterator itData((*cli).begin()); + while(itData != (*cli).end()) { +- wxCoord x(iElement * iHorizSpace); +- wxCoord iYIn(((iHeight - 6) * (*itData).in / (*cli).MaxRateIn) + 1); +- wxCoord iYOut(((iHeight - 6) * (*itData).out / (*cli).MaxRateOut) + 1); +- +- dc.SetPen((*cli).PenColorOut()); +- dc.DrawLine(x - iHorizSpace, iOldYOut, x, iYOut); +- +- dc.SetPen((*cli).PenColorIn()); +- dc.DrawLine(x - iHorizSpace, iOldYIn, x, iYIn); +- +- iOldYIn = iYIn; +- iOldYOut = iYOut; ++ ChannelUsageData const& oUsage(*cli); ++ ++ if(oUsage.MaxRateIn && oUsage.MaxRateOut) { ++ wxCoord x(iElement * iHorizSpace); ++ wxCoord iYIn(((iHeight - 6) * (*itData).in / oUsage.MaxRateIn) + 1); ++ wxCoord iYOut(((iHeight - 6) * (*itData).out / oUsage.MaxRateOut) + 1); ++ ++ dc.SetPen(oUsage.PenColorOut()); ++ dc.DrawLine(x - iHorizSpace, iOldYOut, x, iYOut); ++ ++ dc.SetPen(oUsage.PenColorIn()); ++ dc.DrawLine(x - iHorizSpace, iOldYIn, x, iYIn); ++ ++ iOldYIn = iYIn; ++ iOldYOut = iYOut; ++ } ++ + iElement++; + itData++; + } diff --git a/net-misc/multiimonc/files/digest-multiimonc-0.3.2 b/net-misc/multiimonc/files/digest-multiimonc-0.3.2 new file mode 100644 index 000000000000..85a3878f9610 --- /dev/null +++ b/net-misc/multiimonc/files/digest-multiimonc-0.3.2 @@ -0,0 +1 @@ +MD5 3b6c5324fdb5471303eeba5bf28f7cfc MultiImonC-0.3.2.tar.bz2 117314 diff --git a/net-misc/multiimonc/metadata.xml b/net-misc/multiimonc/metadata.xml new file mode 100644 index 000000000000..64b5c36059fb --- /dev/null +++ b/net-misc/multiimonc/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>hansmi@gentoo.org</email> + <name>Michael Hanselmann</name> +</maintainer> +</pkgmetadata> diff --git a/net-misc/multiimonc/multiimonc-0.3.2.ebuild b/net-misc/multiimonc/multiimonc-0.3.2.ebuild new file mode 100644 index 000000000000..02e8e66e9030 --- /dev/null +++ b/net-misc/multiimonc/multiimonc-0.3.2.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/multiimonc/multiimonc-0.3.2.ebuild,v 1.1 2004/06/02 21:00:55 hansmi Exp $ + +DESCRIPTION="A wxWidgets-based client for fli4l" +SRC_URI="http://www.fli4l.de/german/extern/multiimonc/MultiImonC-${PV}.tar.bz2" +HOMEPAGE="http://www.hansmi.ch/software/multiimonc" + +S="${WORKDIR}/MultiImonC-${PV}" + +KEYWORDS="~x86 ~ppc" +SLOT="0" +LICENSE="GPL-2" +IUSE="" + +DEPEND=">=x11-libs/wxGTK-2.4.1 + virtual/glibc + virtual/x11" +RDEPEND="${DEPEND}" + +src_compile() { + # Fix a divide-by-zero-error in UsagePlot.cpp + ( cd "${S}/src" && epatch "${FILESDIR}/UsagePlot-0.3.2.diff" ) + econf || die "could not configure" + emake || die "emake failed" +} + +src_install() { + make DESTDIR=${D} install || die "install problem" +} + |