vdr-skinenigmang-0.1.2_p20130302.ebuild 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Copyright 1999-2013 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. inherit vdr-plugin-2
  5. HG_REVISION="0147c0ee6222bd10714ef36f42dcee94495bdb92"
  6. HG_REVISION_DATE="20130302"
  7. DESCRIPTION="VDR - Skin Plugin: enigma-ng"
  8. HOMEPAGE="http://andreas.vdr-developer.org/enigmang/"
  9. SRC_URI="http://projects.vdr-developer.org/git/vdr-plugin-skinenigmang.git/snapshot/vdr-plugin-skinenigmang-${HG_REVISION}.tar.gz ->
  10. vdr-skinenigmang-0.1.2_p${HG_REVISION_DATE}.tar.gz"
  11. SLOT="0"
  12. LICENSE="GPL-2"
  13. KEYWORDS="~amd64 ~x86"
  14. IUSE="imagemagick"
  15. DEPEND=">=media-video/vdr-1.5.7"
  16. RDEPEND="${DEPEND}
  17. x11-themes/skinenigmang-logos
  18. imagemagick? ( media-gfx/imagemagick[cxx] )"
  19. S="${WORKDIR}/vdr-plugin-skinenigmang-${HG_REVISION}"
  20. src_prepare() {
  21. # remove untranslated languages files
  22. rm po/{cs_CZ,da_DK,el_GR,et_EE,hr_HR,nn_NO,pl_PL,pt_PT,ro_RO,sl_SI,sv_SE,tr_TR}.po
  23. vdr-plugin-2_src_prepare
  24. use imagemagick && sed -i "s:#HAVE_IMAGEMAGICK:HAVE_IMAGEMAGICK:" Makefile
  25. sed -i Makefile \
  26. -e "s:-I/usr/local/include/ImageMagick:\$(shell pkg-config --cflags MagickCore):" \
  27. -e "s:-lMagick++:\$(shell pkg-config --libs Magick++):"
  28. }
  29. src_install() {
  30. vdr-plugin-2_src_install
  31. insinto /etc/vdr/themes
  32. doins "${S}"/themes/*
  33. }