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/OBO-Edit/files/, sci-biology/OBO-Edit/
Date: Tue, 07 Feb 2012 23:39:35
Message-Id: ffb0d2032a35ca86e9f613f2a99bf8f09f2373b3.mmokrejs@gentoo
1 commit: ffb0d2032a35ca86e9f613f2a99bf8f09f2373b3
2 Author: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
3 AuthorDate: Tue Feb 7 13:04:27 2012 +0000
4 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
5 CommitDate: Tue Feb 7 13:04:27 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=ffb0d203
7
8 sci-biology/OBO-Edit: more attempts to get rid of sandbox ACCESS VIOLATION SUMMARY errors
9
10 (Portage version: 2.1.10.45/git/Linux x86_64, unsigned Manifest commit)
11
12 ---
13 sci-biology/OBO-Edit/ChangeLog | 8 +++-
14 sci-biology/OBO-Edit/OBO-Edit-2.1.1.6.ebuild | 59 ++++++++++++++++++++++++++
15 sci-biology/OBO-Edit/files/response.varfile | 8 +++-
16 3 files changed, 72 insertions(+), 3 deletions(-)
17
18 diff --git a/sci-biology/OBO-Edit/ChangeLog b/sci-biology/OBO-Edit/ChangeLog
19 index 77732a7..1378d6b 100644
20 --- a/sci-biology/OBO-Edit/ChangeLog
21 +++ b/sci-biology/OBO-Edit/ChangeLog
22 @@ -1,7 +1,13 @@
23 # ChangeLog for sci-biology/OBO-Edit
24 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
25 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
26 # $Header: $
27
28 +*OBO-Edit-2.1.1.6 (07 Feb 2012)
29 +
30 + 07 Feb 2012; Martin Mokrejs <mmokrejs@×××××××××××××××.cz>
31 + +OBO-Edit-2.1.1.6.ebuild, files/response.varfile:
32 + more attempts to get rid of sandbox ACCESS VIOLATION SUMMARY errors
33 +
34 *OBO-Edit-2.1.0 (26 Dec 2011)
35
36 26 Dec 2011; Martin Mokrejs <mmokrejs@×××××××××××××××.cz>
37
38 diff --git a/sci-biology/OBO-Edit/OBO-Edit-2.1.1.6.ebuild b/sci-biology/OBO-Edit/OBO-Edit-2.1.1.6.ebuild
39 new file mode 100644
40 index 0000000..30d6980
41 --- /dev/null
42 +++ b/sci-biology/OBO-Edit/OBO-Edit-2.1.1.6.ebuild
43 @@ -0,0 +1,59 @@
44 +# Copyright 1999-2012 Gentoo Foundation
45 +# Distributed under the terms of the GNU General Public License v2
46 +# $Header: $
47 +
48 +EAPI=4
49 +
50 +inherit toolchain-funcs versionator java-pkg-2
51 +
52 +# MY_PV=$(replace_all_version_separators '-')
53 +MY_PV="oboedit_2_1_1-b6"
54 +MY_VER="2.1.1-b6"
55 +MY_PV=$(replace_all_version_separators '-')
56 +
57 +DESCRIPTION="Java-based editor optimized for the OBO biological ontology file format"
58 +HOMEPAGE="http://www.oboedit.org/"
59 +SRC_URI="http://downloads.sourceforge.net/project/geneontology/OBO-Edit%202%20%5BLatest%20versions%5D/"${MY_VER}"/"${MY_PV}"_unix_install4j.sh -> "${PN}"_unix_install4j-"${PV}".sh
60 + http://sourceforge.net/projects/geneontology/files/OBO-Edit%202%20%5BLatest%20versions%5D/"${MY_PV}"/ReleaseNotes-"${MY_VER}".txt -> "${PN}"_ReleaseNotes-"${PV}".txt"
61 +
62 +LICENSE="OBO-Edit" # Artistic-like
63 +SLOT="0"
64 +KEYWORDS="~amd64 ~x86"
65 +IUSE=""
66 +
67 +DEPEND="app-arch/rpm2targz"
68 +RDEPEND="virtual/jre"
69 +
70 +S="${WORKDIR}"
71 +
72 +src_prepare(){
73 + cd "${S}" || die
74 + mkdir -p "${D}"/opt/OBO-Edit2/.install4j || die "Cannot pre-create "${D}"/opt/OBO-Edit2/.install4j/"
75 + mkdir -p "${D}"/usr/bin
76 +
77 + # /var/tmp/portage/sci-biology/OBO-Edit-2.1.1.6/image//opt/OBO-Edit2/.install4j/response.varfile
78 + sed -e "s#\"\${D}\"#"${D}"#g" "${FILESDIR}"/response.varfile | \
79 + sed -e "s#\"\${TMPDIR}\"#"${TMPDIR}"#g" | \
80 + sed -e "s@×××.symlinkDir=/usr/local/bin@#sys.symlinkDir=/usr/local/bin@" > \
81 + "${D}"/opt/OBO-Edit2/.install4j/response.varfile || die "sed failed"
82 + cp -r "${D}"/opt/OBO-Edit2/.install4j "${TMPDIR}"
83 +
84 + # for user root install4j writes into /opt/icedtea-bin-7.2.0/jre/.systemPrefs or whatever it
85 + # found via JAVA_HOME or similar variables
86 + # for other users it writes into $HOME/.java/.userPrefs/
87 + sed -e "s@/bin/java\" -Dinstall4j.jvmDir=\"\$app_java_home\"@/bin/java\" -Duser.home="${TMPDIR}" -Dinstall4j.jvmDir="${TMPDIR}" -Dsys.symlinkDir="${D}"usr/bin@" -i "${DISTDIR}"/"${PN}"_unix_install4j-"${PV}".sh || die "failed to set userHome and jvmDir where JAVA .systemPrefs can be found"
88 +
89 + chmod u+rx "${DISTDIR}"/"${PN}"_unix_install4j-"${PV}".sh
90 + grep Duser "${DISTDIR}"/"${PN}"_unix_install4j-"${PV}".sh
91 +}
92 +
93 +src_install(){
94 + cd "${S}" || die
95 + cat "${TMPDIR}"/.install4j/response.varfile
96 + chmod a-w "${TMPDIR}"/.install4j/response.varfile
97 + INSTALL4J_KEEP_TEMP="yes" HOME="${TMPDIR}" "${DISTDIR}"/"${PN}"_unix_install4j-"${PV}".sh -q --varfile="${TMPDIR}"/.install4j/response.varfile --destination="${D}"/opt/OBO-Edit2 -dir "${D}"/opt/OBO-Edit2 || die "Failed to run the self-extracting "${DISTDIR}"/"${PN}"_unix_install4j-"${PV}".sh file"
98 + find . -name firstrun -delete
99 + find . -name .svn -exec rm -rf '{}' \;
100 +
101 + dodoc "${DISTDIR}"/"${PN}"_ReleaseNotes-"${PV}".txt
102 +}
103
104 diff --git a/sci-biology/OBO-Edit/files/response.varfile b/sci-biology/OBO-Edit/files/response.varfile
105 index 149a4e2..8c4361d 100644
106 --- a/sci-biology/OBO-Edit/files/response.varfile
107 +++ b/sci-biology/OBO-Edit/files/response.varfile
108 @@ -1,6 +1,10 @@
109 -executeLauncherAction$Boolean=false
110 +#install4j response file for OBO-Edit2 2.1.1-b6
111 +#Tue Feb 07 03:08:04 MET 2012
112 +sys.component.89$Boolean=false
113 +createDesktopLinkAction$Boolean=false
114 +oboedit.memoryAlloc$Integer=3456
115 sys.programGroupDisabled$Boolean=true
116 +sys.component.61$Boolean=true
117 sys.symlinkDir="${D}"usr/bin
118 sys.languageId=en
119 -sys.userHome="${D}"/../temp
120 sys.installationDir="${D}"opt/OBO-Edit2