diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-biology/seqan/seqan-1.4.2-r1.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-biology/seqan/seqan-1.4.2-r1.ebuild')
-rw-r--r-- | sci-biology/seqan/seqan-1.4.2-r1.ebuild | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/sci-biology/seqan/seqan-1.4.2-r1.ebuild b/sci-biology/seqan/seqan-1.4.2-r1.ebuild new file mode 100644 index 000000000000..5fd8f1ae8a14 --- /dev/null +++ b/sci-biology/seqan/seqan-1.4.2-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils python-any-r1 + +DESCRIPTION="C++ Sequence Analysis Library" +HOMEPAGE="http://www.seqan.de/" +SRC_URI="http://packages.${PN}.de/${PN}-src/${PN}-src-${PV}.tar.gz" + +SLOT="$(get_version_component_range 1-2)" +LICENSE="BSD GPL-3" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" +IUSE="cpu_flags_x86_sse4_1 test" +REQUIRED_USE="cpu_flags_x86_sse4_1" + +RDEPEND=" + app-arch/bzip2 + sys-libs/zlib" +DEPEND=" + ${RDEPEND} + test? ( + $(python_gen_any_dep 'dev-python/nose[${PYTHON_USEDEP}]') + ${PYTHON_DEPS} + )" + +PATCHES=( + "${FILESDIR}/${P}-shared.patch" + "${FILESDIR}/${P}-include.patch" + "${FILESDIR}/${P}-buildsystem.patch" +) + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +src_prepare() { + # pkg-config file, taken from seqan 2.1 + cp "${FILESDIR}"/${PN}.pc.in ${PN}-${SLOT}.pc || die + sed -e "s#@CMAKE_INSTALL_PREFIX@#${EPREFIX}/usr#" \ + -e "s#includedir=\${prefix}/include#includedir=\${prefix}/include/${PN}-${SLOT}#" \ + -e "s#@CMAKE_PROJECT_NAME@#${PN}#" \ + -e "s#@SEQAN_VERSION_STRING@#${PV}#" \ + -i ${PN}-${SLOT}.pc || die + + rm -f util/cmake/FindZLIB.cmake || die + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DBoost_NO_BOOST_CMAKE=ON + -DSEQAN_BUILD_SYSTEM=SEQAN_RELEASE_LIBRARY + -DSEQAN_NO_DOX=ON + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + # SLOT header such that different seqan versions can be used in parallel + mkdir "${ED}"/usr/include/${PN}-${SLOT} || die + mv "${ED}"/usr/include/{${PN},${PN}-${SLOT}/} || die + + # pkg-config file + insinto /usr/share/pkgconfig/ + doins ${PN}-${SLOT}.pc +} + +pkg_postinst() { + einfo "${CATEGORY}/${PF} is only intended as support library for older" + einfo "bioinformatics tools relying on the SeqAn 1.* API. Please develop" + einfo "any new software against the latest SeqAn release and not this one." +} |