1 |
commit: ff56baf97e8c8a3551b3a1875d3d480c56782331 |
2 |
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Thu Jul 22 08:12:11 2021 +0000 |
4 |
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
5 |
CommitDate: Thu Jul 22 08:27:39 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ff56baf9 |
7 |
|
8 |
sci-biology/cmdock: revbump (new eclass) |
9 |
|
10 |
Also includes a hack to install both sphinx and doxygen docs. |
11 |
pkgcheck isn't very happy about it, but who cares. |
12 |
|
13 |
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> |
14 |
|
15 |
sci-biology/cmdock/cmdock-0.1.3-r1.ebuild | 98 +++++++++++++++++++++++++++++++ |
16 |
sci-biology/cmdock/metadata.xml | 5 +- |
17 |
2 files changed, 102 insertions(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/sci-biology/cmdock/cmdock-0.1.3-r1.ebuild b/sci-biology/cmdock/cmdock-0.1.3-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 000000000..099977f0a |
22 |
--- /dev/null |
23 |
+++ b/sci-biology/cmdock/cmdock-0.1.3-r1.ebuild |
24 |
@@ -0,0 +1,98 @@ |
25 |
+# Copyright 2021 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=8 |
29 |
+ |
30 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
31 |
+ |
32 |
+BOINC_APP_OPTIONAL="true" |
33 |
+ |
34 |
+DOCS_BUILDER="sphinx" |
35 |
+DOCS_AUTODOC=0 |
36 |
+DOCS_DIR="docs" |
37 |
+ |
38 |
+inherit python-any-r1 boinc-app docs meson |
39 |
+ |
40 |
+DESCRIPTION="Program for docking ligands to proteins and nucleic acids" |
41 |
+HOMEPAGE="https://gitlab.com/Jukic/cmdock https://www.rxdock.org" |
42 |
+SRC_URI="https://gitlab.com/Jukic/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.gz" |
43 |
+S="${WORKDIR}/${PN}-v${PV}" |
44 |
+ |
45 |
+LICENSE="LGPL-3" |
46 |
+SLOT="0/${PV}" |
47 |
+KEYWORDS="~amd64" |
48 |
+IUSE="apidoc boinc" |
49 |
+REQUIRED_USE="apidoc? ( doc )" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ dev-lang/perl |
53 |
+ boinc? ( sci-misc/boinc-wrapper ) |
54 |
+" |
55 |
+BDEPEND=" |
56 |
+ dev-cpp/eigen:3 |
57 |
+ dev-cpp/indicators |
58 |
+ >=dev-cpp/pcg-cpp-0.98.1_p20210406-r1 |
59 |
+ dev-libs/cxxopts |
60 |
+ apidoc? ( app-doc/doxygen ) |
61 |
+" |
62 |
+ |
63 |
+DOCS=( INSTALL.md README.md ) |
64 |
+ |
65 |
+BOINC_MASTER_URL="https://www.sidock.si/sidock/" |
66 |
+BOINC_INVITATION_CODE="Crunch_4Science" |
67 |
+BOINC_APP_HELPTEXT=\ |
68 |
+"The easiest way to do something useful with this application |
69 |
+is to attach it to SiDock@home BOINC project." |
70 |
+ |
71 |
+foreach_wrapper_job() { |
72 |
+ sed -i "$1" \ |
73 |
+ -e "s:@PREFIX@:${EPREFIX}/opt/${P}:g" || die |
74 |
+} |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ default |
78 |
+ rm -r include/indicators || die |
79 |
+} |
80 |
+ |
81 |
+src_configure() { |
82 |
+ # very weird directory layout |
83 |
+ local emesonargs=( |
84 |
+ --prefix="${EPREFIX}/opt/${P}" |
85 |
+ ) |
86 |
+ meson_src_configure |
87 |
+} |
88 |
+ |
89 |
+src_compile() { |
90 |
+ meson_src_compile |
91 |
+ |
92 |
+ # subshell prevents from overriding global |
93 |
+ # DOCS_BUILDER and DOCS_OUTDIR |
94 |
+ use apidoc && ( |
95 |
+ DOCS_BUILDER="doxygen" |
96 |
+ DOCS_OUTDIR="${S}/_build/html/api" |
97 |
+ docs_compile |
98 |
+ ) |
99 |
+ docs_compile |
100 |
+} |
101 |
+ |
102 |
+src_install() { |
103 |
+ meson_src_install |
104 |
+ |
105 |
+ if use boinc; then |
106 |
+ doappinfo "${FILESDIR}"/app_info_${PV}.xml |
107 |
+ dowrapper ${PN}-boinc-zcp |
108 |
+ |
109 |
+ # install a blank file |
110 |
+ insinto $(get_project_root) |
111 |
+ insopts --owner boinc --group boinc |
112 |
+ : newins - docking_out.sd |
113 |
+ fi |
114 |
+} |
115 |
+ |
116 |
+pkg_postinst() { |
117 |
+ use boinc && boinc-app_pkg_postinst |
118 |
+} |
119 |
+ |
120 |
+pkg_postrm() { |
121 |
+ use boinc && boinc-app_pkg_postrm |
122 |
+} |
123 |
|
124 |
diff --git a/sci-biology/cmdock/metadata.xml b/sci-biology/cmdock/metadata.xml |
125 |
index f0cb44b3d..beddf8090 100644 |
126 |
--- a/sci-biology/cmdock/metadata.xml |
127 |
+++ b/sci-biology/cmdock/metadata.xml |
128 |
@@ -4,13 +4,16 @@ |
129 |
<upstream> |
130 |
<remote-id type="gitlab">Jukic/cmdock</remote-id> |
131 |
<bugs-to>https://gitlab.com/Jukic/cmdock/-/issues</bugs-to> |
132 |
- <doc>https://www.rxdock.org/api-documentation/devel/html</doc> |
133 |
+ <doc>https://www.rxdock.org/documentation/devel/html</doc> |
134 |
</upstream> |
135 |
<maintainer type="person"> |
136 |
<email>cyber+gentoo@×××××.in</email> |
137 |
<name>Anna</name> |
138 |
</maintainer> |
139 |
<use> |
140 |
+ <flag name="apidoc"> |
141 |
+ Build API documentation using <pkg>app-doc/doxygen</pkg> |
142 |
+ </flag> |
143 |
<flag name="boinc"> |
144 |
Use CmDock with SiDock@home BOINC project |
145 |
</flag> |