Andrew de los Reyes | 02dc6dd | 2010-04-13 12:07:31 -0700 | [diff] [blame] | 1 | # 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 | |
| 5 | inherit toolchain-funcs flag-o-matic |
| 6 | |
| 7 | IUSE="" |
| 8 | |
| 9 | DESCRIPTION="bsdiff: Binary Differencer using a suffix alg" |
| 10 | HOMEPAGE="http://www.daemonology.net/bsdiff/" |
| 11 | SRC_URI="http://www.daemonology.net/bsdiff/${P}.tar.gz" |
| 12 | |
| 13 | SLOT="0" |
| 14 | LICENSE="BSD-2" |
| 15 | KEYWORDS="alpha amd64 hppa ia64 mips ppc sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos" |
| 16 | |
| 17 | DEPEND="app-arch/bzip2" |
| 18 | RDEPEND="${DEPEND}" |
| 19 | |
| 20 | src_compile() { |
| 21 | append-lfs-flags |
| 22 | $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o bsdiff bsdiff.c -lbz2 || die "failed compiling bsdiff" |
| 23 | $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o bspatch bspatch.c -lbz2 || die "failed compiling bspatch" |
| 24 | } |
| 25 | |
| 26 | src_install() { |
| 27 | dobin bs{diff,patch} |
| 28 | doman bs{diff,patch}.1 |
| 29 | } |