You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-libs/cbflib/cbflib-0.9.3.3.ebuild

58 lines
1.3 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/cbflib/cbflib-0.9.3.3.ebuild,v 1.1 2013/12/06 12:25:04 jlec Exp $
EAPI=5
inherit cmake-utils eutils flag-o-matic fortran-2 toolchain-funcs
MY_P1="CBFlib-${PV}"
#MY_P2="CBFlib_${PV}"
MY_P2="CBFlib_0.9.3"
DESCRIPTION="Library providing a simple mechanism for accessing CBF files and imgCIF files"
HOMEPAGE="http://www.bernstein-plus-sons.com/software/CBF/"
BASE_TEST_URI="http://arcib.dowling.edu/software/CBFlib/downloads/version_${PV}/"
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"
S=${WORKDIR}/${MY_P1}
RDEPEND="sci-libs/hdf5:="
DEPEND="${RDEPEND}"
RESTRICT="test"
PATCHES=(
"${FILESDIR}"/${P}-unbundle.patch
)
src_prepare(){
rm -rf Py* drel* dRel* ply* || die
append-fflags -fno-range-check
tc-export CC CXX AR RANLIB
cmake-utils_src_prepare
}
src_configure() {
local mycmakeargs=(
-DUNPACKED_DIRECTORY="${S}"
)
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
dosym ${PN} /usr/include/cbf
}