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

(-)/mnt/root/x86_64-2011-11-26-1322302087/var/db/pkg/sys-fs/squashfs-tools-4.0/squashfs-tools-4.0.ebuild (-5 / +6 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2009 Gentoo Foundation
1
# Copyright 1999-2010 Gentoo Foundation
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/sys-fs/squashfs-tools/squashfs-tools-4.0.ebuild,v 1.7 2009/07/18 20:18:30 josejx Exp $
3
# $Header: /var/cvsroot/gentoo-x86/sys-fs/squashfs-tools/squashfs-tools-4.0.ebuild,v 1.9 2010/11/14 13:49:59 jlec Exp $
4
4
5
inherit toolchain-funcs
5
inherit toolchain-funcs
6
6
Lines 23-40 Link Here
23
	cd "${S}"
23
	cd "${S}"
24
	sed -i \
24
	sed -i \
25
		-e 's:-O2:$(CFLAGS):' \
25
		-e 's:-O2:$(CFLAGS):' \
26
		-e 's:$(CC):$(CC) $(LDFLAGS):' \
26
		-e '/-lz/s:$: $(LDFLAGS):' \
27
		Makefile || die "sed failed"
27
		Makefile || die "sed failed"
28
	sed -i -e 's:get_nprocs():sysconf(_SC_NPROCESSORS_ONLN):' *.c
28
}
29
}
29
30
30
src_compile() {
31
src_compile() {
31
	emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" || die
32
	emake CC="$(tc-getCC)" || die
32
}
33
}
33
34
34
src_install() {
35
src_install() {
35
	dobin mksquashfs unsquashfs || die
36
	dobin mksquashfs unsquashfs || die
36
	cd ..
37
	cd ..
37
	dodoc README ACKNOWLEDGEMENTS CHANGES PERFORMANCE.README
38
	dodoc README ACKNOWLEDGEMENTS CHANGES PERFORMANCE.README || die
38
}
39
}
39
40
40
pkg_postinst() {
41
pkg_postinst() {

Return to bug 395201