xxdiff-4.0_beta1_p20110426-r1.ebuild 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. PYTHON_COMPAT=( python2_7 )
  5. inherit distutils-r1 eutils qt4-r2
  6. DESCRIPTION="A graphical file and directories comparator and merge tool"
  7. HOMEPAGE="http://furius.ca/xxdiff/"
  8. SRC_URI="mirror://gentoo/${P}.tar.bz2"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="amd64 x86"
  12. IUSE=""
  13. RDEPEND="dev-qt/qtgui:4"
  14. DEPEND="${RDEPEND}
  15. virtual/yacc"
  16. src_prepare() {
  17. epatch \
  18. "${FILESDIR}"/${P}-gcc47.patch \
  19. "${FILESDIR}"/${P}-bison3.patch
  20. pushd src >/dev/null
  21. sed -i -e '/qPixmapFromMimeSource/d' *.ui || die #365019
  22. qt4-r2_src_prepare
  23. popd
  24. distutils-r1_src_prepare
  25. }
  26. src_configure() {
  27. pushd src >/dev/null
  28. qt4-r2_src_configure
  29. cat Makefile.extra >> Makefile
  30. popd
  31. distutils-r1_src_configure
  32. }
  33. src_compile() {
  34. pushd src >/dev/null
  35. qt4-r2_src_compile
  36. popd
  37. distutils-r1_src_compile
  38. }
  39. src_install() {
  40. dobin bin/xxdiff
  41. distutils-r1_src_install
  42. dodoc CHANGES README* TODO doc/*.txt src/doc.txt
  43. dohtml doc/*.{png,html} src/doc.html
  44. # example tools, use these to build your own ones
  45. insinto /usr/share/doc/${PF}
  46. doins -r tools
  47. }