1 |
commit: ecd3b3602cb2f9728ea08d2cd72c3d37f8373f93 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Mon Feb 1 05:07:34 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Mon Feb 1 05:07:34 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=ecd3b360 |
7 |
|
8 |
sci-biology/tablet-bin: drop pack, py2 only |
9 |
|
10 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
11 |
|
12 |
sci-biology/tablet-bin/files/response.varfile | 11 --- |
13 |
sci-biology/tablet-bin/metadata.xml | 12 --- |
14 |
.../tablet-bin/tablet-bin-1.20.12.24.ebuild | 105 --------------------- |
15 |
3 files changed, 128 deletions(-) |
16 |
|
17 |
diff --git a/sci-biology/tablet-bin/files/response.varfile b/sci-biology/tablet-bin/files/response.varfile |
18 |
deleted file mode 100644 |
19 |
index cfa2e6808..000000000 |
20 |
--- a/sci-biology/tablet-bin/files/response.varfile |
21 |
+++ /dev/null |
22 |
@@ -1,11 +0,0 @@ |
23 |
-#install4j response file for Tablet x.xx.xx.xx |
24 |
-#Mon Jan 24 11:35:29 GMT 2011 |
25 |
-executeLauncherAction$Boolean=false |
26 |
-sys.programGroupDisabled$Boolean=true |
27 |
-# somehow, this happens: ln -s /scratch/var/tmp/portage/sci-biology/tablet-bin-1.11.02.18/image/opt/Tablet/tablet /usr/local/bin/tablet |
28 |
-# # that happens because /scratch/var/tmp/portage/sci-biology/tablet-bin-1.11.02.18/image/opt/Tablet/.install4j/response.varfile does not reflect our values |
29 |
-sys.symlinkDir="${D}"usr/bin |
30 |
-#sys.symlinkDir=/scratch/var/tmp/portage/sci-biology/tablet-bin-1.11.02.18/image/usr/bin |
31 |
-sys.languageId=en |
32 |
-sys.userHome="${D}"/../temp |
33 |
-sys.installationDir="${D}"opt/Tablet |
34 |
|
35 |
diff --git a/sci-biology/tablet-bin/metadata.xml b/sci-biology/tablet-bin/metadata.xml |
36 |
deleted file mode 100644 |
37 |
index 138cb7705..000000000 |
38 |
--- a/sci-biology/tablet-bin/metadata.xml |
39 |
+++ /dev/null |
40 |
@@ -1,12 +0,0 @@ |
41 |
-<?xml version="1.0" encoding="UTF-8"?> |
42 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
43 |
-<pkgmetadata> |
44 |
- <maintainer type="person"> |
45 |
- <email>mmokrejs@×××××××××××××××.cz</email> |
46 |
- <name>Martin Mokrejs</name> |
47 |
- </maintainer> |
48 |
- <maintainer type="project"> |
49 |
- <email>sci-biology@g.o</email> |
50 |
- <name>Gentoo Biology Project</name> |
51 |
- </maintainer> |
52 |
-</pkgmetadata> |
53 |
|
54 |
diff --git a/sci-biology/tablet-bin/tablet-bin-1.20.12.24.ebuild b/sci-biology/tablet-bin/tablet-bin-1.20.12.24.ebuild |
55 |
deleted file mode 100644 |
56 |
index 697ae0d36..000000000 |
57 |
--- a/sci-biology/tablet-bin/tablet-bin-1.20.12.24.ebuild |
58 |
+++ /dev/null |
59 |
@@ -1,105 +0,0 @@ |
60 |
-# Copyright 1999-2021 Gentoo Authors |
61 |
-# Distributed under the terms of the GNU General Public License v2 |
62 |
- |
63 |
-EAPI=7 |
64 |
- |
65 |
-PYTHON_COMPAT=( python2_7 ) |
66 |
- |
67 |
-inherit java-pkg-2 python-r1 |
68 |
- |
69 |
-DESCRIPTION="Viewer of next generation sequence assemblies and alignments" |
70 |
-HOMEPAGE="https://ics.hutton.ac.uk/tablet" |
71 |
-SRC_URI=" |
72 |
- x86? ( https://ics.hutton.ac.uk/resources/tablet/installers/tablet_linux_x86_$(ver_rs 0-3 _).sh -> ${P}.sh ) |
73 |
- amd64? ( https://ics.hutton.ac.uk/resources/tablet/installers/tablet_linux_x64_$(ver_rs 0-3 _).sh -> ${P}.sh ) |
74 |
- https://bioinf.hutton.ac.uk/tablet/additional/coveragestats.py" |
75 |
- |
76 |
-LICENSE="BSD-2" |
77 |
-SLOT="0" |
78 |
-KEYWORDS="" |
79 |
- |
80 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
81 |
- |
82 |
-DEPEND="${PYTHON_DEPS} |
83 |
- app-text/dos2unix |
84 |
- >=virtual/jdk-1.8:*" |
85 |
-RDEPEND="${DEPEND} |
86 |
- >=virtual/jre-1.8:*" |
87 |
-# contains bundled sqlite-jdbc-3.8.6.jar, samtools-linux64.jar, picard.jar |
88 |
-# sqlite-jdbc-3.8.6.jar is not dev-db/sqlite:3 and samtools-linux64.jar is not sci-biology/samtools either |
89 |
-# replacing picard.jar with a symlink to picard.jar from sci-biology.picard does not help either |
90 |
- |
91 |
-S="${WORKDIR}" |
92 |
- |
93 |
-src_unpack() { |
94 |
- local file |
95 |
- for file in ${A}; do |
96 |
- cp "${DISTDIR}"/${file} "${WORKDIR}" || die |
97 |
- done |
98 |
-} |
99 |
- |
100 |
-src_install() { |
101 |
- # In theory it seems this binary package could be installed through ant |
102 |
- # instead of the install4j package which is not easy to be forced |
103 |
- # non-interactive. The below approach via install4j is not ideal but works. |
104 |
- sed "s#\"\${D}\"#\"${D}\"#g" "${FILESDIR}"/response.varfile > "${WORKDIR}"/response.varfile || die "sed failed" |
105 |
- |
106 |
- # the intallation script somehow does not pickup |
107 |
- # -varfile="${DISTDIR}"/response.varfile from the commandline and therefore |
108 |
- # we place the file rather directly into the place where it should reside. |
109 |
- # In the file you can read details how the variables were mangled. For |
110 |
- # example, the trick with sys.symlinkDir in the response.varfile is to |
111 |
- # disable the installation process to symlink from /usr/local/bin/table to |
112 |
- # /opt/Tablet/tablet. That was logged in that file with the following line: |
113 |
- # |
114 |
- # /var/tmp/portage/sci-biology/tablet-bin-1.11.02.18/image/opt/Tablet/.install4j/installation.log: |
115 |
- # Variable changed: sys.symlinkDir=/usr/local/bin[class java.lang.String] |
116 |
- # |
117 |
- # The file is then left on the installed system in "${D}"/opt/Tablet/.install4j/response.varfile |
118 |
- dodir /opt/Tablet/.install4j |
119 |
- cat "${WORKDIR}"/response.varfile > "${ED}"/opt/Tablet/.install4j/response.varfile || die |
120 |
- |
121 |
- # make sure we force java to point a to $HOME which is inside our sanbox |
122 |
- # directory area. We force -Duser.home . It seems also -Dinstall4j.userHome |
123 |
- # could be done based on the figure shown at http://resources.ej-technologies.com/install4j/help/doc/ |
124 |
- if [ -z "${EPREFIX}" ]; then |
125 |
- sed \ |
126 |
- -e "s#/bin/java\" -Dinstall4j.jvmDir#/bin/java\" -Duser.home=${TMPDIR} -Dinstall4j.jvmDir -Djava.util.prefs.systemRoot=${TMPDIR}#" -i "${WORKDIR}"/${P}.sh || die |
127 |
- else |
128 |
- sed \ |
129 |
- -e 's#"$app_java_home/bin/java" -Dinstall4j.jvmDir# '"${EPREFIX}""/usr/bin/java -Duser.home=${TMPDIR} -Dinstall4j.jvmDir -Djava.util.prefs.systemRoot=${TMPDIR}#" -i "${WORKDIR}"/${P}.sh || die |
130 |
- fi |
131 |
- sh \ |
132 |
- "${WORKDIR}"/${P}.sh \ |
133 |
- -q -overwrite \ |
134 |
- -varfile="${DISTDIR}"/response.varfile \ |
135 |
- --destination="${ED}"/opt/Tablet \ |
136 |
- -dir "${ED}"/opt/Tablet || die |
137 |
- |
138 |
- rm -rf "${ED}"/opt/Tablet/jre "${ED}"/opt/Tablet/.install4j || die |
139 |
- |
140 |
- # zap bundled jars |
141 |
- # do not zap even picard.jar because tablet does not start then with an error: |
142 |
- # java.lang.NoClassDefFoundError: net/sf/samtools/SAMReadGroupRecord |
143 |
- # not even a symlink to "${EPREFIX}"/usr/share/picard/lib/picard.jar helps |
144 |
- # |
145 |
- # for f in picard.jar; do |
146 |
- # rm -f "${ED}"/opt/Tablet/lib/"$f" || die |
147 |
- # done |
148 |
- |
149 |
- # this dies with tablet-bin-1.14.04.10 with |
150 |
- # * python2_7: running python_doscript /mnt/1TB/var/tmp/portage/sci-biology/tablet-bin-1.14.04.10/work/coveragestats.py |
151 |
- # * The file has incompatible shebang: |
152 |
- # * file: /usr/lib/python-exec/python2.7/coveragestats.py |
153 |
- # * current shebang: #!/usr/bin/env python |
154 |
- # * requested impl: python2.7 |
155 |
- # |
156 |
- # python_foreach_impl python_doscript "${WORKDIR}"/coveragestats.py |
157 |
- dos2unix "${WORKDIR}"/coveragestats.py coveragestats.py || die |
158 |
- insinto /opt/Tablet/utils |
159 |
- doins coveragestats.py |
160 |
- |
161 |
- # do not use 99Tablet to avoid file collision with sci-biology/tablet |
162 |
- echo "PATH=${EPREFIX}/opt/Tablet" > 99Tablet-bin |
163 |
- doenvd 99Tablet-bin |
164 |
-} |