diff options
author | Jakub Moc <jakub@gentoo.org> | 2007-01-07 11:27:49 +0000 |
---|---|---|
committer | Jakub Moc <jakub@gentoo.org> | 2007-01-07 11:27:49 +0000 |
commit | 0cb63330114386dd3a7d5fb096106b061b45e913 (patch) | |
tree | 85dfd4bdad8b2fa901af134aaf4d6cac46369948 /sys-fs/cromfs/cromfs-1.2.3.ebuild | |
parent | sys-auth/pam_abl: Add keepdir (diff) | |
download | sunrise-0cb63330114386dd3a7d5fb096106b061b45e913.tar.gz sunrise-0cb63330114386dd3a7d5fb096106b061b45e913.tar.bz2 sunrise-0cb63330114386dd3a7d5fb096106b061b45e913.zip |
Complete ebuild rewrite
svn path=/sunrise/; revision=2656
Diffstat (limited to 'sys-fs/cromfs/cromfs-1.2.3.ebuild')
-rw-r--r-- | sys-fs/cromfs/cromfs-1.2.3.ebuild | 41 |
1 files changed, 30 insertions, 11 deletions
diff --git a/sys-fs/cromfs/cromfs-1.2.3.ebuild b/sys-fs/cromfs/cromfs-1.2.3.ebuild index 9256c990b..00990f18f 100644 --- a/sys-fs/cromfs/cromfs-1.2.3.ebuild +++ b/sys-fs/cromfs/cromfs-1.2.3.ebuild @@ -1,7 +1,9 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ +inherit toolchain-funcs + DESCRIPTION="Cromfs is 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/cromfs-1.2.3.tar.bz2" @@ -14,18 +16,35 @@ IUSE="static" DEPEND=">=sys-fs/fuse-2.5.2" RDEPEND="${DEPEND}" +src_unpack() { + unpack ${A} + cd "${S}" + sed -i -e '/upx/d' -e '/strip/d' Makefile \ + || die "sed failed in Makefile" + for i in Makefile util/Makefile ; do + sed -i -e "/^CXXFLAGS +=/s:-O3::" \ + -e "/OPTIM +=/s:-O3::" ${i} \ + || die "sed failed in ${i}" + done + for i in Makefile.sets util/Makefile.sets ; do + sed -i -e "/^CC=/s:gcc:$(tc-getCC):" \ + -e "/^CPP=/s:g++:$(tc-getCPP):" \ + -e "/^CXX=/s:g++:$(tc-getCXX):" \ + -e "/^CPPFLAGS=/s:-pipe -g::" \ + -e "/^OPTIM/s:=.*:=${CXXFLAGS}:" \ + -e "/^LDFLAGS/s:=.*:+=:" ${i} \ + || die "sed failed in ${i}" + done +} + src_compile() { - sed -i -e '/upx/d' -e '/strip/d' Makefile - emake -j1 + emake -j1 || die "emake failed" } src_install() { - exeinto /usr/bin - if use static; then - doexe cromfs-driver-static - fi - doexe cromfs-driver util/mkcromfs util/unmkcromfs util/cvcromfs - dodoc doc/*.txt doc/FORMAT doc/ChangeLog COPYING - insinto /usr/share/doc/${PF} - doins doc/*.html doc/*.png + use static && dobin cromfs-driver-static + dobin cromfs-driver util/{mkcromfs,unmkcromfs,cvcromfs} + + dodoc doc/*.txt doc/{FORMAT,ChangeLog} + dohtml doc/*.{html,png} } |