vdr-skinenigmang-0.1.2.ebuild 1018 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. DESCRIPTION="VDR - Skin Plugin: enigma-ng"
  6. HOMEPAGE="http://andreas.vdr-developer.org/enigmang/"
  7. SRC_URI="http://andreas.vdr-developer.org/enigmang/download/${P}.tgz"
  8. SLOT="0"
  9. LICENSE="GPL-2"
  10. KEYWORDS="~amd64 ~x86"
  11. IUSE="imagemagick"
  12. DEPEND=">=media-video/vdr-1.5.7"
  13. RDEPEND="${DEPEND}
  14. x11-themes/skinenigmang-logos
  15. imagemagick? ( media-gfx/imagemagick[cxx] )"
  16. S=${WORKDIR}/skinenigmang-${PV}
  17. src_prepare() {
  18. vdr-plugin-2_src_prepare
  19. use imagemagick && sed -i "s:#HAVE_IMAGEMAGICK:HAVE_IMAGEMAGICK:" Makefile
  20. # TODO: implement a clean query / extra tool vdr-config
  21. sed -i -e '/^VDRLOCALE/d' Makefile
  22. if has_version ">=media-video/vdr-1.5.9"; then
  23. sed -i -e 's/.*$(VDRLOCALE).*/ifeq (1,1)/' Makefile
  24. fi
  25. sed -i -e "s:-I/usr/local/include/ImageMagick::" Makefile
  26. }
  27. src_install() {
  28. vdr-plugin-2_src_install
  29. insinto /etc/vdr/themes
  30. doins "${S}"/themes/*
  31. }