blob: bb3b899866ac1ecab6b870dccb50638adcfb51ee [file] [log] [blame]
Andrew de los Reyes02dc6dd2010-04-13 12:07:31 -07001# Copyright 1999-2010 Gentoo Foundation
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 2010/01/15 21:21:10 fauli Exp $
4
5inherit toolchain-funcs flag-o-matic
6
7IUSE=""
8
9DESCRIPTION="bsdiff: Binary Differencer using a suffix alg"
10HOMEPAGE="http://www.daemonology.net/bsdiff/"
Andrew de los Reyes02dc6dd2010-04-13 12:07:31 -070011
12SLOT="0"
13LICENSE="BSD-2"
Andrew de los Reyes517c05e2010-04-13 16:43:54 -070014KEYWORDS="alpha amd64 arm hppa ia64 mips ppc sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos"
Andrew de los Reyes02dc6dd2010-04-13 12:07:31 -070015
16DEPEND="app-arch/bzip2"
17RDEPEND="${DEPEND}"
18
Andrew de los Reyes517c05e2010-04-13 16:43:54 -070019src_unpack() {
20 local third_party="${CHROMEOS_ROOT}/src/third_party"
21 elog "Using third_party: $third_party"
22 mkdir -p "${S}"
23 cp -a "${third_party}/bsdiff/files"/* "${S}" || die
24}
25
Andrew de los Reyes02dc6dd2010-04-13 12:07:31 -070026src_compile() {
27 append-lfs-flags
28 $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o bsdiff bsdiff.c -lbz2 || die "failed compiling bsdiff"
29 $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o bspatch bspatch.c -lbz2 || die "failed compiling bspatch"
30}
31
32src_install() {
33 dobin bs{diff,patch}
34 doman bs{diff,patch}.1
35}