389-console-1.1.7-r1.ebuild 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. JAVA_PKG_IUSE=""
  5. inherit java-pkg-2 eutils java-ant-2
  6. DESCRIPTION="A Java based console for remote management 389 server"
  7. HOMEPAGE="http://port389.org/"
  8. SRC_URI="http://directory.fedoraproject.org/sources/${P}.tar.bz2
  9. https://dev.gentoo.org/~lxnay/${PN}/fedora.png"
  10. LICENSE="LGPL-2.1"
  11. SLOT="1.1"
  12. KEYWORDS="~amd64 ~x86"
  13. IUSE=""
  14. COMMON_DEP="dev-java/jss:3.4
  15. dev-java/ldapsdk:4.1
  16. >=dev-java/idm-console-framework-1.1"
  17. RDEPEND="|| ( >=virtual/jre-1.6 >=virtual/jdk-1.6 )
  18. ${COMMON_DEP}"
  19. DEPEND=">=virtual/jdk-1.6
  20. ${COMMON_DEP}"
  21. src_prepare() {
  22. java-pkg_jar-from ldapsdk-4.1 ldapjdk.jar
  23. java-pkg_jar-from jss-3.4 xpclass.jar jss4.jar
  24. java-pkg_jar-from idm-console-framework-1.1
  25. }
  26. src_compile() {
  27. eant -Dbuilt.dir="${S}"/build \
  28. -Dldapjdk.local.location="${S}" \
  29. -Djss.local.location="${S}" \
  30. -Dconsole.local.location="${S}" ${antflags} \
  31. || die "eant failed"
  32. }
  33. src_install() {
  34. java-pkg_newjar "${S}"/build/389-console-${PV}_en.jar 389-console_en.jar
  35. java-pkg_dolauncher ${PN} --main com.netscape.management.client.console.Console \
  36. --pwd "/usr/share/dirsrv/html/java/" \
  37. --pkg_args "-Djava.util.prefs.systemRoot=\"\$HOME/.${PN}\" -Djava.util.prefs.userRoot=\"\$HOME/.${PN}\"" \
  38. || die
  39. doicon "${DISTDIR}"/fedora.png || die "doicon failed"
  40. make_desktop_entry ${PN} "Port389 Management Console" fedora System
  41. }