mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
sci-biology/cmdock: drop 0.1.4-r2
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
1 parent
57b2714ea6
commit
5921ae942a
2 files changed
-110
No files matched your search
@@ -1,2 +1 @@
|
||||
DIST cmdock-v0.1.4.tar.bz2 14095825 BLAKE2B 80d5d86dc11e842689255d2b673545436404fb92815bb33b5ff15eba0cd3e8970a750dfeb657d018ef31024a2ecf591bcb5c6c1f427be1d0c86a0cfc017c8aa0 SHA512 d0d9a96ef0fad8cd4b320a2339a1889e481a825c5712259e04c9e91b34de597def3100c3c9f71fa63f3eef43892a17c0114d4cc93e99424bcdcc1fc97c25f51e
|
||||
DIST cmdock-v0.2.0.tar.bz2 14155812 BLAKE2B daf2f1ac137761bf24b2295dd025e81b29eefae23b5b33c7319f87cf6ea938bcb2ce619229d84dd2af9f31785b63bab4dda95bba3e7cd4de122f94f953913694 SHA512 67eda7e712650641219d7d4d4f9c455923bc6241aa687c5b3f489e251b9e838c3bcdcc7184540ab28f96ab8f573320599669e4b52989ce33a015bceec89717c5
|
||||
@@ -1,109 +0,0 @@
|
||||
# Copyright 2021-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
BOINC_APP_OPTIONAL="true"
|
||||
DOCS_BUILDER="sphinx"
|
||||
DOCS_AUTODOC=0
|
||||
inherit python-single-r1 boinc-app docs flag-o-matic meson optfeature
|
||||
|
||||
DESCRIPTION="Program for docking ligands to proteins and nucleic acids"
|
||||
HOMEPAGE="https://gitlab.com/Jukic/cmdock"
|
||||
SRC_URI="https://gitlab.com/Jukic/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2"
|
||||
S="${WORKDIR}/${PN}-v${PV}"
|
||||
INSTALL_PREFIX="${EPREFIX}/opt/${P}"
|
||||
|
||||
LICENSE="LGPL-3 ZLIB"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="apidoc boinc cpu_flags_x86_sse2"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
dev-lang/perl:*
|
||||
boinc? ( sci-misc/boinc-wrapper )
|
||||
"
|
||||
DEPEND="
|
||||
dev-cpp/eigen:3
|
||||
dev-cpp/indicators
|
||||
>=dev-cpp/pcg-cpp-0.98.1_p20210406-r1
|
||||
dev-libs/cxxopts
|
||||
"
|
||||
BDEPEND="
|
||||
apidoc? (
|
||||
app-doc/doxygen
|
||||
dev-texlive/texlive-fontutils
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/cmdock-0.1.4-fix-detection.patch )
|
||||
|
||||
DOCS=( INSTALL.md README.md )
|
||||
|
||||
BOINC_MASTER_URL="https://www.sidock.si/sidock/"
|
||||
BOINC_INVITATION_CODE="Crunch_4Science"
|
||||
BOINC_APP_HELPTEXT=\
|
||||
"The easiest way to do something useful with this application
|
||||
is to attach it to SiDock@home BOINC project."
|
||||
|
||||
foreach_wrapper_job() {
|
||||
sed -e "s:@PREFIX@:${INSTALL_PREFIX}:g" -i "${1}" || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
python_fix_shebang "${S}"/bin
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# very weird directory layout
|
||||
local emesonargs=(
|
||||
--prefix="${EPREFIX}/opt/${P}"
|
||||
)
|
||||
meson_src_configure
|
||||
|
||||
use cpu_flags_x86_sse2 || append-cppflags "-DBUNDLE_NO_SSE"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
meson_src_compile
|
||||
|
||||
if use doc; then
|
||||
DOCS_DIR="docs"
|
||||
sphinx_compile
|
||||
fi
|
||||
|
||||
if use apidoc; then
|
||||
DOCS_BUILDER="doxygen"
|
||||
DOCS_DIR="docs"
|
||||
doxygen_compile
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
python_optimize "${ED}"/opt/${P}/
|
||||
|
||||
if use boinc; then
|
||||
doappinfo "${FILESDIR}"/app_info_${PV}.xml
|
||||
dowrapper ${PN}-boinc-zcp
|
||||
|
||||
# install a blank file
|
||||
touch "${T}"/docking_out || die
|
||||
insinto $(get_project_root)
|
||||
insopts -m 0644 --owner root --group boinc
|
||||
doins "${T}"/docking_out
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "sdtether.py and sdrmsd.py scripts" "dev-python/numpy sci-chemistry/openbabel[python]"
|
||||
use boinc && boinc-app_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use boinc && boinc-app_pkg_postrm
|
||||
}
|
||||
Reference in new issue
Block a user