Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 277539
Collapse All | Expand All

(-)pbzip2-1.0.5-r1.ebuild (-4 / +12 lines)
Lines 2-7 Link Here
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/app-arch/pbzip2/pbzip2-1.0.5-r1.ebuild,v 1.1 2009/03/20 20:00:23 jer Exp $
3
# $Header: /var/cvsroot/gentoo-x86/app-arch/pbzip2/pbzip2-1.0.5-r1.ebuild,v 1.1 2009/03/20 20:00:23 jer Exp $
4
4
5
EAPI=2
6
5
inherit multilib eutils
7
inherit multilib eutils
6
8
7
DESCRIPTION="parallel bzip2 (de)compressor using libbz2"
9
DESCRIPTION="parallel bzip2 (de)compressor using libbz2"
Lines 11-24 SRC_URI="http://compression.ca/${PN}/${P Link Here
11
LICENSE="PBZIP2"
13
LICENSE="PBZIP2"
12
SLOT="0"
14
SLOT="0"
13
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
14
IUSE="static"
16
IUSE="static symlink"
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
	unpack ${A}
22
	sed -e 's:^CFLAGS = .*$:#&:g' -e 's:g++:$(CXX):g' -i Makefile || die 'sed failed'
21
	sed -e 's:^CFLAGS = .*$:#&:g' -e 's:g++:$(CXX):g' -i ${P}/Makefile || die
22
	epatch "${FILESDIR}"/${P}-ldflags.patch
23
	epatch "${FILESDIR}"/${P}-ldflags.patch
23
}
24
}
24
25
Lines 37-40 src_install() { Link Here
37
	dodoc AUTHORS ChangeLog README
38
	dodoc AUTHORS ChangeLog README
38
	doman pbzip2.1 || die "Failed to install man page"
39
	doman pbzip2.1 || die "Failed to install man page"
39
	dosym /usr/bin/pbzip2 /usr/bin/pbunzip2
40
	dosym /usr/bin/pbzip2 /usr/bin/pbunzip2
41
42
	if use symlink; then
43
		dosym /usr/bin/pbzip2 /usr/bin/bzip2
44
		dosym /usr/bin/pbzip2 /usr/bin/bunzip2
45
		dosym /usr/bin/pbzip2 /usr/bin/bzcat
46
	fi
40
}
47
}
48

Return to bug 277539