kscope-1.9.4-r2.ebuild 919 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils multilib qt4-r2
  5. DESCRIPTION="Source Editing Environment based on Qt"
  6. HOMEPAGE="http://kscope.sourceforge.net/"
  7. SRC_URI="mirror://sourceforge/kscope/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="4"
  10. KEYWORDS="amd64 ~ppc ~sparc x86"
  11. IUSE=""
  12. RDEPEND="dev-qt/qtcore:4
  13. dev-qt/qtgui:4
  14. x11-libs/qscintilla:=[qt4(-)]"
  15. DEPEND="${RDEPEND}"
  16. DOCS="ChangeLog"
  17. src_prepare() {
  18. sed -i -e "s:/usr/local:/usr:" config || die
  19. sed -i \
  20. -e "s:\$\${QSCI_ROOT_PATH}/include/Qsci:& /usr/include/qt4/Qsci:g" \
  21. -e "s:\$\${QSCI_ROOT_PATH}/lib:& -L/usr/lib/qt4:g" \
  22. -e "s:/lib:/$(get_libdir):g" \
  23. app/app.pro core/core.pro cscope/cscope.pro editor/editor.pro \
  24. || die
  25. # fix build failure with parallel make
  26. echo "CONFIG += ordered" >> kscope.pro
  27. epatch "${FILESDIR}/${P}"-{actions,underlinking}.patch
  28. }