monkeystudio-1.9.0.4-r1.ebuild 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. LANGS="be es fr ru"
  5. inherit qt4-r2
  6. MY_P="mks_${PV}-src"
  7. DESCRIPTION="A cross platform Qt 4 IDE"
  8. HOMEPAGE="http://www.monkeystudio.org"
  9. SRC_URI="https://${PN}.googlecode.com/files/${MY_P}.tar.gz"
  10. LICENSE="GPL-2 LGPL-3"
  11. SLOT="0"
  12. KEYWORDS="~amd64 ~x86"
  13. IUSE="doc plugins"
  14. RDEPEND="
  15. dev-qt/designer:4
  16. dev-qt/qtcore:4
  17. dev-qt/qtgui:4
  18. dev-qt/qthelp:4
  19. dev-qt/qtsql:4
  20. x11-libs/qscintilla:=[qt4(-)]
  21. plugins? ( dev-qt/qtwebkit:4 )
  22. "
  23. DEPEND="${RDEPEND}
  24. doc? ( >=app-doc/doxygen-1.5.8 )
  25. "
  26. PATCHES=( "${FILESDIR}/${P}-install.patch" )
  27. DOCS=( ChangeLog readme.txt )
  28. S=${WORKDIR}/${MY_P}
  29. src_prepare() {
  30. # Revert upstream change designed to permit shadow building
  31. # which is causing build failure
  32. sed -e '/PACKAGE_BUILD_PATH = $$(PWD)\/build/d' \
  33. -e 's/#PACKAGE_BUILD_PATH/PACKAGE_BUILD_PATH/' \
  34. -i config.pri || die
  35. rm -r qscintilla/QScintilla-gpl-snapshot \
  36. || die "failed removing bundled qscintilla"
  37. qt4-r2_src_prepare
  38. }
  39. src_configure() {
  40. eqmake4 prefix=/usr system_qscintilla=1
  41. if use plugins ; then
  42. eqmake4 plugins/plugins.pro
  43. fi
  44. }
  45. src_install() {
  46. qt4-r2_src_install
  47. if use plugins ; then
  48. insinto /usr/lib64/monkeystudio
  49. doins -r bin/plugins/*
  50. fi
  51. insinto /usr/share/${PN}/translations
  52. local lang
  53. for lang in ${LANGS} ; do
  54. if use linguas_${lang} ; then
  55. doins datas/translations/monkeystudio_${lang}.qm
  56. fi
  57. done
  58. fperms 755 /usr/bin/${PN}
  59. if use doc ; then
  60. doxygen || die "doxygen failed"
  61. dohtml -r doc/html/*
  62. fi
  63. }