summaryrefslogtreecommitdiff
blob: b22648dedf7e5a55da1a70bca4bd3138dd3ac854 (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
30
31
32
33
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="a FUSE based compressed read-only filesystem for Linux."
HOMEPAGE="http://bisqwit.iki.fi/source/cromfs.html"
SRC_URI="http://bisqwit.iki.fi/src/arch/${P}.tar.bz2"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="static"

DEPEND=">=sys-fs/fuse-2.5.2"
RDEPEND="${DEPEND}"

src_compile() {
	sed -i -e '/upx/d' -e '/- strip/d' Makefile || \
		die "sed failed to remove UPX and strip."
	econf
	emake || die "Make failed."
}

src_install() {
	if use static; then
		dobin cromfs-driver-static || \
			die "Couldn't find the static binary to install."
	fi
	dobin cromfs-driver util/mkcromfs util/unmkcromfs util/cvcromfs || \
		die "Some binaries failed to install."
	dodoc doc/*.txt doc/FORMAT doc/ChangeLog || die "dodoc failed"
	dohtml doc/*.html doc/*.png || die "dohtml failed"
}