diff options
author | Justin Lecher <jlec@gentoo.org> | 2012-12-06 08:27:07 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2012-12-06 08:27:07 +0000 |
commit | a98b3f81097aa5495d50cea6a884acf546c63aab (patch) | |
tree | b77052d6b9d28bc51384abb41de75aff6f9e5503 /sci-libs | |
parent | Sort this eapi case stuff. (diff) | |
download | gentoo-2-a98b3f81097aa5495d50cea6a884acf546c63aab.tar.gz gentoo-2-a98b3f81097aa5495d50cea6a884acf546c63aab.tar.bz2 gentoo-2-a98b3f81097aa5495d50cea6a884acf546c63aab.zip |
sci-libs/cbflib: Resurrect old version
(Portage version: 2.2.0_alpha144/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/cbflib/ChangeLog | 5 | ||||
-rw-r--r-- | sci-libs/cbflib/cbflib-0.9.2.2.ebuild | 71 |
2 files changed, 75 insertions, 1 deletions
diff --git a/sci-libs/cbflib/ChangeLog b/sci-libs/cbflib/ChangeLog index 66114f7ad082..68e035ce37a5 100644 --- a/sci-libs/cbflib/ChangeLog +++ b/sci-libs/cbflib/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for sci-libs/cbflib # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/cbflib/ChangeLog,v 1.32 2012/12/04 11:49:31 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/cbflib/ChangeLog,v 1.33 2012/12/06 08:27:07 jlec Exp $ + + 06 Dec 2012; Justin Lecher <jlec@gentoo.org> +cbflib-0.9.2.2.ebuild: + Resurrect old version 04 Dec 2012; Justin Lecher <jlec@gentoo.org> -cbflib-0.9.0-r3.ebuild, -cbflib-0.9.2.3.ebuild: diff --git a/sci-libs/cbflib/cbflib-0.9.2.2.ebuild b/sci-libs/cbflib/cbflib-0.9.2.2.ebuild new file mode 100644 index 000000000000..65fd2136e17a --- /dev/null +++ b/sci-libs/cbflib/cbflib-0.9.2.2.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/cbflib/cbflib-0.9.2.2.ebuild,v 1.5 2012/12/06 08:27:07 jlec Exp $ + +EAPI=4 + +inherit eutils flag-o-matic fortran-2 toolchain-funcs + +MY_P1="CBFlib-${PV}" +#MY_P2="CBFlib_${PV}" +MY_P2="CBFlib_0.9.2" + +DESCRIPTION="Library providing a simple mechanism for accessing CBF files and imgCIF files" +HOMEPAGE="http://www.bernstein-plus-sons.com/software/CBF/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P1}.tar.gz + test? ( + mirror://sourceforge/${PN}/${MY_P2}_Data_Files_Input.tar.gz + mirror://sourceforge/${PN}/${MY_P2}_Data_Files_Output.tar.gz + )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="doc test" + +DEPEND="virtual/fortran" +RDEPEND="${DEPEND}" +#test? ( sys-process/time )" + +S=${WORKDIR}/${MY_P1} + +src_prepare(){ + rm -rf Py* drel* dRel* ply* + epatch "${FILESDIR}"/${PV}-Makefile.patch + cp Makefile_LINUX_gcc42 Makefile + + append-fflags -fno-range-check + append-cflags -D_USE_XOPEN_EXTENDED -DCBF_DONT_USE_LONG_LONG + + sed \ + -e "s|^CC.*$|CC = $(tc-getCC)|" \ + -e "s|^C++.*$|C++ = $(tc-getCXX)|" \ + -e "s|C++|CXX|g" \ + -e "s|^CFLAGS.*$|CFLAGS = ${CFLAGS}|" \ + -e "s|^F90C.*$|F90C = $(tc-getFC)|" \ + -e "s|^F90FLAGS.*$|F90FLAGS = ${FFLAGS}|" \ + -e "s|^SOLDFLAGS.*$|SOLDFLAGS = -shared ${LDFLAGS}|g" \ + -e "s| /bin| ${EPREFIX}/bin|g" \ + -e "s|/usr|${EPREFIX}/usr|g" \ + -i Makefile || die +} + +src_compile() { + emake -j1 shared +} + +src_test(){ + emake -j1 basic +} + +src_install() { + insinto /usr/include/${PN} + doins include/*.h + + dolib.so solib/lib* + + dodoc README + if use doc; then + dohtml -r README.html html_graphics doc + fi +} |