jabref-bin-3.8.1.ebuild 951 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. SRC_URI="https://github.com/JabRef/jabref/releases/download/v${PV}/JabRef-${MY_PV}.jar"
  13. LICENSE="GPL-2"
  14. SLOT="0"
  15. KEYWORDS="~amd64 ~x86"
  16. DEPEND="app-arch/unzip"
  17. RDEPEND=">=virtual/jre-1.8"
  18. S="${WORKDIR}"
  19. src_unpack() {
  20. cp -v "${DISTDIR}/${A}" . || die
  21. unzip ${A} images/icons/JabRef-icon-48.png || die
  22. }
  23. src_install() {
  24. java-pkg_newjar "JabRef-${MY_PV}.jar"
  25. java-pkg_dolauncher "${PN}" --jar "${PN}.jar"
  26. newicon images/icons/JabRef-icon-48.png JabRef-bin-icon.png
  27. make_desktop_entry "${PN}" JabRef-bin JabRef-bin-icon Office
  28. }