diff options
author | Michael Weber <xmw@gentoo.org> | 2010-09-15 01:17:11 +0000 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2010-09-15 01:17:11 +0000 |
commit | 81da9bfc39a3a04aea6b6e1913b6ae2447500a7b (patch) | |
tree | 21e1735915cc3993d40041c0c8d2077b0e17a262 /dev-util/xdelta | |
parent | Automated update of use.local.desc (diff) | |
download | gentoo-2-81da9bfc39a3a04aea6b6e1913b6ae2447500a7b.tar.gz gentoo-2-81da9bfc39a3a04aea6b6e1913b6ae2447500a7b.tar.bz2 gentoo-2-81da9bfc39a3a04aea6b6e1913b6ae2447500a7b.zip |
Version bump with Python 2 restriction
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/xdelta')
-rw-r--r-- | dev-util/xdelta/ChangeLog | 10 | ||||
-rw-r--r-- | dev-util/xdelta/xdelta-3.0z.ebuild | 60 |
2 files changed, 68 insertions, 2 deletions
diff --git a/dev-util/xdelta/ChangeLog b/dev-util/xdelta/ChangeLog index 0f4f1b3274e2..4cc8de42b8db 100644 --- a/dev-util/xdelta/ChangeLog +++ b/dev-util/xdelta/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-util/xdelta -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/xdelta/ChangeLog,v 1.50 2009/10/28 17:36:29 armin76 Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/xdelta/ChangeLog,v 1.51 2010/09/15 01:17:11 xmw Exp $ + +*xdelta-3.0z (15 Sep 2010) + + 15 Sep 2010; Michael Weber <xmw@gentoo.org> +xdelta-3.0z.ebuild: + Version bump (bug #333521 by throw_away_2002@yahoo.com) with Python 2 + restriction (bug #326127, thanks David Abbott). 28 Oct 2009; Raúl Porcel <armin76@gentoo.org> xdelta-1.1.4-r1.ebuild, xdelta-3.0v.ebuild: diff --git a/dev-util/xdelta/xdelta-3.0z.ebuild b/dev-util/xdelta/xdelta-3.0z.ebuild new file mode 100644 index 000000000000..1eb1be6ecc73 --- /dev/null +++ b/dev-util/xdelta/xdelta-3.0z.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/xdelta/xdelta-3.0z.ebuild,v 1.1 2010/09/15 01:17:11 xmw Exp $ + +EAPI=2 + +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" + +RDEPEND="" +DEPEND="${RDEPEND} + sys-apps/sed" + +S=${WORKDIR}/${P/-} +DOCS="draft-korn-vcdiff.txt" + +pkg_setup() { + python_set_active_version 2 +} + +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 +} |