1 |
commit: 01ff3a2d6b36716aa83e749acfeb4cc09e076ba8 |
2 |
Author: Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
3 |
AuthorDate: Wed Jul 2 22:40:49 2014 +0000 |
4 |
Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
5 |
CommitDate: Wed Jul 2 22:40:49 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=01ff3a2d |
7 |
|
8 |
sci-biology/tablet-bin: version bump; updated the license |
9 |
|
10 |
Package-Manager: portage-2.2.7 |
11 |
|
12 |
--- |
13 |
sci-biology/tablet-bin/ChangeLog | 6 ++ |
14 |
.../tablet-bin/tablet-bin-1.14.04.10.ebuild | 97 ++++++++++++++++++++++ |
15 |
2 files changed, 103 insertions(+) |
16 |
|
17 |
diff --git a/sci-biology/tablet-bin/ChangeLog b/sci-biology/tablet-bin/ChangeLog |
18 |
index d48473a..8b38781 100644 |
19 |
--- a/sci-biology/tablet-bin/ChangeLog |
20 |
+++ b/sci-biology/tablet-bin/ChangeLog |
21 |
@@ -2,6 +2,12 @@ |
22 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
23 |
# $Header: $ |
24 |
|
25 |
+*tablet-bin-1.14.04.10 (02 Jul 2014) |
26 |
+ |
27 |
+ 02 Jul 2014; Martin Mokrejs <mmokrejs@×××××××××××××××.cz> |
28 |
+ +tablet-bin-1.14.04.10.ebuild: |
29 |
+ sci-biology/tablet-bin: version bump; updated the license |
30 |
+ |
31 |
*tablet-bin-1.13.12.17 (20 Jan 2014) |
32 |
|
33 |
20 Jan 2014; Martin Mokrejs <mmokrejs@×××××××××××××××.cz> |
34 |
|
35 |
diff --git a/sci-biology/tablet-bin/tablet-bin-1.14.04.10.ebuild b/sci-biology/tablet-bin/tablet-bin-1.14.04.10.ebuild |
36 |
new file mode 100644 |
37 |
index 0000000..1a0fdf1 |
38 |
--- /dev/null |
39 |
+++ b/sci-biology/tablet-bin/tablet-bin-1.14.04.10.ebuild |
40 |
@@ -0,0 +1,97 @@ |
41 |
+# Copyright 1999-2014 Gentoo Foundation |
42 |
+# Distributed under the terms of the GNU General Public License v2 |
43 |
+# $Header: $ |
44 |
+ |
45 |
+EAPI=5 |
46 |
+ |
47 |
+PYTHON_COMPAT=( python{2_6,2_7} ) |
48 |
+ |
49 |
+inherit java-pkg-2 python-r1 |
50 |
+ |
51 |
+DESCRIPTION="Viewer of next generation sequence assemblies and alignments." |
52 |
+HOMEPAGE="http://bioinf.scri.ac.uk/tablet/" |
53 |
+SRC_URI=" |
54 |
+ x86? ( http://bioinf.scri.ac.uk/tablet/installers/tablet_linux_x86_$(replace_all_version_separators _).sh -> ${P}.sh ) |
55 |
+ amd64? ( http://bioinf.scri.ac.uk/tablet/installers/tablet_linux_x64_$(replace_all_version_separators _).sh -> ${P}.sh ) |
56 |
+ http://bioinf.scri.ac.uk/tablet/additional/coveragestats.py" |
57 |
+ |
58 |
+# Upstream says regarding source code unavailability: |
59 |
+# Tablet uses a modified version of the BSD License which has been edited to |
60 |
+# remove references to distribution and use in source forms. This means that |
61 |
+# we are happy for you to distribute and use Tablet however you please, but we |
62 |
+# do not (yet) want to make the source code publicly available. |
63 |
+ |
64 |
+# The licence file itself is in the installer, and ends up on disk after |
65 |
+# installation at /opt/Tablet/docs/tablet.html |
66 |
+# The original BSD licence was modified to remove references to distribution |
67 |
+# and use in source forms, because we cannot make the source code available |
68 |
+# for Tablet. |
69 |
+ |
70 |
+LICENSE="Tablet" |
71 |
+SLOT="0" |
72 |
+KEYWORDS="~amd64 ~x86" |
73 |
+IUSE="" |
74 |
+ |
75 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
76 |
+ |
77 |
+DEPEND="${PYTHON_DEPS}" |
78 |
+RDEPEND="${DEPEND} |
79 |
+ virtual/jre" |
80 |
+ |
81 |
+S="${WORKDIR}" |
82 |
+ |
83 |
+src_unpack() { |
84 |
+ local file |
85 |
+ for file in ${A}; do |
86 |
+ cp "${DISTDIR}"/${file} "${WORKDIR}" || die |
87 |
+ done |
88 |
+} |
89 |
+ |
90 |
+src_install() { |
91 |
+ # In theory it seems this binary package could be installed through ant |
92 |
+ # instead of the install4j package which is not easy to be forced |
93 |
+ # non-interactive. The below approach via install4j is not ideal but works. |
94 |
+ sed "s#\"\${D}\"#\"${D}\"#g" "${FILESDIR}"/response.varfile > "${WORKDIR}"/response.varfile || die "sed failed" |
95 |
+ |
96 |
+ # the intallation script somehow does not pickup |
97 |
+ # -varfile="${DISTDIR}"/response.varfile from the commandline and therefore |
98 |
+ # we place the file rather directly into the place where it should reside. |
99 |
+ # In the file you can read details how the variables were mangled. For |
100 |
+ # example, the trick with sys.symlinkDir in the response.varfile is to |
101 |
+ # disable the installation process to symlink from /usr/local/bin/table to |
102 |
+ # /opt/Tablet/tablet. That was logged in that file with the following line: |
103 |
+ # |
104 |
+ # /var/tmp/portage/sci-biology/tablet-bin-1.11.02.18/image/opt/Tablet/.install4j/installation.log: |
105 |
+ # Variable changed: sys.symlinkDir=/usr/local/bin[class java.lang.String] |
106 |
+ # |
107 |
+ # The file is then left on the installed system in "${D}"/opt/Tablet/.install4j/response.varfile |
108 |
+ dodir /opt/Tablet/.install4j |
109 |
+ cat "${WORKDIR}"/response.varfile > "${ED}"/opt/Tablet/.install4j/response.varfile || die |
110 |
+ |
111 |
+ # make sure we force java to point a to $HOME which is inside our sanbox |
112 |
+ # directory area. We force -Duser.home . It seems also -Dinstall4j.userHome |
113 |
+ # could be done based on the figure shown at http://resources.ej-technologies.com/install4j/help/doc/ |
114 |
+ sed \ |
115 |
+ -e "s#/bin/java\" -Dinstall4j.jvmDir#/bin/java\" -Duser.home="${TMPDIR}" -Dinstall4j.jvmDir#" \ |
116 |
+ -i "${WORKDIR}"/${P}.sh || die |
117 |
+ sh \ |
118 |
+ "${WORKDIR}"/${P}.sh \ |
119 |
+ -q -overwrite \ |
120 |
+ -varfile="${DISTDIR}"/response.varfile \ |
121 |
+ --destination="${ED}"/opt/Tablet \ |
122 |
+ -dir "${ED}"/opt/Tablet || die |
123 |
+ |
124 |
+ rm -rf "${ED}"/opt/Tablet/jre || die |
125 |
+ |
126 |
+ # this dies with tablet-bin-1.14.04.10 with |
127 |
+ # * python2_7: running python_doscript /mnt/1TB/var/tmp/portage/sci-biology/tablet-bin-1.14.04.10/work/coveragestats.py |
128 |
+ # * The file has incompatible shebang: |
129 |
+ # * file: /usr/lib/python-exec/python2.7/coveragestats.py |
130 |
+ # * current shebang: #!/usr/bin/env python |
131 |
+ # * requested impl: python2.7 |
132 |
+ # |
133 |
+ # python_foreach_impl python_doscript "${WORKDIR}"/coveragestats.py |
134 |
+ |
135 |
+ echo "PATH=${EPREFIX}/opt/Tablet" > 99Tablet |
136 |
+ doenvd 99Tablet || die |
137 |
+} |