libass-0.11.2.ebuild 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils multilib-minimal
  5. DESCRIPTION="Library for SSA/ASS subtitles rendering"
  6. HOMEPAGE="https://github.com/libass/libass"
  7. SRC_URI="https://github.com/libass/libass/releases/download/${PV}/${P}.tar.xz"
  8. LICENSE="ISC"
  9. SLOT="0/5" # subslot = libass soname version
  10. KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
  11. IUSE="+enca +fontconfig +harfbuzz static-libs"
  12. RDEPEND="fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] )
  13. >=media-libs/freetype-2.5.0.1:2[${MULTILIB_USEDEP}]
  14. >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
  15. >=dev-libs/fribidi-0.19.5-r1[${MULTILIB_USEDEP}]
  16. harfbuzz? ( >=media-libs/harfbuzz-0.9.12[truetype,${MULTILIB_USEDEP}] )
  17. enca? ( >=app-i18n/enca-1.14-r1[${MULTILIB_USEDEP}] )"
  18. DEPEND="${RDEPEND}
  19. virtual/pkgconfig"
  20. X86_CPU_OPTS="abi_x86_32 abi_x86_64"
  21. for i in ${X86_CPU_OPTS} ; do
  22. DEPEND="${DEPEND}
  23. ${i}? ( dev-lang/yasm )"
  24. done
  25. DOCS="Changelog"
  26. multilib_src_configure() {
  27. ECONF_SOURCE="${S}" econf \
  28. $(use_enable enca) \
  29. $(use_enable fontconfig) \
  30. $(use_enable harfbuzz) \
  31. $(use_enable static-libs static)
  32. }
  33. multilib_src_install_all() {
  34. einstalldocs
  35. prune_libtool_files
  36. }