1 |
commit: 9b67e059e10ded2f3f0e562c2c9c6457ae31f8c1 |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jun 4 18:14:04 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 28 17:38:28 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b67e059 |
7 |
|
8 |
media-video/aegisub: sync 9999 with the latest snapshot ebuild |
9 |
|
10 |
Package-Manager: portage-2.3.0_rc1 |
11 |
|
12 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
13 |
|
14 |
media-video/aegisub/aegisub-9999.ebuild | 77 +++++++++++++++++++-------------- |
15 |
1 file changed, 44 insertions(+), 33 deletions(-) |
16 |
|
17 |
diff --git a/media-video/aegisub/aegisub-9999.ebuild b/media-video/aegisub/aegisub-9999.ebuild |
18 |
index d8665bb..cca3602 100644 |
19 |
--- a/media-video/aegisub/aegisub-9999.ebuild |
20 |
+++ b/media-video/aegisub/aegisub-9999.ebuild |
21 |
@@ -2,69 +2,65 @@ |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
# $Id$ |
24 |
|
25 |
-EAPI=5 |
26 |
+EAPI=6 |
27 |
|
28 |
-AUTOTOOLS_AUTORECONF=1 |
29 |
-AUTOTOOLS_IN_SOURCE_BUILD=1 |
30 |
-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 uk_UA vi zh_CN zh_TW" |
31 |
-WX_GTK_VER="3.0" |
32 |
+WX_GTK_VER=3.0 |
33 |
+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 sr_RS@latin uk_UA vi zh_CN zh_TW" |
34 |
|
35 |
-inherit autotools-utils fdo-mime flag-o-matic gnome2-utils l10n wxwidgets git-r3 |
36 |
+inherit autotools fdo-mime flag-o-matic gnome2-utils l10n wxwidgets git-r3 |
37 |
|
38 |
DESCRIPTION="Advanced subtitle editor" |
39 |
-HOMEPAGE="http://www.aegisub.org/" |
40 |
+HOMEPAGE="http://www.aegisub.org/ https://github.com/Aegisub/Aegisub" |
41 |
EGIT_REPO_URI="git://github.com/Aegisub/Aegisub.git" |
42 |
+# Submodules are used to pull bundled libraries. |
43 |
+EGIT_SUBMODULES=() |
44 |
|
45 |
-LICENSE="BSD" |
46 |
+LICENSE="BSD MIT" |
47 |
SLOT="0" |
48 |
KEYWORDS="" |
49 |
-IUSE="alsa debug +ffmpeg +fftw openal oss portaudio pulseaudio spell +uchardet" |
50 |
+IUSE="alsa debug +fftw openal oss portaudio pulseaudio spell test +uchardet" |
51 |
|
52 |
-# configure.ac specifies minimal versions for some of the dependencies below. |
53 |
-# However, most of these minimal versions date back to 2006-2012 yy. |
54 |
-# Such version specifiers are meaningless nowadays, so they are omitted. |
55 |
-# |
56 |
# aegisub bundles luabins (https://github.com/agladysh/luabins). |
57 |
# Unfortunately, luabins upstream is practically dead since 2010. |
58 |
-# Thus unbundling luabins is not worth the effort. |
59 |
+# Thus unbundling luabins isn't worth the effort. |
60 |
RDEPEND=" |
61 |
+ x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,debug?] |
62 |
dev-lang/luajit:2[lua52compat] |
63 |
dev-libs/boost:=[icu,nls,threads] |
64 |
dev-libs/icu:= |
65 |
+ media-libs/ffmpegsource:= |
66 |
media-libs/fontconfig |
67 |
media-libs/freetype |
68 |
media-libs/libass:=[fontconfig] |
69 |
+ sys-libs/zlib |
70 |
virtual/libiconv |
71 |
virtual/opengl |
72 |
- x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,debug?] |
73 |
- |
74 |
alsa? ( media-libs/alsa-lib ) |
75 |
+ fftw? ( >=sci-libs/fftw-3.3:= ) |
76 |
openal? ( media-libs/openal ) |
77 |
portaudio? ( =media-libs/portaudio-19* ) |
78 |
pulseaudio? ( media-sound/pulseaudio ) |
79 |
- |
80 |
- ffmpeg? ( media-libs/ffmpegsource:= ) |
81 |
- fftw? ( >=sci-libs/fftw-3.3:= ) |
82 |
- |
83 |
spell? ( app-text/hunspell ) |
84 |
uchardet? ( dev-libs/uchardet ) |
85 |
" |
86 |
DEPEND="${RDEPEND} |
87 |
- oss? ( virtual/os-headers ) |
88 |
dev-util/intltool |
89 |
sys-devel/gettext |
90 |
virtual/pkgconfig |
91 |
-" |
92 |
-REQUIRED_USE=" |
93 |
- || ( alsa openal oss portaudio pulseaudio ) |
94 |
+ oss? ( virtual/os-headers ) |
95 |
+ test? ( |
96 |
+ ~dev-cpp/gtest-1.7.0 |
97 |
+ dev-lua/busted |
98 |
+ dev-lua/luarocks |
99 |
+ ) |
100 |
" |
101 |
|
102 |
-# submodules are used to pull in bundled libraries |
103 |
-EGIT_SUBMODULES=() |
104 |
+REQUIRED_USE="|| ( alsa openal oss portaudio pulseaudio )" |
105 |
|
106 |
PATCHES=( |
107 |
- "${FILESDIR}/${PN}-3.2.2_p20160306-fix-luajit-unbundling.patch" |
108 |
- "${FILESDIR}/${PN}-3.2.2_p20160306-respect-user-compiler-flags.patch" |
109 |
+ "${FILESDIR}/3.2.2_p20160518/${PN}-3.2.2_p20160518-fix-system-luajit-build.patch" |
110 |
+ "${FILESDIR}/3.2.2_p20160518/${PN}-3.2.2_p20160518-respect-compiler-flags.patch" |
111 |
+ "${FILESDIR}/3.2.2_p20160518/${PN}-3.2.2_p20160518-support-system-gtest.patch" |
112 |
) |
113 |
|
114 |
pkg_pretend() { |
115 |
@@ -74,6 +70,11 @@ pkg_pretend() { |
116 |
} |
117 |
|
118 |
src_prepare() { |
119 |
+ default_src_prepare |
120 |
+ |
121 |
+ # Remove tests that require unavailable uuid Lua module. |
122 |
+ rm automation/tests/modules/lfs.moon || die |
123 |
+ |
124 |
remove_locale() { |
125 |
rm "po/${1}.po" || die |
126 |
} |
127 |
@@ -82,20 +83,21 @@ src_prepare() { |
128 |
l10n_for_each_disabled_locale_do remove_locale |
129 |
|
130 |
# See http://devel.aegisub.org/ticket/1914 |
131 |
- config_rpath_update "${S}/config.rpath" |
132 |
+ config_rpath_update "${S}"/config.rpath |
133 |
|
134 |
- autotools-utils_src_prepare |
135 |
+ eautoreconf |
136 |
} |
137 |
|
138 |
src_configure() { |
139 |
- # Prevent sandbox violation from OpenAL detection. Gentoo bug #508184. |
140 |
+ # Prevent access violations from OpenAL detection. See Gentoo bug 508184. |
141 |
use openal && export agi_cv_with_openal="yes" |
142 |
+ |
143 |
local myeconfargs=( |
144 |
--disable-update-checker |
145 |
+ --with-ffms2 |
146 |
--with-system-luajit |
147 |
$(use_enable debug) |
148 |
$(use_with alsa) |
149 |
- $(use_with ffmpeg ffms2) |
150 |
$(use_with fftw fftw3) |
151 |
$(use_with openal) |
152 |
$(use_with oss) |
153 |
@@ -104,7 +106,16 @@ src_configure() { |
154 |
$(use_with spell hunspell) |
155 |
$(use_with uchardet) |
156 |
) |
157 |
- autotools-utils_src_configure |
158 |
+ econf "${myeconfargs[@]}" |
159 |
+} |
160 |
+ |
161 |
+src_compile() { |
162 |
+ emake WITH_SYSTEM_GTEST=$(usex test) |
163 |
+} |
164 |
+ |
165 |
+src_test() { |
166 |
+ emake test-automation |
167 |
+ emake test-libaegisub |
168 |
} |
169 |
|
170 |
pkg_preinst() { |