summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2011-03-05 01:33:46 +0000
committerMichael Weber <xmw@gentoo.org>2011-03-05 01:33:46 +0000
commit93a20e4c3e78a7f3566042ec49e274a85d17f2a6 (patch)
treea53657295493e4c4c01ae350aacafc18ef7e5f62 /dev-util/xdelta
parentstable ppc, bug 355449 (diff)
downloadgentoo-2-93a20e4c3e78a7f3566042ec49e274a85d17f2a6.tar.gz
gentoo-2-93a20e4c3e78a7f3566042ec49e274a85d17f2a6.tar.bz2
gentoo-2-93a20e4c3e78a7f3566042ec49e274a85d17f2a6.zip
version bump (bug 357233)
(Portage version: 2.1.9.42/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/xdelta')
-rw-r--r--dev-util/xdelta/ChangeLog9
-rw-r--r--dev-util/xdelta/xdelta-3.0.0.ebuild60
2 files changed, 67 insertions, 2 deletions
diff --git a/dev-util/xdelta/ChangeLog b/dev-util/xdelta/ChangeLog
index ed572c8b9293..d9d8ee974222 100644
--- a/dev-util/xdelta/ChangeLog
+++ b/dev-util/xdelta/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-util/xdelta
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/xdelta/ChangeLog,v 1.52 2010/09/15 14:54:39 arfrever Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/xdelta/ChangeLog,v 1.53 2011/03/05 01:33:46 xmw Exp $
+
+*xdelta-3.0.0 (05 Mar 2011)
+
+ 05 Mar 2011; Michael Weber <xmw@gentoo.org> +xdelta-3.0.0.ebuild:
+ version bump (bug 357233), thanks Anton Romanov <theli@ukr.net> for the hint.
15 Sep 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
xdelta-3.0z.ebuild:
diff --git a/dev-util/xdelta/xdelta-3.0.0.ebuild b/dev-util/xdelta/xdelta-3.0.0.ebuild
new file mode 100644
index 000000000000..24f84026765a
--- /dev/null
+++ b/dev-util/xdelta/xdelta-3.0.0.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/xdelta/xdelta-3.0.0.ebuild,v 1.1 2011/03/05 01:33:46 xmw Exp $
+
+EAPI="3"
+PYTHON_DEPEND="2:2.6"
+
+inherit distutils toolchain-funcs
+
+DESCRIPTION="a binary diff and differential compression tools. VCDIFF (RFC 3284) delta compression."
+HOMEPAGE="http://xdelta.org"
+SRC_URI="http://${PN}.googlecode.com/files/${P/-}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="3"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="test"
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${P/-}"
+
+DOCS="draft-korn-vcdiff.txt"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ sed -i -e 's:-O3:-Wall:' setup.py || die "setup.py sed failed"
+ sed \
+ -e 's:-O3::g' \
+ -e 's:$(CC):$(CC) $(LDFLAGS):g' \
+ -e 's:CFLAGS=:CFLAGS+=:' \
+ -i Makefile || die "Makefile sed failed"
+}
+
+src_test() {
+ if [ $UID != 0 ]; then
+ emake test || die "emake test failed"
+ else
+ ewarn "Tests can't be run as root, skipping."
+ fi
+}
+
+src_compile() {
+ tc-export CC CXX
+ distutils_src_compile
+ emake xdelta3 || die "emake xdelta3 failed"
+ if use test; then
+ emake xdelta3-debug || die "emake xdelta3-debug failed"
+ fi
+}
+
+src_install() {
+ dobin xdelta3 || die "dobin failed"
+ distutils_src_install
+}