1 |
commit: c2677e5cfc8e1dd211890be4159fc5d604e9b434 |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Nov 2 08:26:28 2015 +0000 |
4 |
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 2 08:56:58 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2677e5c |
7 |
|
8 |
media-video/aegisub: version bump to 3.0.4 |
9 |
|
10 |
Add the last aegisub version that has: |
11 |
- dependency on <wxGTK-3.0 |
12 |
- no dependency on boost |
13 |
- no dependency on icu |
14 |
- optional libass dependency |
15 |
- optional lua dependency |
16 |
|
17 |
It also has the similar changes as 3.2.2 ebuild: |
18 |
- proper compiler flags handling |
19 |
- minor lua issues fixed |
20 |
- cleaned up dependencies |
21 |
|
22 |
media-video/aegisub/Manifest | 1 + |
23 |
media-video/aegisub/aegisub-3.0.4.ebuild | 108 +++++++++++++++++++++ |
24 |
.../files/aegisub-3.0.4-fix-lua-macro.patch | 13 +++ |
25 |
...aegisub-3.0.4-respect-user-compiler-flags.patch | 30 ++++++ |
26 |
4 files changed, 152 insertions(+) |
27 |
|
28 |
diff --git a/media-video/aegisub/Manifest b/media-video/aegisub/Manifest |
29 |
index a493a82..661bb74 100644 |
30 |
--- a/media-video/aegisub/Manifest |
31 |
+++ b/media-video/aegisub/Manifest |
32 |
@@ -1,4 +1,5 @@ |
33 |
DIST aegisub-2.1.9.tar.xz 1670496 SHA256 e0591c96183f7713bb14f9d357a2e12bdd3478e4d0a8fad77f14f87a4fc22db7 SHA512 bdb02e3d29db2b7ed165eaf1d541515c15f22199bb209d517089e2c35289b7fc22f6159589004c7f8667a57d26eb7ab6211f9d85ca4bbcd076c5856ac10a3d4f WHIRLPOOL 4ac402e067ff0d863042a8f314c1e55154bacfcc13103772e7c4036b7d927f687b2172003eb51e35469f7af2b640e20f224ff1fa5be83f729eacfaac89c73144 |
34 |
+DIST aegisub-3.0.4.tar.xz 4155728 SHA256 7d5d8b94da02278b3327f24dd546c0c897c4b369bd2da9e094dc60371422019a SHA512 2917195a61d16578a83ce0b69006dd0269c086c6eff2f622c47d9880697e4e531a7c0c0232c187f9023635c9d3857a1d6a0cee4f6251e49d22e2b625ac5dda7f WHIRLPOOL 60bd3e0374a60f6af62fe450488e8c68e18957283fff59d704f40e192da624bdf90d68c3cea41122e5b9ca440d218c3bd6d9d8091ed5226a2e9d1b9fdc2ce689 |
35 |
DIST aegisub-3.1.2.tar.xz 4126244 SHA256 36ebfd05cc642b050da1e91ce2d2082b317a37bdfab109e191f861170d7cff86 SHA512 d15e16f9f98c01447b72cde1998c915a2bfc1aa918a4380b54303de8e88ef881f46c3896ab9dc5eddaf4f1376f0908abd8427dbf6af395e6e0b3969ddca402ab WHIRLPOOL fa7afa1a3e736a410d686bc14d173518267e4b1570a468d9871334f06af821040fe7f40d6ba3b1bece9350a70dd43613c4aedfe8480629a283c9a16a2f54ab6d |
36 |
DIST aegisub-3.1.3.tar.xz 4215196 SHA256 efea5bc2bc5e0651ada4f65cfdd8af1b422a15f87933710d11287bf51e2b5e58 SHA512 c406925623e7b8425df47d1cd31ef77d536861335d25c626ecb916ef091341a8156879430f094ffa1d27490a65f79e2edb84593609d589834f3411b2c2841297 WHIRLPOOL 12e40c2ce78e1659046d093d7d34b68b7ceda2744c36be0e15a71a379cc3ced4fb8cde2c364bbd3b7efa803f78229794d5d417c601ae140d79e0c0a9a2711fb0 |
37 |
DIST aegisub-3.2.2.tar.xz 5252052 SHA256 c55e33945b82d8513c02ea6e782f0d72c726adcd3707e95b8c0022f6151e6885 SHA512 54f825e52f238fef8d5cc31c37436e21355aee27883347f905271e5d2a8ff2a77e1b67d5aef38b0f8468bd0bad851fe944e02de27ec96310b902fbe5b1086722 WHIRLPOOL fe948edbb01f11385e14d1912b73942605df18325fcd95f4284a3c2edb73778d90d73038ac4a062e211fd56879590040e3c558fe1e361ec9fe2eee6a5c016448 |
38 |
|
39 |
diff --git a/media-video/aegisub/aegisub-3.0.4.ebuild b/media-video/aegisub/aegisub-3.0.4.ebuild |
40 |
new file mode 100644 |
41 |
index 0000000..f94961a |
42 |
--- /dev/null |
43 |
+++ b/media-video/aegisub/aegisub-3.0.4.ebuild |
44 |
@@ -0,0 +1,108 @@ |
45 |
+# Copyright 1999-2015 Gentoo Foundation |
46 |
+# Distributed under the terms of the GNU General Public License v2 |
47 |
+# $Id$ |
48 |
+ |
49 |
+EAPI=5 |
50 |
+ |
51 |
+AUTOTOOLS_AUTORECONF=1 |
52 |
+AUTOTOOLS_IN_SOURCE_BUILD=1 |
53 |
+PLOCALES="ar ca cs da de el es eu fa fi fr_FR hu id it ja ko nl pl pt_BR pt_PT ru sr_RS@latin sr_RS vi zh_CN zh_TW" |
54 |
+WX_GTK_VER="2.9" |
55 |
+ |
56 |
+inherit autotools-utils fdo-mime gnome2-utils l10n wxwidgets |
57 |
+ |
58 |
+DESCRIPTION="Advanced subtitle editor" |
59 |
+HOMEPAGE="http://www.aegisub.org/" |
60 |
+SRC_URI="http://ftp.aegisub.org/pub/releases/${P}.tar.xz" |
61 |
+ |
62 |
+LICENSE="BSD" |
63 |
+SLOT="0" |
64 |
+KEYWORDS="~amd64 ~x86" |
65 |
+IUSE="alsa debug +ffmpeg +fftw +libass lua openal oss portaudio pulseaudio spell" |
66 |
+ |
67 |
+# configure.ac specifies minimal versions for some of the dependencies below. |
68 |
+# However, most of these minimal versions date back to 2006-2010 yy. |
69 |
+# Such version specifiers are meaningless nowadays, so they are omitted. |
70 |
+RDEPEND=" |
71 |
+ >=x11-libs/wxGTK-2.9.3:${WX_GTK_VER}[X,opengl,debug?] |
72 |
+ media-libs/fontconfig |
73 |
+ media-libs/freetype |
74 |
+ virtual/libiconv |
75 |
+ virtual/opengl |
76 |
+ |
77 |
+ alsa? ( media-libs/alsa-lib ) |
78 |
+ openal? ( media-libs/openal ) |
79 |
+ portaudio? ( =media-libs/portaudio-19* ) |
80 |
+ pulseaudio? ( media-sound/pulseaudio ) |
81 |
+ |
82 |
+ ffmpeg? ( >=media-libs/ffmpegsource-2.16:= ) |
83 |
+ fftw? ( >=sci-libs/fftw-3.3:= ) |
84 |
+ |
85 |
+ libass? ( media-libs/libass[fontconfig] ) |
86 |
+ lua? ( =dev-lang/lua-5.1*:= ) |
87 |
+ spell? ( app-text/hunspell ) |
88 |
+" |
89 |
+DEPEND="${RDEPEND} |
90 |
+ oss? ( virtual/os-headers ) |
91 |
+ dev-util/intltool |
92 |
+ sys-devel/gettext |
93 |
+ virtual/pkgconfig |
94 |
+" |
95 |
+REQUIRED_USE=" |
96 |
+ || ( alsa openal oss portaudio pulseaudio ) |
97 |
+" |
98 |
+ |
99 |
+PATCHES=( |
100 |
+ "${FILESDIR}/${P}-fix-lua-macro.patch" |
101 |
+ "${FILESDIR}/${P}-respect-user-compiler-flags.patch" |
102 |
+) |
103 |
+ |
104 |
+S="${WORKDIR}/${PN}/${PN}" |
105 |
+ |
106 |
+src_prepare() { |
107 |
+ cp /usr/share/gettext/config.rpath . || die |
108 |
+ |
109 |
+ remove_locale() { |
110 |
+ sed -i -e "s/${1}\.po//" po/Makefile || die |
111 |
+ } |
112 |
+ |
113 |
+ l10n_find_plocales_changes 'po' '' '.po' |
114 |
+ l10n_for_each_disabled_locale_do remove_locale |
115 |
+ |
116 |
+ autotools-utils_src_prepare |
117 |
+} |
118 |
+ |
119 |
+src_configure() { |
120 |
+ # Prevent sandbox violation from OpenAL detection. Gentoo bug #508184. |
121 |
+ use openal && export agi_cv_with_openal="yes" |
122 |
+ local myeconfargs=( |
123 |
+ --disable-crash-reporter |
124 |
+ --disable-update-checker |
125 |
+ $(use_enable debug) |
126 |
+ $(use_with alsa) |
127 |
+ $(use_with ffmpeg ffms2) |
128 |
+ $(use_with fftw fftw3) |
129 |
+ $(use_with libass) |
130 |
+ $(use_with lua) |
131 |
+ $(use_with openal) |
132 |
+ $(use_with oss) |
133 |
+ $(use_with portaudio) |
134 |
+ $(use_with pulseaudio libpulse) |
135 |
+ $(use_with spell hunspell) |
136 |
+ ) |
137 |
+ autotools-utils_src_configure |
138 |
+} |
139 |
+ |
140 |
+pkg_preinst() { |
141 |
+ gnome2_icon_savelist |
142 |
+} |
143 |
+ |
144 |
+pkg_postinst() { |
145 |
+ fdo-mime_desktop_database_update |
146 |
+ gnome2_icon_cache_update |
147 |
+} |
148 |
+ |
149 |
+pkg_postrm() { |
150 |
+ fdo-mime_desktop_database_update |
151 |
+ gnome2_icon_cache_update |
152 |
+} |
153 |
|
154 |
diff --git a/media-video/aegisub/files/aegisub-3.0.4-fix-lua-macro.patch b/media-video/aegisub/files/aegisub-3.0.4-fix-lua-macro.patch |
155 |
new file mode 100644 |
156 |
index 0000000..c7f7e32 |
157 |
--- /dev/null |
158 |
+++ b/media-video/aegisub/files/aegisub-3.0.4-fix-lua-macro.patch |
159 |
@@ -0,0 +1,13 @@ |
160 |
+diff --git a/aegisub/configure.ac b/aegisub/configure.ac |
161 |
+index d961bd6..17df012 100644 |
162 |
+--- a/aegisub/configure.ac |
163 |
++++ b/aegisub/configure.ac |
164 |
+@@ -369,7 +369,7 @@ AC_ARG_WITH(lua, |
165 |
+ AS_HELP_STRING([--without-lua], |
166 |
+ [build without lua 5.1 (auto4)])) |
167 |
+ |
168 |
+-AS_IF([test x$with_lua = xno], [$with_auto4_lua="no"; lua_disabled="(disabled)"], [ |
169 |
++AS_IF([test x$with_lua = xno], [with_auto4_lua="no"; lua_disabled="(disabled)"], [ |
170 |
+ # First try pkg-config with several names |
171 |
+ PKG_CHECK_MODULES(LUA, lua5.1 >= 5.1 lua5.1 < 5.2, [with_auto4_lua="yes"], [ |
172 |
+ PKG_CHECK_MODULES(LUA, lua-5.1 >= 5.1 lua-5.1 < 5.2, [with_auto4_lua="yes"], [ |
173 |
|
174 |
diff --git a/media-video/aegisub/files/aegisub-3.0.4-respect-user-compiler-flags.patch b/media-video/aegisub/files/aegisub-3.0.4-respect-user-compiler-flags.patch |
175 |
new file mode 100644 |
176 |
index 0000000..80e1eb9 |
177 |
--- /dev/null |
178 |
+++ b/media-video/aegisub/files/aegisub-3.0.4-respect-user-compiler-flags.patch |
179 |
@@ -0,0 +1,30 @@ |
180 |
+diff --git a/aegisub/configure.ac b/aegisub/configure.ac |
181 |
+index d961bd6..8922042 100644 |
182 |
+--- a/aegisub/configure.ac |
183 |
++++ b/aegisub/configure.ac |
184 |
+@@ -157,23 +157,17 @@ AS_IF([test x$enable_compiler_flags != xno], [ |
185 |
+ AC_C_FLAG([-Wextra],[AC_C_FLAG([-W])]) |
186 |
+ AC_C_FLAG([-Wno-unused-parameter]) |
187 |
+ AC_C_FLAG([-std=gnu99]) |
188 |
+- AC_C_FLAG([-pipe]) |
189 |
+- AC_C_FLAG([-g]) |
190 |
+ AC_CXX_FLAG([-Wall]) |
191 |
+ AC_CXX_FLAG([-Wextra],[AC_CXX_FLAG([-W])]) |
192 |
+ AC_CXX_FLAG([-Wno-unused-parameter]) |
193 |
+ AC_CXX_FLAG([-Wno-long-long]) |
194 |
+- AC_CXX_FLAG([-fno-strict-aliasing]) |
195 |
+- AC_CXX_FLAG([-pipe]) |
196 |
+- AC_CXX_FLAG([-g]) |
197 |
+ |
198 |
+ # -O* messes with debugging. |
199 |
+ AS_IF([test x$enable_debug = xyes], [ |
200 |
+ AC_C_FLAG([-O0]) |
201 |
++ AC_C_FLAG([-g]) |
202 |
+ AC_CXX_FLAG([-O0]) |
203 |
+- ], [ |
204 |
+- AC_C_FLAG([-O2]) |
205 |
+- AC_CXX_FLAG([-O2]) |
206 |
++ AC_CXX_FLAG([-g]) |
207 |
+ ]) |
208 |
+ ]) |
209 |
+ |