blob: bd2ba540e2abf34b2b6520205588ca9949b45dc4 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/bsdiff/bsdiff-4.2.ebuild,v 1.8 2005/09/17 07:47:38 ferringb Exp $
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-protection"
KEYWORDS="x86 ppc sparc alpha ~hppa ~mips amd64 ia64"
DEPEND="app-arch/bzip2"
src_compile() {
BZIP=`which bzip2`
cd ${S}
$(tc-getCC) bsdiff.c -o bsdiff -DBZIP2=\"${BZIP}\" || die "failed compiling bsdiff"
$(tc-getCC) bspatch.c -o bspatch -DBZIP2=\"${BZIP}\" || die "failed compiling bspatch"
}
src_install() {
insinto /usr
dobin ${S}/bs{diff,patch}
doman ${S}/bs{diff,patch}.1
}
|