jabref-bin-3.3.ebuild 862 B

123456789101112131415161718192021222324252627282930313233343536
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  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. RDEPEND="|| ( >=virtual/jre-1.8 >=virtual/jdk-1.8 )"
  16. S="${WORKDIR}"
  17. src_unpack() {
  18. cp -v "${DISTDIR}/${A}" . || die
  19. jar xf ${A} images/icons/JabRef-icon-48.png || die
  20. }
  21. src_install() {
  22. java-pkg_newjar "JabRef-${MY_PV}.jar"
  23. java-pkg_dolauncher "${PN}" --jar "${PN}.jar"
  24. newicon images/icons/JabRef-icon-48.png JabRef-bin-icon.png
  25. make_desktop_entry "${PN}" JabRef-bin JabRef-bin-icon Office
  26. }