diff options
author | Justin Lecher <jlec@gentoo.org> | 2011-06-24 14:14:45 +0200 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2011-06-24 14:14:45 +0200 |
commit | ecf10e17348b359ee0f56d32b91411e5c94e3e8c (patch) | |
tree | c493ff6f6a385081f12360acb3e911965412dcc1 /sci-libs/cgnslib/cgnslib-2.5.4.ebuild | |
parent | Sort inherit and/or USE (diff) | |
download | sci-ecf10e17348b359ee0f56d32b91411e5c94e3e8c.tar.gz sci-ecf10e17348b359ee0f56d32b91411e5c94e3e8c.tar.bz2 sci-ecf10e17348b359ee0f56d32b91411e5c94e3e8c.zip |
Streamlined fortran-2 eclass usage
(Portage version: 2.2.0_alpha41/git/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 70EB7916)
Diffstat (limited to 'sci-libs/cgnslib/cgnslib-2.5.4.ebuild')
-rw-r--r-- | sci-libs/cgnslib/cgnslib-2.5.4.ebuild | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sci-libs/cgnslib/cgnslib-2.5.4.ebuild b/sci-libs/cgnslib/cgnslib-2.5.4.ebuild index 1ce6e284a..ce5ae6792 100644 --- a/sci-libs/cgnslib/cgnslib-2.5.4.ebuild +++ b/sci-libs/cgnslib/cgnslib-2.5.4.ebuild @@ -19,9 +19,10 @@ KEYWORDS="~amd64 ~x86" IUSE="fortran hdf5 szip zlib" DEPEND=" + fortran? ( virtual/fortran ) hdf5? ( >=sci-libs/hdf5-1.8 ) - zlib? ( sys-libs/zlib ) - szip? ( sci-libs/szip )" + szip? ( sci-libs/szip ) + zlib? ( sys-libs/zlib )" RDEPEND="${DEPEND}" S="${WORKDIR}"/${MY_S} @@ -38,7 +39,7 @@ src_prepare() { src_configure() { local myconf="--enable-gcc --enable-lfs --enable-shared=all --enable-64bit" - tc-export CC + tc-export CC FC econf \ ${myconf} \ @@ -50,5 +51,7 @@ src_configure() { src_install() { emake DESTDIR="${D}" install || die "install failed" - use hdf5 && fperms 755 /usr/bin/{hdf2adf,adf2hdf} + use hdf5 && \ + fperms 755 /usr/bin/{hdf2adf,adf2hdf} || \ + rm -f "${D}"/usr/bin/{hdf2adf,adf2hdf} } |