cb2bib-1.9.6.ebuild 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit qmake-utils
  5. DESCRIPTION="Tool for extracting unformatted bibliographic references"
  6. HOMEPAGE="http://www.molspaces.com/cb2bib/"
  7. SRC_URI="http://www.molspaces.com/dl/progs/${P}.tar.gz"
  8. LICENSE="GPL-3"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86"
  11. IUSE="+lzo webengine +webkit"
  12. REQUIRED_USE="?? ( webkit webengine )"
  13. DEPEND="
  14. dev-qt/qtcore:5
  15. dev-qt/qtgui:5
  16. dev-qt/qtnetwork:5
  17. dev-qt/qtwidgets:5
  18. lzo? ( dev-libs/lzo:2 )
  19. webkit? ( dev-qt/qtwebkit:5 )
  20. webengine? ( dev-qt/qtwebengine:5[widgets] )
  21. "
  22. RDEPEND="${DEPEND}"
  23. DOCS=( AUTHORS CHANGELOG COPYRIGHT )
  24. src_prepare() {
  25. default
  26. sed -i -e "s|../AUTHORS ../COPYRIGHT ../LICENSE ../CHANGELOG||" src/src.pro || die
  27. use webengine || sed -i -e "s/qtHaveModule(webenginewidgets)/false/g" src/src.pro || die
  28. use webkit || sed -i -e "s/qtHaveModule(webkitwidgets)/false/g" src/src.pro || die
  29. }
  30. src_configure() {
  31. eqmake5 \
  32. $(use !lzo && echo -config disable_lzo)
  33. }
  34. src_install() {
  35. emake INSTALL_ROOT="${D}" install
  36. einstalldocs
  37. }
  38. pkg_postinst() {
  39. einfo
  40. elog "For best functionality, emerge the following packages:"
  41. elog " app-text/poppler[utils] - for data import from PDF files"
  42. elog " app-text/dvipdfm - for data import from DVI files"
  43. elog " app-text/bibutils - for data import from ISI, endnote format"
  44. elog " media-fonts/jsmath - for displaying mathematical notation"
  45. elog " media-libs/exiftool - for proper UTF-8 metadata writing in PDF"
  46. elog " text strings"
  47. elog " virtual/latex-base - to check for BibTeX file correctness and to get"
  48. elog " nice printing through the shell script bib2pdf"
  49. einfo
  50. }