diff options
author | Pacho Ramos <pacho@gentoo.org> | 2012-04-02 20:04:21 +0000 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2012-04-02 20:04:21 +0000 |
commit | 9f13a1659e8225889b595d8b1a9fa924e702cb6a (patch) | |
tree | 296ec362b2c276df4597420d8fc78e90942957a5 /dev-util/xdelta/xdelta-3.0.0-r1.ebuild | |
parent | Respect get_libdir variable, bug #255698 by Nathan Phillip Brink (binki). Rem... (diff) | |
download | gentoo-2-9f13a1659e8225889b595d8b1a9fa924e702cb6a.tar.gz gentoo-2-9f13a1659e8225889b595d8b1a9fa924e702cb6a.tar.bz2 gentoo-2-9f13a1659e8225889b595d8b1a9fa924e702cb6a.zip |
Fix overflows with ThePythonicCow's patches, bug #380473 by Marcin Mirosław.
(Portage version: 2.1.10.54/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/xdelta/xdelta-3.0.0-r1.ebuild')
-rw-r--r-- | dev-util/xdelta/xdelta-3.0.0-r1.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/dev-util/xdelta/xdelta-3.0.0-r1.ebuild b/dev-util/xdelta/xdelta-3.0.0-r1.ebuild new file mode 100644 index 000000000000..828b023dcb58 --- /dev/null +++ b/dev-util/xdelta/xdelta-3.0.0-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2012 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-r1.ebuild,v 1.1 2012/04/02 20:04:21 pacho Exp $ + +EAPI=4 +PYTHON_DEPEND="2:2.6" + +inherit distutils toolchain-funcs eutils + +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="test? ( app-arch/ncompress )" +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" + + EPATCH_SOURCE="${FILESDIR}" epatch \ + 01_bigger_print_buffers.patch \ + 02_replace_sprintf_with_snprintf.patch \ + 03_fix_pipe_draining_and_closing.patch +} + +src_test() { + if [ $UID != 0 ]; then + emake test + else + ewarn "Tests can't be run as root, skipping." + fi +} + +src_compile() { + tc-export CC CXX + distutils_src_compile + emake xdelta3 + if use test; then + emake xdelta3-debug + fi +} + +src_install() { + dobin xdelta3 + distutils_src_install +} |