blob: d8a6b9d025111a6962bc076e87f45dfa9b52b99b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/bsdiff/bsdiff-4.3-r1.ebuild,v 1.12 2010/01/15 21:21:10 fauli Exp $
inherit toolchain-funcs flag-o-matic
IUSE=""
DESCRIPTION="bsdiff: Binary Differencer using a suffix alg"
HOMEPAGE="http://www.daemonology.net/bsdiff/"
SRC_URI="http://www.daemonology.net/bsdiff/${P}.tar.gz"
SLOT="0"
LICENSE="BSD-2"
KEYWORDS="alpha amd64 hppa ia64 mips ppc sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos"
DEPEND="app-arch/bzip2"
RDEPEND="${DEPEND}"
src_compile() {
append-lfs-flags
$(tc-getCC) ${CFLAGS} ${LDFLAGS} -o bsdiff bsdiff.c -lbz2 || die "failed compiling bsdiff"
$(tc-getCC) ${CFLAGS} ${LDFLAGS} -o bspatch bspatch.c -lbz2 || die "failed compiling bspatch"
}
src_install() {
dobin bs{diff,patch}
doman bs{diff,patch}.1
}
|