1 |
commit: b1b9d3a6a59a5af4c81e7b74b655d07bc62757e9 |
2 |
Author: Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
3 |
AuthorDate: Fri Mar 28 14:06:16 2014 +0000 |
4 |
Commit: Nicolas Bock <nicolasbock <AT> gmail <DOT> com> |
5 |
CommitDate: Mon Mar 31 15:27:34 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=b1b9d3a6 |
7 |
|
8 |
sci-biology/tablet: skeleton for a new package eventually to replace current tablet-bin package |
9 |
|
10 |
Package-Manager: portage-2.2.7 |
11 |
|
12 |
--- |
13 |
sci-biology/tablet/ChangeLog | 12 ++++ |
14 |
sci-biology/tablet/files/response.varfile | 11 +++ |
15 |
sci-biology/tablet/metadata.xml | 9 +++ |
16 |
sci-biology/tablet/tablet-1.13.12.17.ebuild | 90 +++++++++++++++++++++++++ |
17 |
sci-biology/tablet/tablet-9999.ebuild | 100 ++++++++++++++++++++++++++++ |
18 |
5 files changed, 222 insertions(+) |
19 |
|
20 |
diff --git a/sci-biology/tablet/ChangeLog b/sci-biology/tablet/ChangeLog |
21 |
new file mode 100644 |
22 |
index 0000000..0080ef2 |
23 |
--- /dev/null |
24 |
+++ b/sci-biology/tablet/ChangeLog |
25 |
@@ -0,0 +1,12 @@ |
26 |
+# ChangeLog for sci-biology/tablet |
27 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
+# $Header: $ |
29 |
+ |
30 |
+*tablet-1.13.12.17 (28 Mar 2014) |
31 |
+*tablet-9999 (28 Mar 2014) |
32 |
+ |
33 |
+ 28 Mar 2014; Martin Mokrejs <mmokrejs@×××××××××××××××.cz> |
34 |
+ +files/response.varfile, +metadata.xml, +tablet-1.13.12.17.ebuild, |
35 |
+ +tablet-9999.ebuild: |
36 |
+ sci-biology/tablet: skeleton for a new package eventually to replace current |
37 |
+ tablet-bin package |
38 |
|
39 |
diff --git a/sci-biology/tablet/files/response.varfile b/sci-biology/tablet/files/response.varfile |
40 |
new file mode 100644 |
41 |
index 0000000..cfa2e68 |
42 |
--- /dev/null |
43 |
+++ b/sci-biology/tablet/files/response.varfile |
44 |
@@ -0,0 +1,11 @@ |
45 |
+#install4j response file for Tablet x.xx.xx.xx |
46 |
+#Mon Jan 24 11:35:29 GMT 2011 |
47 |
+executeLauncherAction$Boolean=false |
48 |
+sys.programGroupDisabled$Boolean=true |
49 |
+# 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 |
50 |
+# # 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 |
51 |
+sys.symlinkDir="${D}"usr/bin |
52 |
+#sys.symlinkDir=/scratch/var/tmp/portage/sci-biology/tablet-bin-1.11.02.18/image/usr/bin |
53 |
+sys.languageId=en |
54 |
+sys.userHome="${D}"/../temp |
55 |
+sys.installationDir="${D}"opt/Tablet |
56 |
|
57 |
diff --git a/sci-biology/tablet/metadata.xml b/sci-biology/tablet/metadata.xml |
58 |
new file mode 100644 |
59 |
index 0000000..2bc8930 |
60 |
--- /dev/null |
61 |
+++ b/sci-biology/tablet/metadata.xml |
62 |
@@ -0,0 +1,9 @@ |
63 |
+<?xml version="1.0" encoding="UTF-8"?> |
64 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
65 |
+<pkgmetadata> |
66 |
+ <herd>sci-biology</herd> |
67 |
+ <maintainer> |
68 |
+ <email>mmokrejs@×××××××××××××××.cz</email> |
69 |
+ <name>Martin Mokrejs</name> |
70 |
+ </maintainer> |
71 |
+</pkgmetadata> |
72 |
|
73 |
diff --git a/sci-biology/tablet/tablet-1.13.12.17.ebuild b/sci-biology/tablet/tablet-1.13.12.17.ebuild |
74 |
new file mode 100644 |
75 |
index 0000000..112709b |
76 |
--- /dev/null |
77 |
+++ b/sci-biology/tablet/tablet-1.13.12.17.ebuild |
78 |
@@ -0,0 +1,90 @@ |
79 |
+# Copyright 1999-2014 Gentoo Foundation |
80 |
+# Distributed under the terms of the GNU General Public License v2 |
81 |
+# $Header: $ |
82 |
+ |
83 |
+EAPI=5 |
84 |
+ |
85 |
+PYTHON_COMPAT=( python{2_6,2_7} ) |
86 |
+ |
87 |
+inherit java-pkg-2 python-r1 |
88 |
+ |
89 |
+DESCRIPTION="Viewer of next generation sequence assemblies and alignments." |
90 |
+HOMEPAGE="http://bioinf.scri.ac.uk/tablet/" |
91 |
+SRC_URI=" |
92 |
+ x86? ( http://bioinf.scri.ac.uk/tablet/installers/tablet_linux_x86_$(replace_all_version_separators _).sh -> ${P}.sh ) |
93 |
+ amd64? ( http://bioinf.scri.ac.uk/tablet/installers/tablet_linux_x64_$(replace_all_version_separators _).sh -> ${P}.sh ) |
94 |
+ http://bioinf.scri.ac.uk/tablet/additional/coveragestats.py" |
95 |
+ |
96 |
+# Upstream says regarding source code unavailability: |
97 |
+# Tablet uses a modified version of the BSD License which has been edited to |
98 |
+# remove references to distribution and use in source forms. This means that |
99 |
+# we are happy for you to distribute and use Tablet however you please, but we |
100 |
+# do not (yet) want to make the source code publicly available. |
101 |
+ |
102 |
+# The licence file itself is in the installer, and ends up on disk after |
103 |
+# installation at /opt/Tablet/docs/tablet.html |
104 |
+# The original BSD licence was modified to remove references to distribution |
105 |
+# and use in source forms, because we cannot make the source code available |
106 |
+# for Tablet. |
107 |
+ |
108 |
+LICENSE="Tablet" |
109 |
+SLOT="0" |
110 |
+KEYWORDS="" |
111 |
+IUSE="" |
112 |
+ |
113 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
114 |
+ |
115 |
+DEPEND="${PYTHON_DEPS}" |
116 |
+RDEPEND="${DEPEND} |
117 |
+ virtual/jre" |
118 |
+ |
119 |
+S="${WORKDIR}" |
120 |
+ |
121 |
+src_unpack() { |
122 |
+ local file |
123 |
+ for file in ${A}; do |
124 |
+ cp "${DISTDIR}"/${file} "${WORKDIR}" || die |
125 |
+ done |
126 |
+} |
127 |
+ |
128 |
+src_install() { |
129 |
+ # In theory it seems this binary package could be installed through ant |
130 |
+ # instead of the install4j package which is not easy to be forced |
131 |
+ # non-interactive. The below approach via install4j is not ideal but works. |
132 |
+ sed "s#\"\${D}\"#\"${D}\"#g" "${FILESDIR}"/response.varfile > "${WORKDIR}"/response.varfile || die "sed failed" |
133 |
+ |
134 |
+ # the intallation script somehow does not pickup |
135 |
+ # -varfile="${DISTDIR}"/response.varfile from the commandline and therefore |
136 |
+ # we place the file rather directly into the place where it should reside. |
137 |
+ # In the file you can read details how the variables were mangled. For |
138 |
+ # example, the trick with sys.symlinkDir in the response.varfile is to |
139 |
+ # disable the installation process to symlink from /usr/local/bin/table to |
140 |
+ # /opt/Tablet/tablet. That was logged in that file with the following line: |
141 |
+ # |
142 |
+ # /var/tmp/portage/sci-biology/tablet-bin-1.11.02.18/image/opt/Tablet/.install4j/installation.log: |
143 |
+ # Variable changed: sys.symlinkDir=/usr/local/bin[class java.lang.String] |
144 |
+ # |
145 |
+ # The file is then left on the installed system in "${D}"/opt/Tablet/.install4j/response.varfile |
146 |
+ dodir /opt/Tablet/.install4j |
147 |
+ cat "${WORKDIR}"/response.varfile > "${ED}"/opt/Tablet/.install4j/response.varfile || die |
148 |
+ |
149 |
+ # make sure we force java to point a to $HOME which is inside our sanbox |
150 |
+ # directory area. We force -Duser.home . It seems also -Dinstall4j.userHome |
151 |
+ # could be done based on the figure shown at http://resources.ej-technologies.com/install4j/help/doc/ |
152 |
+ sed \ |
153 |
+ -e "s#/bin/java\" -Dinstall4j.jvmDir#/bin/java\" -Duser.home="${TMPDIR}" -Dinstall4j.jvmDir#" \ |
154 |
+ -i "${WORKDIR}"/${P}.sh || die |
155 |
+ sh \ |
156 |
+ "${WORKDIR}"/${P}.sh \ |
157 |
+ -q -overwrite \ |
158 |
+ -varfile="${DISTDIR}"/response.varfile \ |
159 |
+ --destination="${ED}"/opt/Tablet \ |
160 |
+ -dir "${ED}"/opt/Tablet || die |
161 |
+ |
162 |
+ rm -rf "${ED}"/opt/Tablet/jre || die |
163 |
+ |
164 |
+ python_foreach_impl python_doscript "${WORKDIR}"/coveragestats.py |
165 |
+ |
166 |
+ echo "PATH=${EPREFIX}/opt/Tablet" > 99Tablet |
167 |
+ doenvd 99Tablet || die |
168 |
+} |
169 |
|
170 |
diff --git a/sci-biology/tablet/tablet-9999.ebuild b/sci-biology/tablet/tablet-9999.ebuild |
171 |
new file mode 100644 |
172 |
index 0000000..40472c7 |
173 |
--- /dev/null |
174 |
+++ b/sci-biology/tablet/tablet-9999.ebuild |
175 |
@@ -0,0 +1,100 @@ |
176 |
+# Copyright 1999-2014 Gentoo Foundation |
177 |
+# Distributed under the terms of the GNU General Public License v2 |
178 |
+# $Header: $ |
179 |
+ |
180 |
+EAPI=5 |
181 |
+ |
182 |
+PYTHON_COMPAT=( python{2_6,2_7} ) |
183 |
+ |
184 |
+inherit java-pkg-2 java-ant-2 python-r1 eutils |
185 |
+ |
186 |
+[ "$PV" == "9999" ] && inherit subversion |
187 |
+ |
188 |
+DESCRIPTION="Viewer of next generation sequence assemblies and alignments." |
189 |
+HOMEPAGE="http://bioinf.scri.ac.uk/tablet/" |
190 |
+if [ "$PV" == "9999" ]; then |
191 |
+ ESVN_REPO_URI="http://ics.hutton.ac.uk/svn/tablet/trunk/" |
192 |
+ KEYWORDS="" |
193 |
+else |
194 |
+ ESVN_REPO_URI="http://ics.hutton.ac.uk/svn/tablet/tags/${PV}" |
195 |
+ KEYWORDS="" |
196 |
+fi |
197 |
+ |
198 |
+#SRC_URI=" |
199 |
+# x86? ( http://bioinf.scri.ac.uk/tablet/installers/tablet_linux_x86_$(replace_all_version_separators _).sh -> ${P}.sh ) |
200 |
+# amd64? ( http://bioinf.scri.ac.uk/tablet/installers/tablet_linux_x64_$(replace_all_version_separators _).sh -> ${P}.sh ) |
201 |
+# http://bioinf.scri.ac.uk/tablet/additional/coveragestats.py" |
202 |
+ |
203 |
+# Upstream says regarding source code unavailability: |
204 |
+# Tablet uses a modified version of the BSD License which has been edited to |
205 |
+# remove references to distribution and use in source forms. This means that |
206 |
+# we are happy for you to distribute and use Tablet however you please, but we |
207 |
+# do not (yet) want to make the source code publicly available. |
208 |
+ |
209 |
+# The licence file itself is in the installer, and ends up on disk after |
210 |
+# installation at /opt/Tablet/docs/tablet.html |
211 |
+# The original BSD licence was modified to remove references to distribution |
212 |
+# and use in source forms, because we cannot make the source code available |
213 |
+# for Tablet. |
214 |
+ |
215 |
+LICENSE="Tablet" |
216 |
+SLOT="0" |
217 |
+IUSE="" |
218 |
+ |
219 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
220 |
+ |
221 |
+DEPEND="${PYTHON_DEPS} |
222 |
+ virtual/jdk" |
223 |
+RDEPEND="${DEPEND} |
224 |
+ virtual/jre" |
225 |
+ |
226 |
+S="${WORKDIR}" |
227 |
+ |
228 |
+src_unpack() { |
229 |
+ local file |
230 |
+ for file in ${A}; do |
231 |
+ cp "${DISTDIR}"/${file} "${WORKDIR}" || die |
232 |
+ done |
233 |
+} |
234 |
+ |
235 |
+src_install() { |
236 |
+ # In theory it seems this binary package could be installed through ant |
237 |
+ # instead of the install4j package which is not easy to be forced |
238 |
+ # non-interactive. The below approach via install4j is not ideal but works. |
239 |
+ sed "s#\"\${D}\"#\"${D}\"#g" "${FILESDIR}"/response.varfile > "${WORKDIR}"/response.varfile || die "sed failed" |
240 |
+ |
241 |
+ # the intallation script somehow does not pickup |
242 |
+ # -varfile="${DISTDIR}"/response.varfile from the commandline and therefore |
243 |
+ # we place the file rather directly into the place where it should reside. |
244 |
+ # In the file you can read details how the variables were mangled. For |
245 |
+ # example, the trick with sys.symlinkDir in the response.varfile is to |
246 |
+ # disable the installation process to symlink from /usr/local/bin/table to |
247 |
+ # /opt/Tablet/tablet. That was logged in that file with the following line: |
248 |
+ # |
249 |
+ # /var/tmp/portage/sci-biology/tablet-bin-1.11.02.18/image/opt/Tablet/.install4j/installation.log: |
250 |
+ # Variable changed: sys.symlinkDir=/usr/local/bin[class java.lang.String] |
251 |
+ # |
252 |
+ # The file is then left on the installed system in "${D}"/opt/Tablet/.install4j/response.varfile |
253 |
+ dodir /opt/Tablet/.install4j |
254 |
+ cat "${WORKDIR}"/response.varfile > "${ED}"/opt/Tablet/.install4j/response.varfile || die |
255 |
+ |
256 |
+ # make sure we force java to point a to $HOME which is inside our sanbox |
257 |
+ # directory area. We force -Duser.home . It seems also -Dinstall4j.userHome |
258 |
+ # could be done based on the figure shown at http://resources.ej-technologies.com/install4j/help/doc/ |
259 |
+ sed \ |
260 |
+ -e "s#/bin/java\" -Dinstall4j.jvmDir#/bin/java\" -Duser.home="${TMPDIR}" -Dinstall4j.jvmDir#" \ |
261 |
+ -i "${WORKDIR}"/${P}.sh || die |
262 |
+ sh \ |
263 |
+ "${WORKDIR}"/${P}.sh \ |
264 |
+ -q -overwrite \ |
265 |
+ -varfile="${DISTDIR}"/response.varfile \ |
266 |
+ --destination="${ED}"/opt/Tablet \ |
267 |
+ -dir "${ED}"/opt/Tablet || die |
268 |
+ |
269 |
+ rm -rf "${ED}"/opt/Tablet/jre || die |
270 |
+ |
271 |
+ python_foreach_impl python_doscript "${WORKDIR}"/coveragestats.py |
272 |
+ |
273 |
+ echo "PATH=${EPREFIX}/opt/Tablet" > 99Tablet |
274 |
+ doenvd 99Tablet || die |
275 |
+} |