vdr-skinelchi-0.2.7.ebuild 867 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="4"
  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. }