vdr-skinelchi-0.3.0.ebuild 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  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. # wrong sed in vdr-plugin-2.eclass?
  29. sed -e "s:INCLUDES += -I\$(VDRINCDIR):INCLUDES += -I\$(VDRINCDIR)/include:" \
  30. -i Makefile
  31. # gcc-6 warnings
  32. sed -e "s:auto_ptr:unique_ptr:" -i services/epgsearch_services.h
  33. }