libass-0.13.2.ebuild 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Copyright 1999-2015 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 ~arm64 ~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="+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. DEPEND="${RDEPEND}
  18. virtual/pkgconfig"
  19. X86_CPU_OPTS="abi_x86_32 abi_x86_64"
  20. for i in ${X86_CPU_OPTS} ; do
  21. DEPEND="${DEPEND}
  22. ${i}? ( dev-lang/yasm )"
  23. done
  24. DOCS="Changelog"
  25. multilib_src_configure() {
  26. ECONF_SOURCE="${S}" econf \
  27. $(use_enable fontconfig) \
  28. $(use_enable harfbuzz) \
  29. $(use_enable static-libs static) \
  30. --disable-require-system-font-provider
  31. }
  32. multilib_src_install_all() {
  33. einstalldocs
  34. prune_libtool_files
  35. }