OLD | NEW |
1 # Copyright 1999-2010 Gentoo Foundation | 1 # Copyright 1999-2010 Gentoo Foundation |
2 # Distributed under the terms of the GNU General Public License v2 | 2 # Distributed under the terms of the GNU General Public License v2 |
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/bsdiff/bsdiff-4.3-r1.ebuild,v 1.12 2
010/01/15 21:21:10 fauli Exp $ | 3 # $Header: /var/cvsroot/gentoo-x86/dev-util/bsdiff/bsdiff-4.3-r1.ebuild,v 1.12 2
010/01/15 21:21:10 fauli Exp $ |
4 | 4 |
5 inherit toolchain-funcs flag-o-matic | 5 inherit eutils toolchain-funcs flag-o-matic |
6 | 6 |
| 7 EAPI=2 |
7 IUSE="" | 8 IUSE="" |
8 | 9 |
9 DESCRIPTION="bsdiff: Binary Differencer using a suffix alg" | 10 DESCRIPTION="bsdiff: Binary Differencer using a suffix alg" |
10 HOMEPAGE="http://www.daemonology.net/bsdiff/" | 11 HOMEPAGE="http://www.daemonology.net/bsdiff/" |
| 12 SRC_URI="http://www.daemonology.net/bsdiff/${P}.tar.gz" |
11 | 13 |
12 SLOT="0" | 14 SLOT="0" |
13 LICENSE="BSD-2" | 15 LICENSE="BSD-2" |
14 KEYWORDS="alpha amd64 arm hppa ia64 mips ppc sparc x86 ~x86-fbsd ~x86-freebsd ~a
md64-linux ~x86-linux ~ppc-macos" | 16 KEYWORDS="alpha amd64 arm hppa ia64 mips ppc sparc x86 ~x86-fbsd ~x86-freebsd ~a
md64-linux ~x86-linux ~ppc-macos" |
15 | 17 |
16 DEPEND="app-arch/bzip2" | 18 DEPEND="app-arch/bzip2" |
17 RDEPEND="${DEPEND}" | 19 RDEPEND="${DEPEND}" |
18 | 20 |
19 src_unpack() { | 21 src_prepare() { |
20 » local third_party="${CHROMEOS_ROOT}/src/third_party" | 22 » epatch ${FILESDIR}/4.3_bspatch-support-input-output-positioning.patch |
21 » elog "Using third_party: $third_party" | |
22 » mkdir -p "${S}" | |
23 » cp -a "${third_party}/bsdiff/files"/* "${S}" || die | |
24 } | 23 } |
25 | 24 |
26 src_compile() { | 25 src_compile() { |
27 append-lfs-flags | 26 append-lfs-flags |
28 $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o bsdiff bsdiff.c -lbz2 || die "failed
compiling bsdiff" | 27 $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o bsdiff bsdiff.c -lbz2 || die "failed
compiling bsdiff" |
29 $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o bspatch bspatch.c -lbz2 || die "fail
ed compiling bspatch" | 28 $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o bspatch bspatch.c -lbz2 || die "fail
ed compiling bspatch" |
30 } | 29 } |
31 | 30 |
32 src_install() { | 31 src_install() { |
33 dobin bs{diff,patch} | 32 dobin bs{diff,patch} |
34 doman bs{diff,patch}.1 | 33 doman bs{diff,patch}.1 |
35 } | 34 } |
OLD | NEW |