krename-4.0.9-r4.ebuild 988 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. KDE_LINGUAS="bs cs de el es fr hu it ja lt nl pl pt ru sl sv tr uk zh_CN"
  5. inherit kde4-base
  6. DESCRIPTION="KRename - a very powerful batch file renamer"
  7. HOMEPAGE="http://www.krename.net/"
  8. SRC_URI="mirror://sourceforge/krename/${P}.tar.bz2"
  9. LICENSE="GPL-2"
  10. SLOT="4"
  11. KEYWORDS="~amd64 ~x86"
  12. IUSE="debug exif pdf taglib truetype"
  13. RDEPEND="
  14. exif? ( >=media-gfx/exiv2-0.13:= )
  15. pdf? ( >=app-text/podofo-0.8 )
  16. taglib? ( >=media-libs/taglib-1.5 )
  17. truetype? ( media-libs/freetype:2 )
  18. "
  19. DEPEND="${RDEPEND}
  20. sys-devel/gettext
  21. "
  22. PATCHES=(
  23. "${FILESDIR}/${P}-freetype-include.patch"
  24. "${FILESDIR}/${P}-desktop-file.patch"
  25. "${FILESDIR}/${P}-gcc6.patch"
  26. )
  27. DOCS=( AUTHORS README TODO )
  28. src_configure() {
  29. local mycmakeargs=(
  30. -DWITH_Exiv2=$(usex exif)
  31. -DWITH_Taglib=$(usex taglib)
  32. -DWITH_LIBPODOFO=$(usex pdf)
  33. -DWITH_Freetype=$(usex truetype)
  34. )
  35. kde4-base_src_configure
  36. }