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.
49 lines
951 B
49 lines
951 B
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
12 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
12 years ago
|
|
||
4 years ago
|
inherit flag-o-matic toolchain-funcs
|
||
12 years ago
|
|
||
4 years ago
|
MY_P="${PN}_$(ver_rs 1- _)"
|
||
12 years ago
|
|
||
|
DESCRIPTION="Program for drug discovery, molecular docking and virtual screening"
|
||
|
HOMEPAGE="http://vina.scripps.edu/"
|
||
|
SRC_URI="http://vina.scripps.edu/download/${MY_P}.tgz"
|
||
|
|
||
4 years ago
|
LICENSE="Apache-2.0"
|
||
12 years ago
|
SLOT="0"
|
||
11 years ago
|
KEYWORDS="amd64 x86"
|
||
12 years ago
|
IUSE="debug"
|
||
|
|
||
3 years ago
|
RDEPEND="dev-libs/boost:=[threads(+)]"
|
||
12 years ago
|
DEPEND="${RDEPEND}"
|
||
|
|
||
|
S="${WORKDIR}"/${MY_P}/build/linux/release
|
||
|
|
||
4 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${PV}-gentoo.patch
|
||
|
"${FILESDIR}"/${P}-boost-filesystem.patch
|
||
|
"${FILESDIR}"/${P}-missing-debug-decl.patch
|
||
|
)
|
||
|
|
||
12 years ago
|
src_prepare() {
|
||
11 years ago
|
cd "${WORKDIR}"/${MY_P} || die
|
||
4 years ago
|
default
|
||
12 years ago
|
}
|
||
|
|
||
4 years ago
|
src_configure() {
|
||
3 years ago
|
append-cxxflags -DBOOST_FILESYSTEM_VERSION=3 -std=c++11
|
||
4 years ago
|
}
|
||
12 years ago
|
|
||
4 years ago
|
src_compile() {
|
||
12 years ago
|
emake \
|
||
|
BASE="${EPREFIX}"/usr/ \
|
||
|
GPP="$(tc-getCXX)" \
|
||
3 years ago
|
C_OPTIONS=$(usex debug '' -DNDEBUG)
|
||
12 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dobin vina{,_split}
|
||
|
}
|