Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=kikadftesting.git;a=commitdiff;h=fce87959e8afcbd8d6b04ac3dcf724591175a961

commit fce87959e8afcbd8d6b04ac3dcf724591175a961
Author: kikadf <[email protected]>
Date:   Tue Feb 11 11:02:53 2014 +0100

truecrypt-7.1-2-x86_64

* Version bump
* Build with wxwidget

diff --git a/source/apps-extra/truecrypt/FrugalBuild 
b/source/apps-extra/truecrypt/FrugalBuild
index 9459864..57b5c68 100644
--- a/source/apps-extra/truecrypt/FrugalBuild
+++ b/source/apps-extra/truecrypt/FrugalBuild
@@ -1,18 +1,24 @@
# Compiling Time: 0.08 SBU
# Maintainer: Miklos Vajna <[email protected]>

+options+=('asneeded')
+
pkgname=truecrypt
pkgver=7.1
-pkgextraver=
-pkgrel=1
+pkgextraver=a
+pkgrel=2
pkgdesc="A free open-source disk encryption software"
url="http://www.truecrypt.org/";
-depends=('fuse' 'wxgtk' 'nss' 'lvm2')
+depends=('fuse' 'wxwidget' 'nss' 'lvm2')
makedepends=('nasm')
+_F_desktop_name="TrueCrypt"
+_F_desktop_icon="TrueCrypt-48x48.xpm"
+_F_desktop_categories="System;"
groups=('apps-extra')
archs=('i686' 'x86_64')
up2date="lynx -dump http://www.truecrypt.org/downloads.php|grep Stable|sed 
's/.* - //;s/$pkgextraver//'"
-source=(http://ftp.frugalware.org/pub/other/sources/$pkgname/TrueCrypt-$pkgver$pkgextraver-Source.tar.gz)
+source=(http://ftp.frugalware.org/pub/other/people/kikadf/sources/$pkgname/TrueCrypt-$pkgver$pkgextraver-Source.tar.gz
+        wxwidget-compatible.patch)
signatures=($source.sig)

build()
@@ -27,9 +33,11 @@ build()
[ "$CARCH" == "x86_64" ] && extra="USE64BIT=1"
flags="-I/usr/include/nss3 -I/usr/include/nspr4 -DCKR_NEW_PIN_MODE=0x000001B0 
-DCKR_NEXT_OTP=0x000001B1 -DTRUE=1"
make $extra VERBOSE=1 TC_EXTRA_CFLAGS="${CFLAGS} $flags" 
TC_EXTRA_CXXFLAGS="${CXXFLAGS} $flags" \
-               EXTRA_LDFLAGS="${LDFLAGS}" || return 1
+               EXTRA_LDFLAGS="${LDFLAGS}" LFLAGS+=" -ldl" || return 1
Fexerel Main/truecrypt /usr/bin/truecrypt
Fdocrel Readme.txt Release
+       Ficon 
truecrypt-$pkgver$pkgextraver-source/Resources/Icons/TrueCrypt-48x48.xpm
+       Fdesktop2
}

