38 lines
1007 B
Bash
38 lines
1007 B
Bash
# Template file for 'javahelp2'
|
|
pkgname=javahelp2
|
|
version=2.0.05
|
|
revision=1
|
|
_svnver=svn63
|
|
wrksrc=${pkgname}-${version}_${_svnver}
|
|
noarch=yes
|
|
short_desc="Java based help system"
|
|
hostmakedepends="openjdk apache-ant unzip"
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
license="GPL-3"
|
|
homepage="https://javahelp.java.net/"
|
|
distfiles="http://ftp.mirrorservice.org/sites/distfiles.gentoo.org/distfiles/${pkgname}-src-${version}_${_svnver}.zip"
|
|
checksum=a864ac71701ed8d12ba192460cd7b4d51e78813f39a140ede5d9b04afd9eae92
|
|
|
|
do_install() {
|
|
local _javahelp=usr/share/java/javahelp
|
|
|
|
# Remove class uncompilable without JDIC
|
|
rm -v jhMaster/JavaHelp/src/new/javax/help/plaf/basic/BasicNativeContentViewerUI.java
|
|
|
|
# Build jars
|
|
cd javahelp_nbproject
|
|
ant release
|
|
|
|
vmkdir usr/bin
|
|
|
|
for f in jhindexer jhsearch; do
|
|
vinstall dist/bin/${f}.jar 644 ${_javahelp}
|
|
sed dist/bin/${f} -e "s;opt/javahelp;${_javahelp};g" > ${f}
|
|
vbin ${f}
|
|
done
|
|
|
|
for f in dist/lib/*.jar; do
|
|
vinstall $f 644 ${_javahelp}
|
|
done
|
|
}
|