From 76759395fb326178680c1f36b0f1f41ff910fa6f Mon Sep 17 00:00:00 2001 From: Maxim Koltsov Date: Mon, 9 Jun 2014 19:21:47 +0000 Subject: Update icon cache and desktop database, bug #508116. Respect LINGUAS, bug #508118. Fix sandbox access violation with openal, bug #508184. Thanks to Nikoli. (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key F8DBDADE) --- media-video/aegisub/ChangeLog | 7 ++++++- media-video/aegisub/aegisub-3.1.2.ebuild | 33 ++++++++++++++++++++++++++++++-- 2 files changed, 37 insertions(+), 3 deletions(-) (limited to 'media-video') 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 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 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 +} -- cgit v1.2.3-65-gdbad