# optimization OK
diff --git a/source/apps-extra/truecrypt/wxwidget-compatible.patch 
b/source/apps-extra/truecrypt/wxwidget-compatible.patch
new file mode 100644
index 0000000..15ea752
--- /dev/null
+++ b/source/apps-extra/truecrypt/wxwidget-compatible.patch
@@ -0,0 +1,205 @@
+diff -Naur truecrypt-7.1a-source/Main/Application.cpp 
truecrypt-7.1a-source.new/Main/Application.cpp
+--- truecrypt-7.1a-source/Main/Application.cpp 2012-02-07 11:36:48.000000000 
+0100
++++ truecrypt-7.1a-source.new/Main/Application.cpp     2014-02-11 
10:31:16.621290725 +0100
+@@ -36,7 +36,6 @@
+
+       FilePath Application::GetConfigFilePath (const wxString 
&configFileName, bool createConfigDir)
+       {
+-              wxStandardPaths stdPaths;
+               DirectoryPath configDir;
+
+               if (!Core->IsInPortableMode())
+@@ -46,7 +45,7 @@
+                       configPath.Normalize();
+                       configDir = wstring (configPath.GetFullPath());
+ #else
+-                      configDir = wstring (stdPaths.GetUserDataDir());
++                      configDir = wstring 
(wxStandardPaths::Get().GetUserDataDir());
+ #endif
+               }
+               else
+@@ -61,12 +60,12 @@
+
+       DirectoryPath Application::GetExecutableDirectory ()
+       {
+-              return wstring (wxFileName 
(wxStandardPaths().GetExecutablePath()).GetPath());
++              return wstring (wxFileName 
(wxStandardPaths::Get().GetExecutablePath()).GetPath());
+       }
+
+       FilePath Application::GetExecutablePath ()
+       {
+-              return wstring (wxStandardPaths().GetExecutablePath());
++              return wstring (wxStandardPaths::Get().GetExecutablePath());
+       }
+
+       void Application::Initialize (UserInterfaceType::Enum type)
+diff -Naur truecrypt-7.1a-source/Main/CommandLineInterface.cpp 
truecrypt-7.1a-source.new/Main/CommandLineInterface.cpp
+--- truecrypt-7.1a-source/Main/CommandLineInterface.cpp        2012-02-07 
11:36:48.000000000 +0100
++++ truecrypt-7.1a-source.new/Main/CommandLineInterface.cpp    2014-02-11 
09:52:51.693189622 +0100
+@@ -380,7 +380,7 @@
+               ArgQuick = parser.Found (L"quick");
+
+               if (parser.Found (L"random-source", &str))
+-                      ArgRandomSourcePath = FilesystemPath (str);
++                      ArgRandomSourcePath = FilesystemPath (str.wc_str());
+
+               if (parser.Found (L"restore-headers"))
+               {
+@@ -471,7 +471,7 @@
+
+                       if (param1IsFile)
+                       {
+-                              ArgFilePath.reset (new FilePath 
(parser.GetParam (0)));
++                              ArgFilePath.reset (new FilePath 
(parser.GetParam (0).wc_str()));
+                       }
+               }
+
+@@ -524,7 +524,7 @@
+                                       arr.Add (L"");
+                                       continue;
+                               }
+-                              arr.Last() += token.empty() ? L',' : token;
++                              arr.Last() += token.empty() ? wxString(L',') : 
token;
+                       }
+                       else
+                               arr.Add (token);
+@@ -562,12 +562,12 @@
+                       {
+                               filteredVolumes.push_back (volume);
+                       }
+-                      else if (wxString (volume->Path) == 
pathFilter.GetFullPath())
++                      else if (wxString (wstring(volume->Path)) == 
pathFilter.GetFullPath())
+                       {
+                               filteredVolumes.push_back (volume);
+                       }
+-                      else if (wxString (volume->MountPoint) == 
pathFilter.GetFullPath()
+-                              || (wxString (volume->MountPoint) + 
wxFileName::GetPathSeparator()) == pathFilter.GetFullPath())
++                      else if (wxString (wstring(volume->MountPoint)) == 
pathFilter.GetFullPath()
++                              || (wxString (wstring(volume->MountPoint)) + 
wxFileName::GetPathSeparator()) == pathFilter.GetFullPath())
+                       {
+                               filteredVolumes.push_back (volume);
+                       }
+diff -Naur truecrypt-7.1a-source/Main/Forms/MainFrame.cpp 
truecrypt-7.1a-source.new/Main/Forms/MainFrame.cpp
+--- truecrypt-7.1a-source/Main/Forms/MainFrame.cpp     2012-02-07 
11:36:48.000000000 +0100
++++ truecrypt-7.1a-source.new/Main/Forms/MainFrame.cpp 2014-02-11 
09:58:09.782203575 +0100
+@@ -828,7 +828,7 @@
+                       // File-hosted volumes
+                       if (!volume->Path.IsDevice() && !mountPoint.IsEmpty())
+                       {
+-                              if (wxString (volume->Path).Upper().StartsWith 
(wstring (mountPoint).c_str()))
++                              if (wxString 
(wstring(volume->Path)).Upper().StartsWith (wxString (wstring(mountPoint))))
+                               {
+                                       removedVolumes.push_back (volume);
+                                       continue;
+@@ -1020,7 +1020,7 @@
+               if (!ListItemRightClickEventPending)
+               {
+                       ListItemRightClickEventPending = true;
+-                      SlotListCtrl->AddPendingEvent (event);
++                      SlotListCtrl->GetEventHandler()->AddPendingEvent 
(event);
+                       return;
+               }
+
+diff -Naur truecrypt-7.1a-source/Main/Forms/SelectDirectoryWizardPage.cpp 
truecrypt-7.1a-source.new/Main/Forms/SelectDirectoryWizardPage.cpp
+--- truecrypt-7.1a-source/Main/Forms/SelectDirectoryWizardPage.cpp     
2012-02-07 11:36:48.000000000 +0100
++++ truecrypt-7.1a-source.new/Main/Forms/SelectDirectoryWizardPage.cpp 
2014-02-11 09:58:58.784205724 +0100
+@@ -16,7 +16,7 @@
+       {
+               if (!DirectoryTextCtrl->IsEmpty())
+               {
+-                      return FilesystemPath 
(DirectoryTextCtrl->GetValue()).IsDirectory();
++                      return FilesystemPath 
(wstring(DirectoryTextCtrl->GetValue())).IsDirectory();
+               }
+
+               return false;
+diff -Naur truecrypt-7.1a-source/Main/Forms/SelectDirectoryWizardPage.h 
truecrypt-7.1a-source.new/Main/Forms/SelectDirectoryWizardPage.h
+--- truecrypt-7.1a-source/Main/Forms/SelectDirectoryWizardPage.h       
2012-02-07 11:36:48.000000000 +0100
++++ truecrypt-7.1a-source.new/Main/Forms/SelectDirectoryWizardPage.h   
2014-02-11 09:59:29.475207071 +0100
+@@ -18,7 +18,7 @@
+       public:
+               SelectDirectoryWizardPage (wxPanel* parent) : 
SelectDirectoryWizardPageBase (parent) { }
+
+-              DirectoryPath GetDirectory () const { return DirectoryPath 
(DirectoryTextCtrl->GetValue()); }
++              DirectoryPath GetDirectory () const { return DirectoryPath 
(wstring(DirectoryTextCtrl->GetValue())); }
+               bool IsValid ();
+               void SetDirectory (const DirectoryPath &path) { 
DirectoryTextCtrl->SetValue (wstring (path)); }
+               void SetMaxStaticTextWidth (int width) { InfoStaticText->Wrap 
(width); }
+diff -Naur truecrypt-7.1a-source/Main/GraphicUserInterface.cpp 
truecrypt-7.1a-source.new/Main/GraphicUserInterface.cpp
+--- truecrypt-7.1a-source/Main/GraphicUserInterface.cpp        2012-02-07 
11:36:48.000000000 +0100
++++ truecrypt-7.1a-source.new/Main/GraphicUserInterface.cpp    2014-02-11 
10:36:13.104303730 +0100
+@@ -1384,7 +1384,7 @@
+ #else
+                       L"",
+ #endif
+-                      L"", wxDD_DEFAULT_STYLE | (existingOnly ? 
wxDD_DIR_MUST_EXIST : 0), wxDefaultPosition, parent));
++                      L"", wxDD_DEFAULT_STYLE | (existingOnly ? 
wxDD_DIR_MUST_EXIST : 0), wxDefaultPosition, parent).wc_str());
+       }
+
+       FilePathList GraphicUserInterface::SelectFiles (wxWindow *parent, const 
wxString &caption, bool saveMode, bool allowMultiple, const list < pair 
<wstring, wstring> > &fileExtensions, const DirectoryPath &directory) const
+@@ -1428,14 +1428,14 @@
+               if (dialog.ShowModal() == wxID_OK)
+               {
+                       if (!allowMultiple)
+-                              files.push_back (make_shared <FilePath> 
(dialog.GetPath()));
++                              files.push_back (make_shared <FilePath> 
(dialog.GetPath().wc_str()));
+                       else
+                       {
+                               wxArrayString paths;
+                               dialog.GetPaths (paths);
+
+                               foreach (const wxString &path, paths)
+-                                      files.push_back (make_shared <FilePath> 
(path));
++                                      files.push_back (make_shared <FilePath> 
(path.wc_str()));
+                       }
+               }
+
+diff -Naur truecrypt-7.1a-source/Main/TextUserInterface.cpp 
truecrypt-7.1a-source.new/Main/TextUserInterface.cpp
+--- truecrypt-7.1a-source/Main/TextUserInterface.cpp   2012-02-07 
11:36:48.000000000 +0100
++++ truecrypt-7.1a-source.new/Main/TextUserInterface.cpp       2014-02-11 
10:03:41.528218127 +0100
+@@ -116,7 +116,7 @@
+                       for (size_t i = 0; i < length && i < 
VolumePassword::MaxSize; ++i)
+                       {
+                               passwordBuf[i] = (wchar_t) passwordStr[i];
+-                              const_cast <wchar_t *> (passwordStr.c_str())[i] 
= L'X';
++                              const_cast <wchar_t *> 
(passwordStr.wc_str())[i] = L'X';
+                       }
+
+                       if (verify && verPhase)
+@@ -763,8 +763,8 @@
+
+                               ShowString (wxString::Format (L"\rDone: %7.3f%% 
 Speed: %9s  Left: %s         ",
+                                       100.0 - double (options->Size - 
progress.SizeDone) / (double (options->Size) / 100.0),
+-                                      speed > 0 ? SpeedToString 
(speed).c_str() : L" ",
+-                                      speed > 0 ? TimeSpanToString 
((options->Size - progress.SizeDone) / speed).c_str() : L""));
++                                      speed > 0 ? SpeedToString 
(speed).wc_str() : L" ",
++                                      speed > 0 ? TimeSpanToString 
((options->Size - progress.SizeDone) / speed).wc_str() : L""));
+                       }
+
+                       Thread::Sleep (100);
+diff -Naur truecrypt-7.1a-source/Main/UserPreferences.cpp 
truecrypt-7.1a-source.new/Main/UserPreferences.cpp
+--- truecrypt-7.1a-source/Main/UserPreferences.cpp     2012-02-07 
11:36:48.000000000 +0100
++++ truecrypt-7.1a-source.new/Main/UserPreferences.cpp 2014-02-11 
10:04:26.222220087 +0100
+@@ -219,7 +219,7 @@
+
+                       foreach_ref (const Keyfile &keyfile, DefaultKeyfiles)
+                       {
+-                              keyfilesXml.InnerNodes.push_back (XmlNode 
(L"keyfile", wxString (FilesystemPath (keyfile))));
++                              keyfilesXml.InnerNodes.push_back (XmlNode 
(L"keyfile", wxString (wstring(FilesystemPath (keyfile)))));
+                       }
+
+                       XmlWriter keyfileWriter (keyfilesCfgPath);
+diff -Naur truecrypt-7.1a-source/Platform/Unix/Process.cpp 
truecrypt-7.1a-source.new/Platform/Unix/Process.cpp
+--- truecrypt-7.1a-source/Platform/Unix/Process.cpp    2012-02-07 
11:36:48.000000000 +0100
++++ truecrypt-7.1a-source.new/Platform/Unix/Process.cpp        2014-02-11 
10:06:08.925224592 +0100
+@@ -52,9 +52,9 @@
+                                       if (!execFunctor)
+                                               args[argIndex++] = const_cast 
<char*> (processName.c_str());
+
+-                                      foreach (const string &arg, arguments)
++                                      for (list<string>::const_iterator 
arg=arguments.begin(); arg != arguments.end(); ++arg)
+                                       {
+-                                              args[argIndex++] = const_cast 
<char*> (arg.c_str());
++                                              args[argIndex++] = const_cast 
<char*> ((*arg).c_str());
+                                       }
+                                       args[argIndex] = nullptr;
+
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to