diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-util/xdelta | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-util/xdelta')
-rw-r--r-- | dev-util/xdelta/Manifest | 4 | ||||
-rw-r--r-- | dev-util/xdelta/files/xdelta-1.1.4-glib2.patch | 221 | ||||
-rw-r--r-- | dev-util/xdelta/files/xdelta-1.1.4-m4.patch | 11 | ||||
-rw-r--r-- | dev-util/xdelta/files/xdelta-1.1.4-pkgconfig.patch | 113 | ||||
-rw-r--r-- | dev-util/xdelta/metadata.xml | 11 | ||||
-rw-r--r-- | dev-util/xdelta/xdelta-1.1.4-r1.ebuild | 41 | ||||
-rw-r--r-- | dev-util/xdelta/xdelta-3.0.5.ebuild | 53 | ||||
-rw-r--r-- | dev-util/xdelta/xdelta-3.0.6.ebuild | 54 | ||||
-rw-r--r-- | dev-util/xdelta/xdelta-3.0.8.ebuild | 59 |
9 files changed, 567 insertions, 0 deletions
diff --git a/dev-util/xdelta/Manifest b/dev-util/xdelta/Manifest new file mode 100644 index 000000000000..6bbea1b42131 --- /dev/null +++ b/dev-util/xdelta/Manifest @@ -0,0 +1,4 @@ +DIST xdelta-1.1.4.tar.gz 423529 SHA256 345503b60432812840991ea1d79cb10db5f34bfaba9499bd0e7d5c57ac5d5c6d SHA512 eef45f7977e9a7f490b881f33ab8a948cc5eff9300ea850cc30062905c8e883c104961f075f56f7ce8e385142c35de168aef1e0b8169bda66786ea4bee33168b WHIRLPOOL 246d7b50ef528e0a761e334fb9c0af06028364ba6851aee4de0a11db42ae25fbecbf4f603e0a01f3daa5d89caecc549deea79f795af08925bdac282103056150 +DIST xdelta3-3.0.5.tar.gz 483596 SHA256 bf7ba664c5656256c5b358dd4963bc64b58cc1a76ebc6aa399e512b94dd6f0ce SHA512 a133da72483a3824f161afe0da7d6e1dc7437cf233c0d1e9141e594c691f71d8a4798b7a875227fe6619b3a5062d24f945e00ac3e1a5da3a06dfad304ff7123d WHIRLPOOL 695625ac32265eb0b123fb75b6fa578793396610983ad68731c19460d7482334f3c3e56587e0948d84682aa71cfab50e8f6e93d3254d645fbeb0d9cf9225e833 +DIST xdelta3-3.0.6.tar.gz 495860 SHA256 b9a439c27c26e8397dd1b438a2fac710b561e0961fe75682230e6c8f69340da5 SHA512 1b8afc4492129d45e2fecf7bd24616d684eb0ea9b7d5e383a15b6b343459490512697c947561fc854b9454b2c2b831d4396bbc95267813df71211bc0e5f9c0f1 WHIRLPOOL 9d06cfad22490dcebd869ca118d18d84a86770e542ad8e827f642a9a64f199bfb7ea8cd67d36b18c2775f3bce41a1b6179876bf6b5980cdebe94e072842b5ed1 +DIST xdelta3-3.0.8.tar.xz 429964 SHA256 3a86f29c95664fb44b8a40ff22d9bcc3e87aa8c01f0ff75931a7fa78ed3d2e55 SHA512 c0ac97769bd1d80d74909cb271e0396d78dccfa555de834e3bedce59cb6616f7bc6e6f18699932a6677e05d243102648979331db1d2c18b429b76ad29a7b32a3 WHIRLPOOL e8c75938ebbd96f0097f7596ab63ab5edeceb215d0ab18d440ce10b3ea98f4ef36b75e63eeaf8c41988690a546e4076c4cbd911dffe40ef07f602792fda9bcef diff --git a/dev-util/xdelta/files/xdelta-1.1.4-glib2.patch b/dev-util/xdelta/files/xdelta-1.1.4-glib2.patch new file mode 100644 index 000000000000..916b3ee2c007 --- /dev/null +++ b/dev-util/xdelta/files/xdelta-1.1.4-glib2.patch @@ -0,0 +1,221 @@ +Nicked from http://cvs.fedoraproject.org/viewvc/devel/xdelta/xdelta-1.1.4-glib2.patch + + +--- xdelta-1.1.4pre1/libedsio/edsio.c.glib2 2007-01-29 14:55:10.000000000 +0100 ++++ xdelta-1.1.4pre1/libedsio/edsio.c 2007-01-29 14:56:52.000000000 +0100 +@@ -179,9 +179,9 @@ + } + } + +- while (g_queue_get_size (queued) > 0) ++ while (g_queue_get_length (queued) > 0) + { +- DelayedEvent* de = g_queue_pop (queued); ++ DelayedEvent* de = g_queue_pop_head (queued); + + for (i = 0; i < all_event_watchers->len; i += 1) + { +@@ -211,7 +211,7 @@ + de->def = def; + de->msg = out->str; + +- g_queue_push (queued, de); ++ g_queue_push_tail (queued, de); + + g_ptr_array_add (free_strings, out); + } +@@ -1482,129 +1482,3 @@ + g_free (source); + } + +-/* Missing glib stuff +- */ +- +-GQueue * +-g_queue_new (void) +-{ +- GQueue *q = g_new (GQueue, 1); +- +- q->list = q->list_end = NULL; +- q->list_size = 0; +- +- return q; +-} +- +- +-void +-g_queue_free (GQueue *q) +-{ +- if (q) +- { +- if (q->list) +- g_list_free (q->list); +- g_free (q); +- } +-} +- +- +-guint +-g_queue_get_size (GQueue *q) +-{ +- return (q == NULL) ? 0 : q->list_size; +-} +- +- +-void +-g_queue_push_front (GQueue *q, gpointer data) +-{ +- if (q) +- { +- q->list = g_list_prepend (q->list, data); +- +- if (q->list_end == NULL) +- q->list_end = q->list; +- +- q->list_size++; +- } +-} +- +- +-void +-g_queue_push_back (GQueue *q, gpointer data) +-{ +- if (q) +- { +- q->list_end = g_list_append (q->list_end, data); +- +- if (! q->list) +- q->list = q->list_end; +- else +- q->list_end = q->list_end->next; +- +- q->list_size++; +- } +-} +- +- +-gpointer +-g_queue_pop_front (GQueue *q) +-{ +- gpointer data = NULL; +- +- if ((q) && (q->list)) +- { +- GList *node; +- +- node = q->list; +- data = node->data; +- +- if (! node->next) +- { +- q->list = q->list_end = NULL; +- q->list_size = 0; +- } +- else +- { +- q->list = node->next; +- q->list->prev = NULL; +- q->list_size--; +- } +- +- g_list_free_1 (node); +- } +- +- return data; +-} +- +- +-gpointer +-g_queue_pop_back (GQueue *q) +-{ +- gpointer data = NULL; +- +- if ((q) && (q->list)) +- { +- GList *node; +- +- node = q->list_end; +- data = node->data; +- +- if (! node->prev) +- { +- q->list = q->list_end = NULL; +- q->list_size = 0; +- } +- else +- { +- q->list_end = node->prev; +- q->list_end->next = NULL; +- q->list_size--; +- } +- +- g_list_free_1 (node); +- } +- +- return data; +-} +--- xdelta-1.1.4pre1/libedsio/edsio.h.glib2 2007-01-29 14:54:38.000000000 +0100 ++++ xdelta-1.1.4pre1/libedsio/edsio.h 2007-01-29 14:55:00.000000000 +0100 +@@ -481,49 +481,6 @@ + + #endif + +-/* Missing glib stuff +- */ +- +-typedef struct _GQueue GQueue; +- +-struct _GQueue +-{ +- GList *list; +- GList *list_end; +- guint list_size; +-}; +- +-/* Queues +- */ +- +-GQueue * g_queue_new (void); +-void g_queue_free (GQueue *q); +-guint g_queue_get_size (GQueue *q); +-void g_queue_push_front (GQueue *q, gpointer data); +-void g_queue_push_back (GQueue *q, gpointer data); +-gpointer g_queue_pop_front (GQueue *q); +-gpointer g_queue_pop_back (GQueue *q); +- +-#define g_queue_empty(queue) \ +- ((((GQueue *)(queue)) && ((GQueue *)(queue))->list) ? FALSE : TRUE) +- +-#define g_queue_peek_front(queue) \ +- ((((GQueue *)(queue)) && ((GQueue *)(queue))->list) ? \ +- ((GQueue *)(queue))->list->data : NULL) +- +-#define g_queue_peek_back(queue) \ +- ((((GQueue *)(queue)) && ((GQueue *)(queue))->list_end) ? \ +- ((GQueue *)(queue))->list_end->data : NULL) +- +-#define g_queue_index(queue,ptr) \ +- ((((GQueue *)(queue)) && ((GQueue *)(queue))->list) ? \ +- g_list_index (((GQueue *)(queue))->list, (ptr)) : -1) +- +-#define g_queue_push g_queue_push_back +-#define g_queue_pop g_queue_pop_front +-#define g_queue_peek g_queue_peek_front +- +- + #ifdef __cplusplus + } + #endif +--- xdelta-1.1.4pre1/configure.in.glib2 2007-01-29 14:58:06.000000000 +0100 ++++ xdelta-1.1.4pre1/configure.in 2007-01-29 14:59:18.000000000 +0100 +@@ -71,8 +71,8 @@ + top_srcdir_absolute=`cd $srcdir; pwd` + AC_SUBST(top_srcdir_absolute) + +-AM_PATH_GLIB(1.2.8,, +- AC_MSG_ERROR(Test for GLIB failed. Download it from ftp://ftp.gtk.org/pub/gtk/v1.2/)) ++AM_PATH_GLIB_2_0(2.10.0,, ++ AC_MSG_ERROR(Test for GLIB2.0 failed. Download it from ftp://ftp.gtk.org/pub/gtk/v2.10/)) + + dnl AC_CHECK_LIB(z, gzsetparams, */ + dnl AC_CHECK_HEADER(zlib.h,, */ diff --git a/dev-util/xdelta/files/xdelta-1.1.4-m4.patch b/dev-util/xdelta/files/xdelta-1.1.4-m4.patch new file mode 100644 index 000000000000..ad8c99de5970 --- /dev/null +++ b/dev-util/xdelta/files/xdelta-1.1.4-m4.patch @@ -0,0 +1,11 @@ +--- xdelta-1.1.3/xdelta.m4.aclocal 2004-10-20 00:20:47.875648144 +0200 ++++ xdelta-1.1.3/xdelta.m4 2004-10-20 00:21:47.205628616 +0200 +@@ -4,7 +4,7 @@ + dnl AM_PATH_XDELTA([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) + dnl Test for XDELTA, and define XDELTA_CFLAGS and XDELTA_LIBS, if "gmodule" or + dnl +-AC_DEFUN(AM_PATH_XDELTA, ++AC_DEFUN([AM_PATH_XDELTA], + [dnl + dnl Get the cflags and libraries from the xdelta-config script + dnl diff --git a/dev-util/xdelta/files/xdelta-1.1.4-pkgconfig.patch b/dev-util/xdelta/files/xdelta-1.1.4-pkgconfig.patch new file mode 100644 index 000000000000..bb509b8d4356 --- /dev/null +++ b/dev-util/xdelta/files/xdelta-1.1.4-pkgconfig.patch @@ -0,0 +1,113 @@ +Nicked from http://cvs.fedoraproject.org/viewvc/devel/xdelta/xdelta-1.1.3-pkgconfig.patch + +--- /dev/null 2006-05-17 14:47:01.398050000 +0200 ++++ xdelta-1.1.3/xdelta.pc.in 2006-05-30 16:00:55.000000000 +0200 +@@ -0,0 +1,13 @@ ++prefix=@prefix@ ++exec_prefix=@exec_prefix@ ++libdir=@libdir@ ++includedir=@includedir@ ++pkgdatadir=@pkgdatadir@ ++ ++Name: xdelta ++Description: A binary file delta generator and an RCS replacement library. ++Version: @VERSION@ ++Requires: glib-2.0 ++Libs: -L${libdir} -lxdelta -ledsio ++Cflags: -I${includedir} ++ +--- /dev/null 2006-05-17 14:47:01.398050000 +0200 ++++ xdelta-1.1.3/xdelta-config 2006-05-30 16:04:22.000000000 +0200 +@@ -0,0 +1,60 @@ ++#!/bin/bash ++# ++# Simple wrapper around pkg-config to replace /usr/bin/<foo>-config scripts ++# ++# Copyright 2006 Red Hat, Inc. ++# Jeremy Katz <katzj@redhat.com> ++ ++CFGPATH=$(basename $0) ++MODULE=${CFGPATH%-config} ++ ++usage() { ++ pkg-config --help ++ exit 1 ++} ++ ++if [ $# -lt 1 ]; then ++ usage 1>&2 ++fi ++ ++ARGS="" ++ ++while test $# -gt 0; do ++ case $1 in ++ --version) ++ ARGS="$ARGS --modversion" ++ ;; ++ --cflags) ++ ARGS="$ARGS --cflags" ++ ;; ++ --libs) ++ ARGS="$ARGS --libs" ++ ;; ++ --libdir*) ++ ARGS="$ARGS --libs-only-L" ++ ;; ++ --includedir*) ++ ARGS="$ARGS --cflags-only-I" ++ ;; ++ --prefix*) ++ ARGS="$ARGS --variable=prefix" ++ ;; ++ --exec-prefix*) ++ ARGS="$ARGS --variable=exec_prefix" ++ ;; ++ --module*) ++ if echo $1 | grep -q '=' ; then ++ MODULE=`echo $1 | sed 's/^--module=//'` ++ else ++ MODULE=$2 ++ shift ++ fi ++ ;; ++ *) ++ usage 1>&2 ++ ;; ++ esac ++ shift ++done ++ ++pkg-config $ARGS $MODULE +--- xdelta-1.1.3/Makefile.am.pkgconfig 2006-05-30 16:00:55.000000000 +0200 ++++ xdelta-1.1.3/Makefile.am 2006-05-30 16:00:55.000000000 +0200 +@@ -27,6 +27,9 @@ + m4datadir = $(datadir)/aclocal + m4data_DATA = xdelta.m4 + ++pkgconfigdir = $(libdir)/pkgconfig ++pkgconfig_DATA = xdelta.pc ++ + ## $Format: "libxdelta_la_LDFLAGS = -version-info $LibCurrent$:$LibRevision$:$LibAge$" $ + libxdelta_la_LDFLAGS = -version-info 2:0:0 + +--- xdelta-1.1.3/configure.in.pkgconfig 2006-05-30 16:00:55.000000000 +0200 ++++ xdelta-1.1.3/configure.in 2006-05-30 16:00:55.000000000 +0200 +@@ -63,6 +63,8 @@ + AC_HEADER_STDC + AC_PROG_MAKE_SET + ++PKG_PROG_PKG_CONFIG ++ + AC_CHECK_FUNCS(gettimeofday) + AC_HEADER_TIME + +@@ -83,7 +85,7 @@ + doc/Makefile + test/Makefile + djgpp/Makefile +- xdelta-config ++ xdelta.pc + libedsio/Makefile + libedsio/edsio-comp, + diff --git a/dev-util/xdelta/metadata.xml b/dev-util/xdelta/metadata.xml new file mode 100644 index 000000000000..b84ede9ae666 --- /dev/null +++ b/dev-util/xdelta/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>mgorny@gentoo.org</email> + <name>Michał Górny</name> + </maintainer> + <upstream> + <remote-id type="google-code">xdelta</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-util/xdelta/xdelta-1.1.4-r1.ebuild b/dev-util/xdelta/xdelta-1.1.4-r1.ebuild new file mode 100644 index 000000000000..acdf89b9bed8 --- /dev/null +++ b/dev-util/xdelta/xdelta-1.1.4-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit autotools eutils toolchain-funcs + +DESCRIPTION="Computes changes between binary or text files and creates deltas" +HOMEPAGE="http://xdelta.googlecode.com/" +SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86" +IUSE="" + +RDEPEND=">=dev-libs/glib-2 + >=sys-libs/zlib-1.1.4" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${P}-m4.patch + epatch "${FILESDIR}"/${P}-glib2.patch + epatch "${FILESDIR}"/${P}-pkgconfig.patch + + eautoreconf +} + +src_compile() { + tc-export CC + econf || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc AUTHORS ChangeLog NEWS README +} diff --git a/dev-util/xdelta/xdelta-3.0.5.ebuild b/dev-util/xdelta/xdelta-3.0.5.ebuild new file mode 100644 index 000000000000..4f817a08b4f2 --- /dev/null +++ b/dev-util/xdelta/xdelta-3.0.5.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools python + +MY_P=${PN}${PV%.*.*}-${PV} + +DESCRIPTION="a binary diff and differential compression tools. VCDIFF (RFC 3284) delta compression" +HOMEPAGE="http://xdelta.org/" +SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="3" +KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86" +IUSE="examples test" + +RDEPEND="app-arch/xz-utils" +DEPEND="${RDEPEND} + test? ( || ( dev-lang/python:2.7 dev-lang/python:2.6 ) )" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + if use test; then + python_set_active_version 2 + python_pkg_setup + fi +} + +src_prepare() { + >py-compile + + # huh + sed -i -e '/python/s:2.6:2:' testing/xdelta3-regtest.py || die + sed -i -e '/python/s:2.7:2:' testing/xdelta3-test.py || die + + # only build tests when required + sed -i -e '/xdelta3regtest/s:noinst_P:check_P:' Makefile.am || die + eautoreconf +} + +src_test() { + default + ./xdelta3regtest || die +} + +src_install() { + emake DESTDIR="${D}" install + dodoc draft-korn-vcdiff.txt README + use examples && dodoc -r examples +} diff --git a/dev-util/xdelta/xdelta-3.0.6.ebuild b/dev-util/xdelta/xdelta-3.0.6.ebuild new file mode 100644 index 000000000000..9ad77508f1ab --- /dev/null +++ b/dev-util/xdelta/xdelta-3.0.6.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit autotools python-single-r1 + +MY_P=${PN}${PV%.*.*}-${PV} + +DESCRIPTION="a binary diff and differential compression tools. VCDIFF (RFC 3284) delta compression" +HOMEPAGE="http://xdelta.org/" +SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="3" +KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86" +IUSE="examples test" + +RDEPEND="app-arch/xz-utils" +DEPEND="${RDEPEND} + test? ( || ( dev-lang/python:2.7 dev-lang/python:2.6 ) )" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + if use test; then + python-single-r1_pkg_setup + fi +} + +src_prepare() { + >py-compile + + # huh + sed -i -e '/python/s:2.6:2:' testing/xdelta3-regtest.py || die + sed -i -e '/python/s:2.7:2:' testing/xdelta3-test.py || die + + # only build tests when required + sed -i -e '/xdelta3regtest/s:noinst_P:check_P:' Makefile.am || die + eautoreconf +} + +src_test() { + default + ./xdelta3regtest || die +} + +src_install() { + emake DESTDIR="${D}" install + dodoc draft-korn-vcdiff.txt README + use examples && dodoc -r examples +} diff --git a/dev-util/xdelta/xdelta-3.0.8.ebuild b/dev-util/xdelta/xdelta-3.0.8.ebuild new file mode 100644 index 000000000000..20b927bee148 --- /dev/null +++ b/dev-util/xdelta/xdelta-3.0.8.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit autotools python-single-r1 + +MY_P=${PN}${PV%.*.*}-${PV} + +DESCRIPTION="a binary diff and differential compression tools. VCDIFF (RFC 3284) delta compression" +HOMEPAGE="http://xdelta.org/" +SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.tar.xz" + +LICENSE="GPL-2" +SLOT="3" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="examples lzma test" + +RDEPEND="lzma? ( app-arch/xz-utils )" +DEPEND="${RDEPEND} + app-arch/xz-utils + test? ( || ( dev-lang/python:2.7 dev-lang/python:2.6 ) )" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + if use test; then + python-single-r1_pkg_setup + fi +} + +src_prepare() { + # huh + sed -i -e '/python/s:2.6:2:' testing/xdelta3-regtest.py || die + sed -i -e '/python/s:2.7:2:' testing/xdelta3-test.py || die + + # only build tests when required + sed -i -e '/xdelta3regtest/s:noinst_P:check_P:' Makefile.am || die + eautoreconf +} + +src_configure() { + econf \ + ac_cv_header_lzma_h=$(usex lzma) \ + ac_cv_lib_lzma_lzma_easy_buffer_encode=$(usex lzma) +} + +src_test() { + default + ./xdelta3regtest || die +} + +src_install() { + emake DESTDIR="${D}" install + dodoc draft-korn-vcdiff.txt README + use examples && dodoc -r examples +} |