Gentoo Archives: gentoo-commits

From: "Miroslav Sulc (fordfrog)" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/javahelp: ChangeLog javahelp-2.0.05_p63.ebuild
Date: Sun, 23 Jan 2011 14:22:19
Message-Id: 20110123142208.9E44020054@flycatcher.gentoo.org
1 fordfrog 11/01/23 14:22:08
2
3 Modified: ChangeLog
4 Added: javahelp-2.0.05_p63.ebuild
5 Log:
6 dev-java/javahelp: version bump
7
8 (Portage version: 2.1.9.35/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.17 dev-java/javahelp/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/javahelp/ChangeLog?rev=1.17&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/javahelp/ChangeLog?rev=1.17&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/javahelp/ChangeLog?r1=1.16&r2=1.17
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-java/javahelp/ChangeLog,v
20 retrieving revision 1.16
21 retrieving revision 1.17
22 diff -u -r1.16 -r1.17
23 --- ChangeLog 15 Jan 2010 17:32:51 -0000 1.16
24 +++ ChangeLog 23 Jan 2011 14:22:08 -0000 1.17
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-java/javahelp
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-java/javahelp/ChangeLog,v 1.16 2010/01/15 17:32:51 grobian Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-java/javahelp/ChangeLog,v 1.17 2011/01/23 14:22:08 fordfrog Exp $
31 +
32 +*javahelp-2.0.05_p63 (23 Jan 2011)
33 +
34 + 23 Jan 2011; Miroslav Ć ulc <fordfrog@g.o>
35 + +javahelp-2.0.05_p63.ebuild:
36 + Version bump, switched to EAPI3, switched to virtual servlet-api
37
38 15 Jan 2010; Fabian Groffen <grobian@g.o>
39 javahelp-2.0.02_p46.ebuild:
40
41
42
43 1.1 dev-java/javahelp/javahelp-2.0.05_p63.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/javahelp/javahelp-2.0.05_p63.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/javahelp/javahelp-2.0.05_p63.ebuild?rev=1.1&content-type=text/plain
47
48 Index: javahelp-2.0.05_p63.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-java/javahelp/javahelp-2.0.05_p63.ebuild,v 1.1 2011/01/23 14:22:08 fordfrog Exp $
53
54 EAPI="3"
55
56 WANT_ANT_TASKS="ant-nodeps"
57 JAVA_PKG_IUSE="doc examples source"
58
59 inherit versionator java-pkg-2 java-ant-2
60
61 DESCRIPTION="The JavaHelp system online help system"
62 HOMEPAGE="https://javahelp.dev.java.net/"
63
64 MY_PV="${PV/_p/_svn}"
65 MY_PN="${PN}2"
66 SRC_URI="https://${PN}.dev.java.net/files/documents/5985/145533/${MY_PN}-src-${MY_PV}.zip"
67
68 LICENSE="GPL-2-with-linking-exception"
69 SLOT="0"
70 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris"
71
72 COMMON_DEP="
73 java-virtuals/servlet-api:2.4"
74 RDEPEND="
75 >=virtual/jre-1.4
76 ${COMMON_DEP}"
77 DEPEND="
78 >=virtual/jdk-1.4
79 app-arch/unzip
80 ${COMMON_DEP}"
81
82 S="${WORKDIR}/${MY_PN}-${MY_PV}/"
83 BDIR="${S}/javahelp_nbproject"
84
85 src_unpack() {
86 unpack ${A}
87 # jdic does not currently build out of the box against the browsers we have
88 cd "${S}/jhMaster/JavaHelp/src/new/" || die
89 rm -v javax/help/plaf/basic/BasicNativeContentViewerUI.java || die
90 mkdir "${BDIR}/lib" && cd "${BDIR}/lib" || die
91 java-pkg_jar-from --virtual servlet-api-2.4
92 java-pkg_filter-compiler jikes
93 }
94
95 _eant() {
96 cd ${BDIR} || die
97 eant \
98 -Dservlet-jar="$(java-pkg_getjar --virtual servlet-api-2.4 servlet-api.jar)" \
99 -Djsp-jar="$(java-pkg_getjar --virtual servlet-api-2.4 jsp-api.jar)" \
100 -Djdic-jar-present=true \
101 -Djdic-zip-present=true \
102 -Dtomcat-zip-present=true \
103 -Dservlet-jar-present=true \
104 ${@}
105 }
106
107 src_compile() {
108 _eant release $(use_doc)
109 }
110
111 #Does not actually run anything
112 #src_test() {
113 # _eant test
114 #}
115
116 src_install() {
117 pushd jhMaster/JavaHelp >/dev/null || die
118 java-pkg_dojar "${BDIR}"/dist/lib/*.jar
119 java-pkg_dolauncher jhsearch \
120 --main com.sun.java.help.search.QueryEngine
121 java-pkg_dolauncher jhindexer \
122 --main com.sun.java.help.search.Indexer
123 use doc && java-pkg_dojavadoc "${BDIR}/dist/lib/javadoc"
124 popd >/dev/null || die
125
126 use source && java-pkg_dosrc \
127 ./jhMaster/JSearch/*/com \
128 ./jhMaster/JavaHelp/src/*/{javax,com}
129 use examples && java-pkg_doexamples jhMaster/JavaHelp/demos
130 }
131
132 pkg_postinst() {
133 elog "Native browser integration is disabled because it needs jdic"
134 elog "which does not build out of the box. See"
135 elog "https://bugs.gentoo.org/show_bug.cgi?id=53897 for progress"
136 }