diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-01-12 03:39:46 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-01-12 03:39:46 +0000 |
commit | 61e090957dbc6b062f3a1af7eeb0d58478c6657d (patch) | |
tree | 768f076ead75d57e34580da0d78ff9f5afe170fd /community/aegisub | |
parent | b8322aaddc0dc6b249457dd19ab7fb246b92c997 (diff) |
Sun Jan 12 03:35:50 UTC 2014
Diffstat (limited to 'community/aegisub')
-rwxr-xr-x | community/aegisub/PKGBUILD | 27 | ||||
-rw-r--r-- | community/aegisub/aegisub-wx-stl.patch | 61 | ||||
-rw-r--r-- | community/aegisub/wxgtk2.9.5.patch | 41 |
3 files changed, 74 insertions, 55 deletions
diff --git a/community/aegisub/PKGBUILD b/community/aegisub/PKGBUILD index 8bd2d48a8..d052647f7 100755 --- a/community/aegisub/PKGBUILD +++ b/community/aegisub/PKGBUILD @@ -1,42 +1,41 @@ -# $Id: PKGBUILD 99199 2013-10-25 12:58:18Z giovanni $ +# $Id: PKGBUILD 103788 2014-01-11 20:08:20Z eric $ # Maintainer: Maxime Gauduin <alucryd@gmail.com> # Contributor: kozec <kozec@kozec.com> # Contributor: Limao Luo <luolimao+AUR@gmail.com> pkgname=aegisub -pkgver=3.0.4 -pkgrel=5 +pkgver=3.1.0 +pkgrel=2 pkgdesc="A general-purpose subtitle editor with ASS/SSA support" arch=('i686' 'x86_64') url="http://www.aegisub.org" license=('GPL' 'BSD') -depends=('desktop-file-utils' 'ffms2' 'fftw' 'hicolor-icon-theme' 'hunspell' 'lua51' 'wxgtk2.9') -makedepends=('mesa') +depends=('boost-libs' 'desktop-file-utils' 'ffms2' 'fftw' 'hunspell' 'lua51' 'wxgtk') +makedepends=('boost' 'intltool' 'mesa') install="${pkgname}.install" source=("http://ftp.aegisub.org/pub/releases/${pkgname}-${pkgver}.tar.xz" - 'wxgtk2.9.5.patch') -sha256sums=('7d5d8b94da02278b3327f24dd546c0c897c4b369bd2da9e094dc60371422019a' - '8aed8aaf4773e4a315f9336d3ea4af2c46b9e84c4e651c202e0a70a6cd9e499c') + 'aegisub-wx-stl.patch') +sha256sums=('3df061456bbab6bd955d7c5b63336be47392eafa21148ff6ed5727eaa6a29987' + '1306b2caf2e192597a99931b4519023ea63b684f330e0838b1152d52b279f6c1') prepare() { - cd ${pkgname}/${pkgname} + cd ${pkgname}-${pkgver} - patch -Np2 -i ../../wxgtk2.9.5.patch + patch -Np1 -i ../aegisub-wx-stl.patch } build() { - cd ${pkgname}/${pkgname} + cd ${pkgname}-${pkgver}/${pkgname} - ./configure --prefix='/usr' --without-{portaudio,openal,oss} --with-wxdir='/usr/include/wx-2.9' --with-wx-config='/usr/bin/wx-config-2.9' + ./configure --prefix='/usr' --without-{portaudio,openal,oss} make } package() { - cd ${pkgname}/${pkgname} + cd ${pkgname}-${pkgver}/${pkgname} make DESTDIR="${pkgdir}" install -# License install -dm 755 "${pkgdir}"/usr/share/licenses/aegisub install -m 644 LICENCE "${pkgdir}"/usr/share/licenses/aegisub/LICENSE } diff --git a/community/aegisub/aegisub-wx-stl.patch b/community/aegisub/aegisub-wx-stl.patch new file mode 100644 index 000000000..d174d8308 --- /dev/null +++ b/community/aegisub/aegisub-wx-stl.patch @@ -0,0 +1,61 @@ +From f71b380f016c7f2b7ec855a9945a4e62ad3e2e16 Mon Sep 17 00:00:00 2001 +From: Thomas Goyne <plorkyeran@aegisub.org> +Date: Sun, 5 Jan 2014 08:10:08 -0800 +Subject: [PATCH 1/4] Fix compilation with wx built with --enable-stl + +--enable-stl replaces the implicit conversion to char/wchar_t* with one +to std::[w]string. This breaks conversions to boost::filesytem::path and +makes some ternaries ambiguous (which GCC helpfully reports as no +conversion existing rather than an ambiguous conversion). +--- + aegisub/src/base_grid.cpp | 6 +++--- + aegisub/src/command/video.cpp | 2 +- + aegisub/src/dialog_attachments.cpp | 2 +- + 3 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/aegisub/src/base_grid.cpp b/aegisub/src/base_grid.cpp +index 9422bf9..4675ad5 100644 +--- a/aegisub/src/base_grid.cpp ++++ b/aegisub/src/base_grid.cpp +@@ -570,9 +570,9 @@ void BaseGrid::GetRowStrings(int row, AssDialogue *line, bool *paint_columns, wx + if (paint_columns[4]) strings[4] = to_wx(line->Style); + if (paint_columns[5]) strings[5] = to_wx(line->Actor); + if (paint_columns[6]) strings[6] = to_wx(line->Effect); +- if (paint_columns[7]) strings[7] = line->Margin[0] ? std::to_wstring(line->Margin[0]) : wxString(); +- if (paint_columns[8]) strings[8] = line->Margin[1] ? std::to_wstring(line->Margin[1]) : wxString(); +- if (paint_columns[9]) strings[9] = line->Margin[2] ? std::to_wstring(line->Margin[2]) : wxString(); ++ if (paint_columns[7]) strings[7] = line->Margin[0] ? wxString(std::to_wstring(line->Margin[0])) : wxString(); ++ if (paint_columns[8]) strings[8] = line->Margin[1] ? wxString(std::to_wstring(line->Margin[1])) : wxString(); ++ if (paint_columns[9]) strings[9] = line->Margin[2] ? wxString(std::to_wstring(line->Margin[2])) : wxString(); + + if (paint_columns[10]) { + strings[10].clear(); +diff --git a/aegisub/src/command/video.cpp b/aegisub/src/command/video.cpp +index 010da90..47bf259 100644 +--- a/aegisub/src/command/video.cpp ++++ b/aegisub/src/command/video.cpp +@@ -476,7 +476,7 @@ static void save_snapshot(agi::Context *c, bool raw) { + // If where ever that is isn't defined, we can't save there + if ((basepath == "\\") || (basepath == "/")) { + // So save to the current user's home dir instead +- basepath = wxGetHomeDir(); ++ basepath = wxGetHomeDir().c_str(); + } + } + // Actual fixed (possibly relative) path, decode it +diff --git a/aegisub/src/dialog_attachments.cpp b/aegisub/src/dialog_attachments.cpp +index 5465b39..2ff696e 100644 +--- a/aegisub/src/dialog_attachments.cpp ++++ b/aegisub/src/dialog_attachments.cpp +@@ -150,7 +150,7 @@ void DialogAttachments::OnExtract(wxCommandEvent &) { + + // Multiple or single? + if (listView->GetNextSelected(i) != -1) +- path = wxDirSelector(_("Select the path to save the files to:"), to_wx(OPT_GET("Path/Fonts Collector Destination")->GetString())); ++ path = wxDirSelector(_("Select the path to save the files to:"), to_wx(OPT_GET("Path/Fonts Collector Destination")->GetString())).c_str(); + else { + path = SaveFileSelector( + _("Select the path to save the file to:"), +-- +1.8.5.2 + diff --git a/community/aegisub/wxgtk2.9.5.patch b/community/aegisub/wxgtk2.9.5.patch deleted file mode 100644 index b50fac01b..000000000 --- a/community/aegisub/wxgtk2.9.5.patch +++ /dev/null @@ -1,41 +0,0 @@ ---- a/aegisub/src/utils.cpp -+++ b/aegisub/src/utils.cpp -@@ -121,8 +121,7 @@ void RestartAegisub() { - config::opt->Flush(); - - #if defined(__WXMSW__) -- wxStandardPaths stand; -- wxExecute("\"" + stand.GetExecutablePath() + "\""); -+ wxExecute("\"" + wxStandardPaths::Get().GetExecutablePath() + "\""); - #elif defined(__WXMAC__) - std::string bundle_path = agi::util::OSX_GetBundlePath(); - std::string helper_path = agi::util::OSX_GetBundleAuxillaryExecutablePath("restart-helper"); -@@ -132,8 +131,7 @@ void RestartAegisub() { - LOG_I("util/restart/exec") << exec; - wxExecute(exec); - #else -- wxStandardPaths stand; -- wxExecute(stand.GetExecutablePath()); -+ wxExecute(wxStandardPaths::Get().GetExecutablePath()); - #endif - } - ---- a/aegisub/src/menu.cpp -+++ b/aegisub/src/menu.cpp -@@ -457,11 +457,11 @@ namespace menu { - window->Bind(wxEVT_COMMAND_MENU_SELECTED, &CommandManager::OnMenuClick, &menu->cm); - window->SetMenuBar(menu.get()); - --#ifdef __WXGTK__ -- // GTK silently swallows keypresses for accelerators whose associated -- // menu items are disabled. As we don't update the menu until it's -- // opened, this means that conditional hotkeys don't work if the menu -- // hasn't been opened since they became valid. -+#if defined(__WXGTK__) && !wxCHECK_VERSION(2, 9, 5) -+ // Older versions of wxGTK silently swallow keypresses for accelerators -+ // whose associated menu items are disabled. As we don't update the -+ // menu until it's opened, this means that conditional hotkeys don't -+ // work if the menu hasn't been opened since they became valid. - // - // To work around this, we completely disable accelerators from menu - // item. wxGTK doesn't expose any way to do this other that at wx |