1 |
commit: bec2b834dd663f30d9bc508ee6043959b50fccfb |
2 |
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Wed Jun 22 19:31:16 2022 +0000 |
4 |
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
5 |
CommitDate: Sat Jun 25 17:42:15 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bec2b834 |
7 |
|
8 |
sci-biology/cmdock: boinc fix |
9 |
|
10 |
See https://www.sidock.si/sidock/forum_thread.php?id=125&postid=1427 |
11 |
|
12 |
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> |
13 |
|
14 |
...dock-0.1.4-r1.ebuild => cmdock-0.1.4-r2.ebuild} | 28 +++++++++++++++------- |
15 |
1 file changed, 20 insertions(+), 8 deletions(-) |
16 |
|
17 |
diff --git a/sci-biology/cmdock/cmdock-0.1.4-r1.ebuild b/sci-biology/cmdock/cmdock-0.1.4-r2.ebuild |
18 |
similarity index 74% |
19 |
rename from sci-biology/cmdock/cmdock-0.1.4-r1.ebuild |
20 |
rename to sci-biology/cmdock/cmdock-0.1.4-r2.ebuild |
21 |
index cf79531ec..422d56da2 100644 |
22 |
--- a/sci-biology/cmdock/cmdock-0.1.4-r1.ebuild |
23 |
+++ b/sci-biology/cmdock/cmdock-0.1.4-r2.ebuild |
24 |
@@ -3,7 +3,7 @@ |
25 |
|
26 |
EAPI=8 |
27 |
|
28 |
-PYTHON_COMPAT=( python3_{8..11} pypy3 ) |
29 |
+PYTHON_COMPAT=( python3_{8..11} ) |
30 |
|
31 |
BOINC_APP_OPTIONAL="true" |
32 |
|
33 |
@@ -11,27 +11,32 @@ DOCS_BUILDER="sphinx" |
34 |
DOCS_AUTODOC=0 |
35 |
DOCS_DIR="docs" |
36 |
|
37 |
-inherit python-any-r1 boinc-app docs flag-o-matic meson |
38 |
+inherit python-single-r1 boinc-app docs flag-o-matic meson optfeature |
39 |
|
40 |
DESCRIPTION="Program for docking ligands to proteins and nucleic acids" |
41 |
HOMEPAGE="https://gitlab.com/Jukic/cmdock" |
42 |
SRC_URI="https://gitlab.com/Jukic/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz" |
43 |
S="${WORKDIR}/${PN}-v${PV}" |
44 |
+INSTALL_PREFIX="${EPREFIX}/opt/${P}" |
45 |
|
46 |
LICENSE="LGPL-3 ZLIB" |
47 |
SLOT="0/${PV}" |
48 |
KEYWORDS="~amd64" |
49 |
IUSE="apidoc boinc cpu_flags_x86_sse2" |
50 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
51 |
|
52 |
RDEPEND=" |
53 |
- dev-lang/perl |
54 |
+ ${PYTHON_DEPS} |
55 |
+ dev-lang/perl:* |
56 |
boinc? ( sci-misc/boinc-wrapper ) |
57 |
" |
58 |
-BDEPEND=" |
59 |
+DEPEND=" |
60 |
dev-cpp/eigen:3 |
61 |
dev-cpp/indicators |
62 |
>=dev-cpp/pcg-cpp-0.98.1_p20210406-r1 |
63 |
dev-libs/cxxopts |
64 |
+" |
65 |
+BDEPEND=" |
66 |
doc? ( app-doc/doxygen ) |
67 |
" |
68 |
|
69 |
@@ -46,8 +51,12 @@ BOINC_APP_HELPTEXT=\ |
70 |
is to attach it to SiDock@home BOINC project." |
71 |
|
72 |
foreach_wrapper_job() { |
73 |
- sed -i "$1" \ |
74 |
- -e "s:@PREFIX@:${EPREFIX}/opt/${P}:g" || die |
75 |
+ sed -e "s:@PREFIX@:${INSTALL_PREFIX}:g" -i "${1}" || die |
76 |
+} |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ default |
80 |
+ python_fix_shebang "${S}"/bin |
81 |
} |
82 |
|
83 |
src_configure() { |
84 |
@@ -75,19 +84,22 @@ src_compile() { |
85 |
|
86 |
src_install() { |
87 |
meson_src_install |
88 |
+ python_optimize "${ED}"/opt/${P}/ |
89 |
|
90 |
if use boinc; then |
91 |
doappinfo "${FILESDIR}"/app_info_${PV}.xml |
92 |
dowrapper ${PN}-boinc-zcp |
93 |
|
94 |
# install a blank file |
95 |
+ touch "${T}"/docking_out || die |
96 |
insinto $(get_project_root) |
97 |
- insopts --owner boinc --group boinc |
98 |
- : newins - docking_out.sd |
99 |
+ insopts -m 0644 --owner boinc --group boinc |
100 |
+ doins "${T}"/docking_out |
101 |
fi |
102 |
} |
103 |
|
104 |
pkg_postinst() { |
105 |
+ optfeature "sdtether.py and sdrmsd.py scripts" "dev-python/numpy sci-chemistry/openbabel[python]" |
106 |
use boinc && boinc-app_pkg_postinst |
107 |
} |