summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Moc <jakub@gentoo.org>2007-01-07 11:27:49 +0000
committerJakub Moc <jakub@gentoo.org>2007-01-07 11:27:49 +0000
commit0cb63330114386dd3a7d5fb096106b061b45e913 (patch)
tree85dfd4bdad8b2fa901af134aaf4d6cac46369948 /sys-fs/cromfs
parentsys-auth/pam_abl: Add keepdir (diff)
downloadsunrise-0cb63330114386dd3a7d5fb096106b061b45e913.tar.gz
sunrise-0cb63330114386dd3a7d5fb096106b061b45e913.tar.bz2
sunrise-0cb63330114386dd3a7d5fb096106b061b45e913.zip
Complete ebuild rewrite
svn path=/sunrise/; revision=2656
Diffstat (limited to 'sys-fs/cromfs')
-rw-r--r--sys-fs/cromfs/ChangeLog5
-rw-r--r--sys-fs/cromfs/Manifest16
-rw-r--r--sys-fs/cromfs/cromfs-1.2.3.ebuild41
3 files changed, 42 insertions, 20 deletions
diff --git a/sys-fs/cromfs/ChangeLog b/sys-fs/cromfs/ChangeLog
index 5a3f30d57..654fb2dc0 100644
--- a/sys-fs/cromfs/ChangeLog
+++ b/sys-fs/cromfs/ChangeLog
@@ -1,7 +1,10 @@
# ChangeLog for sys-fs/cromfs
-# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 07 Jan 2007; Jakub Moc <jakub@gentoo.org> cromfs-1.2.3.ebuild:
+ Complete ebuild rewrite
+
07 Sep 2006; Jérôme Poulin (TiCPU) <jeromepoulin@gmail.com>
+cromfs-1.2.3.ebuild, +metadata.xml:
New eBuild for bug 146694
diff --git a/sys-fs/cromfs/Manifest b/sys-fs/cromfs/Manifest
index 4574142eb..abedde416 100644
--- a/sys-fs/cromfs/Manifest
+++ b/sys-fs/cromfs/Manifest
@@ -1,12 +1,12 @@
DIST cromfs-1.2.3.tar.bz2 127894 RMD160 bf66ef0d877f8c412506bec42b9bb7f6308dfd50 SHA1 002027f7955d9929c9e7b407e42e1b25ff3f21bd SHA256 1d83cbce1b51cb62e62943a58e36260569e16a639ab7d7bba1ee049648fd3ddb
-EBUILD cromfs-1.2.3.ebuild 758 RMD160 d5e068bb6ee1e1e782a4d1b8be3df410ec5b3627 SHA1 3ae8519480980bba9349fe83a2c45923a1fd9cfa SHA256 029564be5774f5594ecb4019d28d51b1b05bda8677c31077e655e65fd35c324b
-MD5 86aaa3ef0a551796a7b4ec2ab666648b cromfs-1.2.3.ebuild 758
-RMD160 d5e068bb6ee1e1e782a4d1b8be3df410ec5b3627 cromfs-1.2.3.ebuild 758
-SHA256 029564be5774f5594ecb4019d28d51b1b05bda8677c31077e655e65fd35c324b cromfs-1.2.3.ebuild 758
-MISC ChangeLog 246 RMD160 6776711f9336e6417aeb29988c33da6df85202c8 SHA1 be20ca25d85eb75954668f6dbf17014c165a1be5 SHA256 1265fb4b24e32538a33d7fb32dd11f71043e680f5b9aec8b14eaa8d83a789e5a
-MD5 0b4050a72fc2e988d74d47fe0ca5e1ff ChangeLog 246
-RMD160 6776711f9336e6417aeb29988c33da6df85202c8 ChangeLog 246
-SHA256 1265fb4b24e32538a33d7fb32dd11f71043e680f5b9aec8b14eaa8d83a789e5a ChangeLog 246
+EBUILD cromfs-1.2.3.ebuild 1255 RMD160 bba59a8523d0c714bb3f5fc0334c17f1d0aafe75 SHA1 be9827dc075884a79f8eb79eb6a179619fa4b8c7 SHA256 08d0ab98d1fa5cdd04755383fe048675e23304bd5db90f81f1e3786750519a05
+MD5 bdad8000e235676b72f106ef4aaf93c2 cromfs-1.2.3.ebuild 1255
+RMD160 bba59a8523d0c714bb3f5fc0334c17f1d0aafe75 cromfs-1.2.3.ebuild 1255
+SHA256 08d0ab98d1fa5cdd04755383fe048675e23304bd5db90f81f1e3786750519a05 cromfs-1.2.3.ebuild 1255
+MISC ChangeLog 338 RMD160 ea14b95eb3df01fb89616ff988c697b76f301236 SHA1 473eb1c8b9efeeea35a32825ecb58838a3545b10 SHA256 9f8b4b66bb8c5dae455cd7f8baea7e7ec17d39a319867175c98f726f652f2cfd
+MD5 f31c78751e2b3c77ac12aee1a6ad56c6 ChangeLog 338
+RMD160 ea14b95eb3df01fb89616ff988c697b76f301236 ChangeLog 338
+SHA256 9f8b4b66bb8c5dae455cd7f8baea7e7ec17d39a319867175c98f726f652f2cfd ChangeLog 338
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
MD5 1e678929a9fec6632e227bdf2262e9a1 metadata.xml 170
RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 metadata.xml 170
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}
}