fracplanet-0.4.0-r1.ebuild 924 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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="Fractal planet and terrain generator"
  6. HOMEPAGE="https://sourceforge.net/projects/fracplanet/"
  7. SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86"
  11. IUSE=""
  12. RDEPEND="
  13. dev-libs/boost:=
  14. dev-qt/qtcore:4
  15. dev-qt/qtgui:4
  16. dev-qt/qtopengl:4
  17. virtual/glu
  18. virtual/opengl
  19. "
  20. DEPEND="${RDEPEND}
  21. dev-libs/libxslt"
  22. S=${WORKDIR}/${PN}
  23. PATCHES=(
  24. "${FILESDIR}/${P}-gold.patch"
  25. "${FILESDIR}/${P}-gcc6.patch"
  26. )
  27. HTML_DOCS=( fracplanet.{htm,css} )
  28. src_configure() {
  29. eqmake4 fracplanet.pro
  30. }
  31. src_compile() {
  32. xsltproc -stringparam version ${PV} -html htm_to_qml.xsl fracplanet.htm \
  33. | sed 's/"/\\"/g' | sed 's/^/"/g' | sed 's/$/\\n"/g'> usage_text.h || die
  34. default
  35. }
  36. src_install() {
  37. dobin ${PN}
  38. doman man/man1/${PN}.1
  39. einstalldocs
  40. }