summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-video/aegisub/ChangeLog7
-rw-r--r--media-video/aegisub/aegisub-3.1.2.ebuild33
2 files changed, 37 insertions, 3 deletions
diff --git a/media-video/aegisub/ChangeLog b/media-video/aegisub/ChangeLog
index 9e21dfa9a03f..52bf6b45ff5a 100644
--- a/media-video/aegisub/ChangeLog
+++ b/media-video/aegisub/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-video/aegisub
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/aegisub/ChangeLog,v 1.14 2014/02/04 16:52:19 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/aegisub/ChangeLog,v 1.15 2014/06/09 19:21:47 maksbotan Exp $
+
+ 09 Jun 2014; Maxim Koltsov <maksbotan@gentoo.org> aegisub-3.1.2.ebuild:
+ Update icon cache and desktop database, bug #508116. Respect LINGUAS, bug
+ #508118. Fix sandbox access violation with openal, bug #508184. Thanks to
+ Nikoli.
04 Feb 2014; Samuli Suominen <ssuominen@gentoo.org> aegisub-3.1.2.ebuild,
aegisub-9999.ebuild:
diff --git a/media-video/aegisub/aegisub-3.1.2.ebuild b/media-video/aegisub/aegisub-3.1.2.ebuild
index f25b56165e5c..f147d4c8f07b 100644
--- a/media-video/aegisub/aegisub-3.1.2.ebuild
+++ b/media-video/aegisub/aegisub-3.1.2.ebuild
@@ -1,13 +1,14 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/aegisub/aegisub-3.1.2.ebuild,v 1.2 2014/02/04 16:52:19 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/aegisub/aegisub-3.1.2.ebuild,v 1.3 2014/06/09 19:21:47 maksbotan Exp $
EAPI="5"
AUTOTOOLS_AUTORECONF="1"
AUTOTOOLS_IN_SOURCE_BUILD="1"
WX_GTK_VER="3.0"
-inherit autotools-utils wxwidgets
+PLOCALES="ar bg ca cs da de el es eu fa fi fr_FR gl hu id it ja ko nl pl pt_BR pt_PT ru sr_RS@latin sr_RS vi zh_CN zh_TW"
+inherit autotools-utils wxwidgets l10n fdo-mime gnome2-utils
DESCRIPTION="Advanced SSA/ASS subtitle editor"
HOMEPAGE="http://www.aegisub.org/"
@@ -52,7 +53,21 @@ DEPEND="${RDEPEND}
S=${WORKDIR}/${P}/${PN}
+src_prepare() {
+ my_rm_loc() {
+ sed -i -e "s:${1}\.po::" po/Makefile || die
+ rm "po/${1}.po" || die
+ }
+
+ l10n_find_plocales_changes 'po' '' '.po'
+ l10n_for_each_disabled_locale_do my_rm_loc
+
+ autotools-utils_src_prepare
+}
+
src_configure() {
+ # testing openal does not work in sandbox, bug #508184
+ use openal && export agi_cv_with_openal="yes"
local myeconfargs=(
$(use_with alsa)
$(use_with oss)
@@ -66,3 +81,17 @@ src_configure() {
)
autotools-utils_src_configure
}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}