# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" DESCRIPTION="Access a regular directory case-insensitively" HOMEPAGE="http://www.brain-dump.org/projects/ciopfs/" SRC_URI="http://www.brain-dump.org/projects/ciopfs/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="unicode" DEPEND="sys-fs/fuse sys-apps/attr unicode? ( dev-libs/glib:2 )" RDEPEND="${RDEPEND}" src_prepare() { sed -i "s:-O[s0-9]::g" config.mk || die } src_compile() { # Makefile is a bit brain damaged. if use unicode; then emake CFLAGS_UNICODE='${CFLAGS_GLIB}' LDFLAGS_UNICODE='${LDFLAGS_GLIB}' || die else emake CFLAGS_UNICODE='' LDFLAGS_UNICODE='' || die fi } src_install() { dobin "${PN}" || die }