lcdtest-1.18.ebuild 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit scons-utils eutils toolchain-funcs gnome2-utils
  5. DESCRIPTION="Displays test patterns to spot dead/hot pixels on LCD screens"
  6. HOMEPAGE="http://www.brouhaha.com/~eric/software/lcdtest/"
  7. SRC_URI="http://www.brouhaha.com/~eric/software/lcdtest/download/${P}.tar.gz"
  8. LICENSE="GPL-3"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86"
  11. IUSE=""
  12. DEPEND="
  13. >=media-libs/libsdl-1.2.7-r2[X,video]
  14. >=media-libs/sdl-image-1.2.3-r1
  15. >=media-libs/sdl-ttf-2.0.9
  16. "
  17. RDEPEND="${DEPEND}
  18. media-fonts/liberation-fonts
  19. "
  20. src_prepare() {
  21. epatch "${FILESDIR}/${PV}-build-system.patch"
  22. epatch_user
  23. sed -i -e \
  24. "s|/usr/share/fonts/liberation/|/usr/share/fonts/liberation-fonts/|" \
  25. src/lcdtest.c || die
  26. }
  27. src_configure() {
  28. tc-export CC
  29. myesconsargs=(
  30. --prefix="${EPREFIX}/usr"
  31. )
  32. }
  33. src_compile() {
  34. escons
  35. }
  36. src_install() {
  37. escons --buildroot="${D}" install
  38. dodoc README
  39. }
  40. pkg_preinst() {
  41. gnome2_icon_savelist
  42. }
  43. pkg_postinst() {
  44. gnome2_icon_cache_update
  45. }
  46. pkg_postrm() {
  47. gnome2_icon_cache_update
  48. }