jabref-bin-3.7.ebuild 864 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit eutils java-pkg-2
  5. MY_PV_1="${PV/_beta/b}"
  6. MY_PV="${MY_PV_1/_rc/}"
  7. MY_URI_PV_1="${PV/rc/}"
  8. MY_URI_PV="${MY_URI_PV_1//_/%20}"
  9. DESCRIPTION="Java GUI for managing BibTeX and other bibliographies"
  10. HOMEPAGE="http://www.jabref.org/"
  11. SRC_URI="mirror://sourceforge/jabref/JabRef-${MY_PV}.jar"
  12. LICENSE="GPL-2"
  13. SLOT="0"
  14. KEYWORDS="amd64 x86"
  15. DEPEND="
  16. app-arch/unzip
  17. "
  18. RDEPEND="
  19. >=virtual/jre-1.8
  20. "
  21. S="${WORKDIR}"
  22. src_unpack() {
  23. cp -v "${DISTDIR}/${A}" . || die
  24. unzip ${A} images/icons/JabRef-icon-48.png || die
  25. }
  26. src_install() {
  27. java-pkg_newjar "JabRef-${MY_PV}.jar"
  28. java-pkg_dolauncher "${PN}" --jar "${PN}.jar"
  29. newicon images/icons/JabRef-icon-48.png JabRef-bin-icon.png
  30. make_desktop_entry "${PN}" JabRef-bin JabRef-bin-icon Office
  31. }