vdr-skinelchi-0.2.7-r1.ebuild 999 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. inherit vdr-plugin-2
  5. MY_P=${P/_pre/pre}
  6. DESCRIPTION="VDR Skin Plugin: skinelchi"
  7. HOMEPAGE="http://firefly.vdr-developer.org/skinelchi"
  8. SRC_URI="http://firefly.vdr-developer.org/skinelchi/${P}.tar.bz2"
  9. SLOT="0"
  10. LICENSE="GPL-2"
  11. KEYWORDS="~amd64 ~x86"
  12. IUSE="imagemagick"
  13. DEPEND=">=media-video/vdr-1.6
  14. imagemagick? ( media-gfx/imagemagick )"
  15. RDEPEND="x11-themes/vdr-channel-logos"
  16. S=${WORKDIR}/${MY_P#vdr-}
  17. VDR_RCADDON_FILE="${FILESDIR}/rc-addon-0.1.1_pre2-r1.sh"
  18. src_prepare() {
  19. vdr-plugin-2_src_prepare
  20. if ! use imagemagick; then
  21. einfo "Disabling imagemagick-support."
  22. sed -i "${S}"/Makefile \
  23. -e '/^[[:space:]]*SKINELCHI_HAVE_IMAGEMAGICK = 1/s/^/#/'
  24. fi
  25. sed -i "${S}"/DisplayChannel.c \
  26. -e "s:/hqlogos::" \
  27. -e "s:/logos::"
  28. if has_version ">=media-video/vdr-1.7.33"; then
  29. sed -e "s:int TimerMatch:eTimerMatch TimerMatch:" \
  30. -i DisplayChannel.c
  31. fi
  32. }