Gentoo Archives: gentoo-commits

From: Martin Mokrejs <mmokrejs@×××××××××××××××.cz>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/tablet-bin/, sci-biology/tablet-bin/files/
Date: Fri, 29 Apr 2011 19:16:33
Message-Id: 217b66f76d263ab5ad27c9299cd2537196f423ce.mmokrejs@gentoo
1 commit: 217b66f76d263ab5ad27c9299cd2537196f423ce
2 Author: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
3 AuthorDate: Fri Apr 29 19:16:10 2011 +0000
4 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
5 CommitDate: Fri Apr 29 19:16:10 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=217b66f7
7
8 sci-biology/tablet-bin-1.11.02.18: fixed ebuild for the package and version bump
9
10 (Portage version: 2.1.9.43/git/Linux i686, unsigned Manifest commit)
11
12 ---
13 sci-biology/tablet-bin/files/response.varfile | 4 +
14 .../tablet-bin/tablet-bin-1.11.01.25.ebuild | 30 ----------
15 .../tablet-bin/tablet-bin-1.11.02.18.ebuild | 59 ++++++++++++++++++++
16 3 files changed, 63 insertions(+), 30 deletions(-)
17
18 diff --git a/sci-biology/tablet-bin/files/response.varfile b/sci-biology/tablet-bin/files/response.varfile
19 index 2ce1c24..cfa2e68 100644
20 --- a/sci-biology/tablet-bin/files/response.varfile
21 +++ b/sci-biology/tablet-bin/files/response.varfile
22 @@ -2,6 +2,10 @@
23 #Mon Jan 24 11:35:29 GMT 2011
24 executeLauncherAction$Boolean=false
25 sys.programGroupDisabled$Boolean=true
26 +# 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
27 +# # 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
28 sys.symlinkDir="${D}"usr/bin
29 +#sys.symlinkDir=/scratch/var/tmp/portage/sci-biology/tablet-bin-1.11.02.18/image/usr/bin
30 sys.languageId=en
31 +sys.userHome="${D}"/../temp
32 sys.installationDir="${D}"opt/Tablet
33
34 diff --git a/sci-biology/tablet-bin/tablet-bin-1.11.01.25.ebuild b/sci-biology/tablet-bin/tablet-bin-1.11.01.25.ebuild
35 deleted file mode 100644
36 index 2cf7b27..0000000
37 --- a/sci-biology/tablet-bin/tablet-bin-1.11.01.25.ebuild
38 +++ /dev/null
39 @@ -1,30 +0,0 @@
40 -# Copyright 1999-2011 Gentoo Foundation
41 -# Distributed under the terms of the GNU General Public License v2
42 -# $Header: $
43 -
44 -EAPI=3
45 -
46 -DESCRIPTION="Graphical viewer for next generation sequence assemblies and alignments."
47 -HOMEPAGE="http://bioinf.scri.ac.uk/tablet/"
48 -SRC_URI="http://bioinf.scri.ac.uk/tablet/installers/tablet_linux_x86_1_11_01_25.sh
49 - http://bioinf.scri.ac.uk/tablet/additional/coveragestats.py"
50 -
51 -# Tablet uses a modified version of the BSD License which has been edited to remove references to distribution and use in source forms. This means that we are happy for you to distribute and use Tablet however you please, but we do not (yet) want to make the source code publicly available.
52 -LICENSE="Tablet" # It's in the installer, and ends up on disk after installation at /opt/Tablet/docs/tablet.html
53 - # The original BSD licence was modified to remove references to distribution and use in
54 - #source forms, because we cannot make the source code available for Tablet.
55 -SLOT="0"
56 -KEYWORDS=""
57 -IUSE=""
58 -
59 -DEPEND=""
60 -RDEPEND="${DEPEND}
61 - virtual/jre
62 - dev-lang/python"
63 -
64 -src_install() {
65 - # In theory it seems this binary package could be installed through ant instead of the install4j package which is not easy to be forced non-interactive. The below approach is not ideal.
66 - sed "s#\"\${D}\"#"${D}"#g" "${FILESDIR}"/response.varfile > "${DISTDIR}"/response.varfile || die "sed failed"
67 - sh "${DISTDIR}"/tablet_linux_x86_1_11_01_25.sh -q -overwrite --var-file="${DISTDIR}"/response.varfile --destination="${D}"/opt/Tablet
68 - dobin "${DISTDIR}"/coveragestats.py || die
69 -}
70
71 diff --git a/sci-biology/tablet-bin/tablet-bin-1.11.02.18.ebuild b/sci-biology/tablet-bin/tablet-bin-1.11.02.18.ebuild
72 new file mode 100644
73 index 0000000..d4b1925
74 --- /dev/null
75 +++ b/sci-biology/tablet-bin/tablet-bin-1.11.02.18.ebuild
76 @@ -0,0 +1,59 @@
77 +# Copyright 1999-2011 Gentoo Foundation
78 +# Distributed under the terms of the GNU General Public License v2
79 +# $Header: $
80 +
81 +EAPI=3
82 +
83 +inherit python java-pkg-2
84 +
85 +DESCRIPTION="Graphical viewer for next generation sequence assemblies and alignments."
86 +HOMEPAGE="http://bioinf.scri.ac.uk/tablet/"
87 +SRC_URI="http://bioinf.scri.ac.uk/tablet/installers/tablet_linux_x86_1_11_02_18.sh
88 + http://bioinf.scri.ac.uk/tablet/additional/coveragestats.py"
89 +
90 +# Tablet uses a modified version of the BSD License which has been edited to remove
91 +# references to distribution and use in source forms. This means that we are happy
92 +# for you to distribute and use Tablet however you please, but we do not (yet) want
93 +# to make the source code publicly available.
94 +
95 +# It's in the installer, and ends up on disk after installation at /opt/Tablet/docs/tablet.html
96 +# The original BSD licence was modified to remove references to distribution and use in
97 +# source forms, because we cannot make the source code available for Tablet.
98 +
99 +LICENSE="Tablet"
100 +SLOT="0"
101 +KEYWORDS="~amd64 ~x86"
102 +IUSE=""
103 +
104 +DEPEND=""
105 +RDEPEND="${DEPEND}
106 + virtual/jre
107 + dev-lang/python"
108 +
109 +src_install() {
110 + # In theory it seems this binary package could be installed through ant instead
111 + # of the install4j package which is not easy to be forced non-interactive.
112 + # The below approach is not ideal.
113 + sed "s#\"\${D}\"#"${D}"#g" "${FILESDIR}"/response.varfile > "${DISTDIR}"/response.varfile || die "sed failed"
114 +
115 + # the intallation script somehow does not pickup
116 + # -varfile="${DISTDIR}"/response.varfile from the commandline and tehrefore
117 + # we place the file rather directly into the place where it should reside.
118 + # In the file you can read details how the variables were mangled. For
119 + # example, the trick with sys.symlinkDir in the response.varfile is to
120 + # disable the installation process to symlink from /usr/local/bin/table to
121 + # /opt/Tablet/tablet. That was logged in that file with the following line:
122 + #
123 + # /scratch/var/tmp/portage/sci-biology/tablet-bin-1.11.02.18/image/opt/Tablet/.install4j/installation.log: Variable changed: sys.symlinkDir=/usr/local/bin[class java.lang.String]
124 + #
125 + # The file is then left on the installed system in "${D}"/opt/Tablet/.install4j/response.varfile
126 + mkdir -p "${D}"/opt/Tablet/.install4j || die "Cannot pre-create "${D}"/opt/Tablet/.install4j/"
127 + cat "${DISTDIR}"/response.varfile > "${D}"/opt/Tablet/.install4j/response.varfile || die "Cannot write "${D}"/opt/Tablet/.install4j/response.varfile"
128 +
129 + # make sure we force java to point a to $HOME which is inside our sanbox
130 + # directory area. We force -Duser.home . It seems also -Dinstall4j.userHome
131 + # could be done based on the figure shown at http://resources.ej-technologies.com/install4j/help/doc/
132 + sed "s#/bin/java\" -Dinstall4j.jvmDir#/bin/java\" -Duser.home="${D}"/../temp -Dinstall4j.jvmDir#" -i "${DISTDIR}"/tablet_linux_x86_1_11_02_18.sh || die "failed to set userHome value"
133 + sh "${DISTDIR}"/tablet_linux_x86_1_11_02_18.sh -q -overwrite -varfile="${DISTDIR}"/response.varfile --destination="${D}"/opt/Tablet -dir /scratch/var/tmp/portage/sci-biology/tablet-bin-1.11.02.18/image/opt/Tablet
134 + dobin "${DISTDIR}"/coveragestats.py
135 +}