summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-libs/libass/ChangeLog8
-rw-r--r--media-libs/libass/files/libass-0.9.7-nofc.patch29
-rw-r--r--media-libs/libass/libass-0.9.7.ebuild41
3 files changed, 77 insertions, 1 deletions
diff --git a/media-libs/libass/ChangeLog b/media-libs/libass/ChangeLog
index c60ab3edfe16..3210e04151d9 100644
--- a/media-libs/libass/ChangeLog
+++ b/media-libs/libass/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-libs/libass
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libass/ChangeLog,v 1.13 2009/06/27 09:23:54 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libass/ChangeLog,v 1.14 2009/08/10 10:19:24 aballier Exp $
+
+*libass-0.9.7 (10 Aug 2009)
+
+ 10 Aug 2009; Alexis Ballier <aballier@gentoo.org> +libass-0.9.7.ebuild,
+ +files/libass-0.9.7-nofc.patch:
+ version bump
*libass-0.9.6 (27 Jun 2009)
diff --git a/media-libs/libass/files/libass-0.9.7-nofc.patch b/media-libs/libass/files/libass-0.9.7-nofc.patch
new file mode 100644
index 000000000000..1818c27fb0bb
--- /dev/null
+++ b/media-libs/libass/files/libass-0.9.7-nofc.patch
@@ -0,0 +1,29 @@
+http://code.google.com/p/libass/issues/detail?id=3
+
+From b1233b1fa2180b8ee197569ff043acbc669db726 Mon Sep 17 00:00:00 2001
+From: Alexis Ballier <aballier@gentoo.org>
+Date: Mon, 10 Aug 2009 12:03:13 +0200
+Subject: [PATCH] Fix build without fontconfig
+
+---
+ libass/ass_fontconfig.c | 2 ++
+ 1 files changed, 2 insertions(+), 0 deletions(-)
+
+diff --git a/libass/ass_fontconfig.c b/libass/ass_fontconfig.c
+index 684c2a4..006be97 100644
+--- a/libass/ass_fontconfig.c
++++ b/libass/ass_fontconfig.c
+@@ -564,8 +564,10 @@ int fontconfig_update(FCInstance *priv)
+
+ void fontconfig_done(FCInstance *priv)
+ {
++#ifdef CONFIG_FONTCONFIG
+ if (priv && priv->config)
+ FcConfigDestroy(priv->config);
++#endif
+ if (priv && priv->path_default)
+ free(priv->path_default);
+ if (priv && priv->family_default)
+--
+1.6.4
+
diff --git a/media-libs/libass/libass-0.9.7.ebuild b/media-libs/libass/libass-0.9.7.ebuild
new file mode 100644
index 000000000000..25602a98bd41
--- /dev/null
+++ b/media-libs/libass/libass-0.9.7.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libass/libass-0.9.7.ebuild,v 1.1 2009/08/10 10:19:24 aballier Exp $
+
+EAPI=2
+
+inherit eutils
+
+DESCRIPTION="Library for SSA/ASS subtitles rendering"
+HOMEPAGE="http://code.google.com/p/libass/"
+SRC_URI="http://libass.googlecode.com/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="enca fontconfig png"
+
+RDEPEND="fontconfig? ( >=media-libs/fontconfig-2.2.0 )
+ >=media-libs/freetype-2.1.10
+ png? ( >=media-libs/libpng-1.2.15 )
+ virtual/libiconv
+ enca? ( app-i18n/enca )"
+
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-nofc.patch"
+}
+
+src_configure() {
+ econf \
+ $(use_enable enca) \
+ $(use_enable fontconfig) \
+ $(use_enable png)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc Changelog
+}