vdr-skinenigmang-0.1.2_p20120618.ebuild 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="4"
  4. inherit vdr-plugin-2
  5. HG_REVISION="44e1d4ad341963d099ccc9bc4017ae4b563892d4"
  6. HG_REVISION_DATE="20120618"
  7. DESCRIPTION="VDR - Skin Plugin: enigma-ng"
  8. HOMEPAGE="http://andreas.vdr-developer.org/enigmang/"
  9. SRC_URI="http://vdr.websitec.de/download/vdr-skinenigmang/vdr-skinenigmang-0.1.2_p${HG_REVISION_DATE}.tar.gz"
  10. SLOT="0"
  11. LICENSE="GPL-2"
  12. KEYWORDS="~amd64 ~x86"
  13. IUSE="imagemagick"
  14. DEPEND=">=media-video/vdr-1.5.7"
  15. RDEPEND="${DEPEND}
  16. x11-themes/skinenigmang-logos
  17. imagemagick? ( media-gfx/imagemagick[cxx] )"
  18. S="${WORKDIR}/vdr-plugin-skinenigmang-${HG_REVISION}"
  19. src_prepare() {
  20. vdr-plugin-2_src_prepare
  21. use imagemagick && sed -i "s:#HAVE_IMAGEMAGICK:HAVE_IMAGEMAGICK:" Makefile
  22. # TODO: implement a clean query / extra tool vdr-config
  23. sed -i -e '/^VDRLOCALE/d' Makefile
  24. if has_version ">=media-video/vdr-1.5.9"; then
  25. sed -i -e 's/.*$(VDRLOCALE).*/ifeq (1,1)/' Makefile
  26. fi
  27. sed -i -e "s:-I/usr/local/include/ImageMagick::" Makefile
  28. }
  29. src_install() {
  30. vdr-plugin-2_src_install
  31. insinto /etc/vdr/themes
  32. doins "${S}"/themes/*
  33. }