diff options
author | James Le Cuirot <chewi@gentoo.org> | 2018-03-20 22:26:19 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2018-03-20 22:26:53 +0000 |
commit | fd444703a13ebcb49682e729b3ab4c94533d53c2 (patch) | |
tree | 266efae1f9f9b0c47e4492567ba4d1a263952411 /dev-java | |
parent | sys-kernel/genkernel-next: stable 68 for ppc64, bug #640084 (diff) | |
download | gentoo-fd444703a13ebcb49682e729b3ab4c94533d53c2.tar.gz gentoo-fd444703a13ebcb49682e729b3ab4c94533d53c2.tar.bz2 gentoo-fd444703a13ebcb49682e729b3ab4c94533d53c2.zip |
dev-java/javahelp: Bump to 2.0.05_p20170719, EAPI 6
I dropped the doc flag because the javadocs don't build under Java 8.
Bug: https://bugs.gentoo.org/643318
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/javahelp/Manifest | 1 | ||||
-rw-r--r-- | dev-java/javahelp/javahelp-2.0.05_p20170719.ebuild | 68 |
2 files changed, 69 insertions, 0 deletions
diff --git a/dev-java/javahelp/Manifest b/dev-java/javahelp/Manifest index 5e9af92892eb..90cce4e3a767 100644 --- a/dev-java/javahelp/Manifest +++ b/dev-java/javahelp/Manifest @@ -1 +1,2 @@ +DIST javahelp-2.0.05_p20170719.tar.gz 6045243 BLAKE2B 3cea100e6087f7f8884a04cc1b046f2611e4c516be0086faec685a85311f2cfd9ca49ee9f3fdff37d7e9a496685dc288601521047a3d4c2ae6b31faee2ad7390 SHA512 6d98c33f831052133176cf50419aae6dc1f5715485bcfd33f7e346cb694f5483b1f7a159f47799a72933db8ca42d83cb73b23946179aa6ccaee946d524b3bd36 DIST javahelp2-src-2.0.05_svn63.zip 3747088 BLAKE2B 80f0fd45741d313fd47ccb9874d31636d12f452ff012dc010de2879bf67a22bd58f6fbde7df86117f463a949f7897ec5e1e3721b1fdd1ee0fc794f30152e188f SHA512 ed795dad98f8d80f4cd4cda40b6aea0978cda621b131b1563016c1ddc02afeb37f3626a28003dac26d7fe996274fb9a97e741a500b15d06b1e5a93342020abc3 diff --git a/dev-java/javahelp/javahelp-2.0.05_p20170719.ebuild b/dev-java/javahelp/javahelp-2.0.05_p20170719.ebuild new file mode 100644 index 000000000000..5c067b1698f7 --- /dev/null +++ b/dev-java/javahelp/javahelp-2.0.05_p20170719.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +COMMIT="3ca862d8626096770598a3a256886d205246f4a4" +JAVA_PKG_IUSE="examples source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="The JavaHelp system online help system" +HOMEPAGE="https://javaee.github.io/javahelp/" +SRC_URI="https://github.com/javaee/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2-with-linking-exception" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" + +CDEPEND="java-virtuals/servlet-api:2.4" + +RDEPEND=">=virtual/jre-1.4 + ${CDEPEND}" + +DEPEND=">=virtual/jdk-1.4 + ${CDEPEND}" + +S="${WORKDIR}/${PN}-${COMMIT}" + +_eant() { + local \ + servlet_jar=$(java-pkg_getjar --virtual servlet-api-2.4 servlet-api.jar) \ + jsp_jar=$(java-pkg_getjar --virtual servlet-api-2.4 jsp-api.jar) + + eant \ + -f javahelp_nbproject/build.xml \ + -Dfile.reference.servlet-api.jar="${servlet_jar}" \ + -Dfile.reference.jsp-api.jar="${jsp_jar}" \ + -Dservlet-jar="${servlet_jar}" \ + -Djsp-jar="${jsp_jar}" \ + -Dservlet-jar-present=true \ + -Djsp-jar-present=true \ + -Dtomcat-zip-present=true \ + ${@} +} + +src_compile() { + _eant release +} + +#Does not actually run anything +#src_test() { +# _eant test +#} + +src_install() { + java-pkg_dojar javahelp_nbproject/dist/lib/*.jar + + java-pkg_dolauncher jhsearch \ + --main com.sun.java.help.search.QueryEngine + java-pkg_dolauncher jhindexer \ + --main com.sun.java.help.search.Indexer + + use source && java-pkg_dosrc \ + jhMaster/JSearch/*/com \ + jhMaster/JavaHelp/src/*/{javax,com} + + use examples && java-pkg_doexamples jhMaster/JavaHelp/demos +} |