summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Bar-Lev <alonbl@gentoo.org>2008-03-13 07:01:40 +0000
committerAlon Bar-Lev <alonbl@gentoo.org>2008-03-13 07:01:40 +0000
commit831ae44ac2bf4a08e2ad876398bf5fd99dccffa9 (patch)
tree183ed9d0244bd3cea3e8c484450b9aef920bbe3e /app-crypt/truecrypt
parentstable x86/amd64 (diff)
downloadhistorical-831ae44ac2bf4a08e2ad876398bf5fd99dccffa9.tar.gz
historical-831ae44ac2bf4a08e2ad876398bf5fd99dccffa9.tar.bz2
historical-831ae44ac2bf4a08e2ad876398bf5fd99dccffa9.zip
Version bump
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'app-crypt/truecrypt')
-rw-r--r--app-crypt/truecrypt/ChangeLog9
-rw-r--r--app-crypt/truecrypt/Manifest6
-rw-r--r--app-crypt/truecrypt/files/truecrypt-5.1-64bit.patch14
-rw-r--r--app-crypt/truecrypt/files/truecrypt-5.1-nogui.patch351
-rw-r--r--app-crypt/truecrypt/truecrypt-5.1.ebuild76
5 files changed, 454 insertions, 2 deletions
diff --git a/app-crypt/truecrypt/ChangeLog b/app-crypt/truecrypt/ChangeLog
index 663f29ecd6d7..3f8456524eb1 100644
--- a/app-crypt/truecrypt/ChangeLog
+++ b/app-crypt/truecrypt/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-crypt/truecrypt
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/ChangeLog,v 1.34 2008/02/22 22:31:21 alonbl Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/ChangeLog,v 1.35 2008/03/13 07:01:39 alonbl Exp $
+
+*truecrypt-5.1 (13 Mar 2008)
+
+ 13 Mar 2008; Alon Bar-Lev <alonbl@gentoo.org>
+ +files/truecrypt-5.1-64bit.patch, +files/truecrypt-5.1-nogui.patch,
+ +truecrypt-5.1.ebuild:
+ Version bump, bug#213074
22 Feb 2008; Alon Bar-Lev <alonbl@gentoo.org>
files/truecrypt-5.0-nogui.patch:
diff --git a/app-crypt/truecrypt/Manifest b/app-crypt/truecrypt/Manifest
index da658b0058d1..9e85aeaf4adc 100644
--- a/app-crypt/truecrypt/Manifest
+++ b/app-crypt/truecrypt/Manifest
@@ -4,10 +4,14 @@ AUX truecrypt-5.0-64bit.patch 5160 RMD160 0e07db032fbd0df31c37614ceb9045d7c79d3a
AUX truecrypt-5.0-bool.patch 1032 RMD160 7e3aa621c6b47f92d0837bf7d0c07297bb1490aa SHA1 3cbf86e4fdf47fe4e99c33ffca78b1c5af7499d2 SHA256 66c6d98f2946c1410e635969e1e95a907fdc0d9720eb14d8dd9d474661557da3
AUX truecrypt-5.0-build.patch 1147 RMD160 d5baa75497b027b594c4a31f99bd5320bb9c0da3 SHA1 6467d4bfcae0f0cdd1ff86f21719d3f7d710fa8d SHA256 8eba4bbc03a27678e6bd073988129ec22934fafa84466b03c22b587c7d37deb8
AUX truecrypt-5.0-nogui.patch 10929 RMD160 d7454ed81c1253454d488ed5689602ec6d7e1956 SHA1 5095e6eec1e434c6c55fe01bca3210110cee42b1 SHA256 d293c59e6e9b13cba3176c3302f858d8d579f8e176b41b8246da91906a674ae8
+AUX truecrypt-5.1-64bit.patch 601 RMD160 479ea2a3c6809c9b9ea1febfa969fb25d02fd5ad SHA1 1448d11833aca850cebde2b0432c8f97df1fec1d SHA256 db767f5220077f6a97c8f3ba6e439cb27a45642a34004b1302401ad43fca1aee
+AUX truecrypt-5.1-nogui.patch 10900 RMD160 5b4b0e4c6c43e699b3a01ed7d2e45db6e3497e60 SHA1 eb5c246834cda5277444131becd827414094b58e SHA256 433399486158cb144fb55e7ca4fca6a12c56001f59cebb3686e58f79f6bd09d0
AUX truecrypt-stop.sh 308 RMD160 4b2e6f47520f701324c03b5a43118cc38ee409a3 SHA1 7139ba403e482a4746e1d545115b74760b1438ea SHA256 243a9d1041b291e12ce2065959838f0cfe01484bffac7915991ebeb90d2ccd2c
DIST truecrypt-4.3a-source-code.tar.gz 1110554 RMD160 1a24ae6132b43876161a090751c19afed7c5c996 SHA1 30c91901171c3c8290d4d0de856774cdf7ee4ed6 SHA256 d5515cfeb1bb328ad6f13ef347cd9422b4bb15bf849aabc4cd4f2f69a3e0c74a
DIST truecrypt-5.0a.tar.gz 1557136 RMD160 ce7b3ba35cff2c8c5df5a14ccc9f07b59fd3fe57 SHA1 793768704161e9b7a70cd82d691896ca4fc6f988 SHA256 0cc1be858975d8667fe78e49774cbb6e8cb0d7cabef67fd80a01ee95d8c918f3
+DIST truecrypt-5.1.tar.gz 1621123 RMD160 855ac4458d2d9ad3a08eb56177de899849177054 SHA1 a3f56fae9ee34be51a87fa9c918069471672d38f SHA256 b5339560937f0b9e8de3a4dc2d2a320f27471bcbc5ea16b15cd11154f3f60fb6
EBUILD truecrypt-4.3a.ebuild 3092 RMD160 40a13fd5bd619f87b21f199f11a70c2f64dc6b93 SHA1 4995db75c00642921d84270604b1c9b0d68e2401 SHA256 b815d54e344efcc6eed990d85957c074e2177e1de3568c57d3e637a90b63d820
EBUILD truecrypt-5.0a.ebuild 1737 RMD160 459db1a075f9859c4aa58a43ef662f566209d91c SHA1 54c7906160e35d8db5bc7809f89b28fa6295dffa SHA256 7275a920808811342a52bb0846e52d5955fcf6b45d3f1418f80881d93586146b
-MISC ChangeLog 5920 RMD160 492930fe6f9645cb079b43a2575fff68844d9989 SHA1 7bd426972d79377d2dcc4947325c9a26f5c7a7a5 SHA256 efa90f6928a77cd26183ef359119fed577dc7569da67d9528eaab6506fa35787
+EBUILD truecrypt-5.1.ebuild 1726 RMD160 45c73ba1bcf464431089836498a4f53b9eecf583 SHA1 c817fcebe85d68d61834dd8b5f41e4a1d1561918 SHA256 2378b5da0c01ee079e319cc544885a421cfaaf4adc778c7a3354505bd3a0f663
+MISC ChangeLog 6121 RMD160 08cf2a86f73a2de7a4b886846332e6c7def997b5 SHA1 8948d1c6a1fa9177b88eed1a198dad499b0e88eb SHA256 12ec597d6ff760824aac901031f0c19d8add4fecb5ec6091380d16759bcb0c59
MISC metadata.xml 224 RMD160 74db96ad8aa1d285d83ae93a9f4a767335f55c15 SHA1 d86a171d981b45e7ed0c0b3b5059d2a63c811001 SHA256 9e9ce661a9fdb45a535ad875a247b700a70745359b27533ec29a6a46fa708e86
diff --git a/app-crypt/truecrypt/files/truecrypt-5.1-64bit.patch b/app-crypt/truecrypt/files/truecrypt-5.1-64bit.patch
new file mode 100644
index 000000000000..e354c7b5502d
--- /dev/null
+++ b/app-crypt/truecrypt/files/truecrypt-5.1-64bit.patch
@@ -0,0 +1,14 @@
+--- truecrypt-5.0a-source.org/Makefile 2008-02-04 20:19:02.000000000 +0200
++++ truecrypt-5.0a-source/Makefile 2008-02-13 19:47:58.000000000 +0200
+@@ -42,7 +42,11 @@ export CFLAGS := -W
+ export CXXFLAGS := -Wall
+
+ C_CXX_FLAGS := -MMD -I$(BASE_DIR) -I$(BASE_DIR)/Crypto
+ C_CXX_FLAGS += -DBOOL=int -DFALSE=0 -DTRUE=1
++ifeq "$(origin USE64BIT)" "command line"
++C_CXX_FLAGS += -D__int8=char -D__int16=short -D__int32=int '-D__int64=long' # Tested in PlatformTest
++else
+ C_CXX_FLAGS += -D__int8=char -D__int16=short -D__int32=int '-D__int64=long long' # Tested in PlatformTest
++endif
+
+ export LFLAGS :=
diff --git a/app-crypt/truecrypt/files/truecrypt-5.1-nogui.patch b/app-crypt/truecrypt/files/truecrypt-5.1-nogui.patch
new file mode 100644
index 000000000000..569e2636765f
--- /dev/null
+++ b/app-crypt/truecrypt/files/truecrypt-5.1-nogui.patch
@@ -0,0 +1,351 @@
+diff -urNp truecrypt-5.1-source.org/Main/Application.cpp truecrypt-5.1-source/Main/Application.cpp
+--- truecrypt-5.1-source.org/Main/Application.cpp 2008-03-02 13:03:30.000000000 +0200
++++ truecrypt-5.1-source/Main/Application.cpp 2008-03-12 23:40:04.000000000 +0200
+@@ -23,12 +23,14 @@ namespace TrueCrypt
+ return mUserInterface;
+ }
+
++#ifdef ENABLE_wxGUI
+ wxApp* Application::CreateGuiApp ()
+ {
+ mUserInterface = new GraphicUserInterface;
+ mUserInterfaceType = UserInterfaceType::Graphic;
+ return mUserInterface;
+ }
++#endif
+
+ FilePath Application::GetConfigFilePath (const wxString &configFileName, bool createConfigDir)
+ {
+@@ -74,11 +76,13 @@ namespace TrueCrypt
+ wxAppInitializer wxTheAppInitializer((wxAppInitializerFunction) CreateConsoleApp);
+ break;
+ }
++#ifdef ENABLE_wxGUI
+ case UserInterfaceType::Graphic:
+ {
+ wxAppInitializer wxTheAppInitializer((wxAppInitializerFunction) CreateGuiApp);
+ break;
+ }
++#endif
+
+ default:
+ throw ParameterIncorrect (SRC_POS);
+diff -urNp truecrypt-5.1-source.org/Main/FatalErrorHandler.cpp truecrypt-5.1-source/Main/FatalErrorHandler.cpp
+--- truecrypt-5.1-source.org/Main/FatalErrorHandler.cpp 2008-03-09 21:18:58.000000000 +0200
++++ truecrypt-5.1-source/Main/FatalErrorHandler.cpp 2008-03-12 23:39:24.000000000 +0200
+@@ -92,6 +92,7 @@ namespace TrueCrypt
+
+ #endif // wxUSE_STACKWALKER
+
++#ifdef ENABLE_wxGUI
+ wxString url = Gui->GetHomepageLinkURL (L"err-report", vars.str());
+ url.Replace (L"0x", L"");
+
+@@ -111,6 +112,7 @@ namespace TrueCrypt
+
+ if (Gui->AskYesNo (msg, true))
+ wxLaunchDefaultBrowser (url, wxBROWSER_NEW_WINDOW);
++#endif
+
+ _exit (1);
+ }
+@@ -157,6 +159,7 @@ namespace TrueCrypt
+ vars.Replace (L"::", L".");
+ vars.Replace (L":", L".");
+
++#ifdef ENABLE_wxGUI
+ wxString url = Gui->GetHomepageLinkURL (L"err-report", vars);
+
+ wxString msg = L"An unhandled exception has occured and TrueCrypt must be terminated. If this is caused by a bug in TrueCrypt, we would like to fix it. To help us, you can send us an automatically generated error report containing the following items:\n\n- Program version\n- Operating system version\n- Hardware architecture\n- Error description\n- Error location\n";
+@@ -166,15 +169,20 @@ namespace TrueCrypt
+
+ if (Gui->AskYesNo (msg, true))
+ wxLaunchDefaultBrowser (url, wxBROWSER_NEW_WINDOW);
++#endif
+
+ }
+ catch (exception &e)
+ {
++#ifdef ENABLE_wxGUI
+ Gui->ShowError (e);
++#endif
+ }
+ catch (...)
+ {
++#ifdef ENABLE_wxGUI
+ Gui->ShowError (_("Unknown exception occurred."));
++#endif
+ }
+
+ _exit (1);
+diff -urNp truecrypt-5.1-source.org/Main/GraphicUserInterface.cpp truecrypt-5.1-source/Main/GraphicUserInterface.cpp
+--- truecrypt-5.1-source.org/Main/GraphicUserInterface.cpp 2008-03-09 09:41:24.000000000 +0200
++++ truecrypt-5.1-source/Main/GraphicUserInterface.cpp 2008-03-12 23:39:24.000000000 +0200
+@@ -19,6 +19,9 @@
+ #include "Application.h"
+ #include "GraphicUserInterface.h"
+ #include "FatalErrorHandler.h"
++
++#ifdef ENABLE_wxGUI
++
+ #include "Forms/DeviceSelectionDialog.h"
+ #include "Forms/MainFrame.h"
+ #include "Forms/MountOptionsDialog.h"
+@@ -1055,3 +1058,4 @@ namespace TrueCrypt
+
+ GraphicUserInterface *Gui = nullptr;
+ }
++#endif
+diff -urNp truecrypt-5.1-source.org/Main/GraphicUserInterface.h truecrypt-5.1-source/Main/GraphicUserInterface.h
+--- truecrypt-5.1-source.org/Main/GraphicUserInterface.h 2008-03-09 09:40:00.000000000 +0200
++++ truecrypt-5.1-source/Main/GraphicUserInterface.h 2008-03-12 23:39:24.000000000 +0200
+@@ -14,6 +14,7 @@
+ #include "Main.h"
+ #include "UserInterface.h"
+
++#ifdef ENABLE_wxGUI
+ namespace TrueCrypt
+ {
+ class GraphicUserInterface : public UserInterface
+@@ -129,5 +130,6 @@ namespace TrueCrypt
+
+ extern GraphicUserInterface *Gui;
+ }
++#endif
+
+ #endif // TC_HEADER_Main_GraphicUserInterface
+diff -urNp truecrypt-5.1-source.org/Main/Main.make truecrypt-5.1-source/Main/Main.make
+--- truecrypt-5.1-source.org/Main/Main.make 2008-03-12 23:38:24.000000000 +0200
++++ truecrypt-5.1-source/Main/Main.make 2008-03-12 23:39:24.000000000 +0200
+@@ -21,6 +21,7 @@ OBJS += UserPreferences.o
+ OBJS += VolumeHistory.o
+ OBJS += Xml.o
+ OBJS += Unix/Main.o
++ifeq "$(TC_BUILD_GUI)" "True"
+ OBJS += Forms/AboutDialog.o
+ OBJS += Forms/ChangePasswordDialog.o
+ OBJS += Forms/DeviceSelectionDialog.o
+@@ -47,6 +48,7 @@ OBJS += Forms/VolumeLocationWizardPage.o
+ OBJS += Forms/VolumePasswordWizardPage.o
+ OBJS += Forms/VolumeSizeWizardPage.o
+ OBJS += Forms/WizardFrame.o
++endif
+ OBJS += Resources.o
+
+ ifndef DISABLE_PRECOMPILED_HEADERS
+@@ -72,12 +74,12 @@ WX_CONFIG_EXTRA ?= --static
+ ifeq "$(TC_BUILD_CONFIG)" "Release"
+
+ CXXFLAGS += $(shell $(WX_CONFIG) $(WX_CONFIG_EXTRA) --cxxflags)
+-WX_LIBS = $(shell $(WX_CONFIG) $(WX_CONFIG_EXTRA) --libs adv,core,base)
++WX_LIBS = $(shell $(WX_CONFIG) $(WX_CONFIG_EXTRA) --libs)
+
+ else
+
+ CXXFLAGS += $(shell $(WX_CONFIG) $(WX_CONFIG_EXTRA) --debug --cxxflags)
+-WX_LIBS = $(shell $(WX_CONFIG) $(WX_CONFIG_EXTRA) --debug --libs adv,core,base)
++WX_LIBS = $(shell $(WX_CONFIG) $(WX_CONFIG_EXTRA) --debug --libs)
+
+ endif
+
+diff -urNp truecrypt-5.1-source.org/Main/Resources.cpp truecrypt-5.1-source/Main/Resources.cpp
+--- truecrypt-5.1-source.org/Main/Resources.cpp 2008-02-04 13:14:16.000000000 +0200
++++ truecrypt-5.1-source/Main/Resources.cpp 2008-03-12 23:39:24.000000000 +0200
+@@ -35,6 +35,7 @@ namespace TrueCrypt
+ }
+ #endif // TC_WINDOWS
+
++#ifdef ENABLE_wxGUI
+ wxBitmap Resources::GetDriveIconBitmap ()
+ {
+ #ifdef TC_WINDOWS
+@@ -72,6 +73,7 @@ namespace TrueCrypt
+ # endif
+ #endif
+ }
++#endif
+
+ string Resources::GetLanguageXml ()
+ {
+@@ -111,6 +113,7 @@ namespace TrueCrypt
+ #endif
+ }
+
++#ifdef ENABLE_wxGUI
+ wxBitmap Resources::GetLogoBitmap ()
+ {
+ #ifdef TC_WINDOWS
+@@ -173,4 +176,5 @@ namespace TrueCrypt
+ return wxBitmap (image);
+ #endif
+ }
++#endif
+ }
+diff -urNp truecrypt-5.1-source.org/Main/Resources.h truecrypt-5.1-source/Main/Resources.h
+--- truecrypt-5.1-source.org/Main/Resources.h 2008-02-04 13:14:14.000000000 +0200
++++ truecrypt-5.1-source/Main/Resources.h 2008-03-12 23:39:24.000000000 +0200
+@@ -17,14 +17,18 @@ namespace TrueCrypt
+ class Resources
+ {
+ public:
++#ifdef ENABLE_wxGUI
+ static wxBitmap GetDriveIconBitmap ();
+ static wxBitmap GetDriveIconMaskBitmap ();
++#endif
+ static string GetLanguageXml ();
+ static string GetLegalNotices ();
++#ifdef ENABLE_wxGUI
+ static wxBitmap GetLogoBitmap ();
+ static wxBitmap GetTextualLogoBitmap ();
+ static wxIcon GetTrueCryptIcon ();
+ static wxBitmap GetVolumeCreationWizardBitmap (int height = -1);
++#endif
+
+ protected:
+ };
+diff -urNp truecrypt-5.1-source.org/Main/SystemPrecompiled.h truecrypt-5.1-source/Main/SystemPrecompiled.h
+--- truecrypt-5.1-source.org/Main/SystemPrecompiled.h 2008-02-04 13:22:08.000000000 +0200
++++ truecrypt-5.1-source/Main/SystemPrecompiled.h 2008-03-12 23:39:24.000000000 +0200
+@@ -7,16 +7,24 @@
+ */
+
+ #include <wx/wx.h>
++#ifdef ENABLE_wxGUI
+ #include <wx/dnd.h>
++#endif
+ #include <wx/filename.h>
++#ifdef ENABLE_wxGUI
+ #include <wx/imaglist.h>
+ #include <wx/listctrl.h>
++#endif
+ #include <wx/mstream.h>
+ #include <wx/power.h>
+ #include <wx/snglinst.h>
++#ifdef ENABLE_wxGUI
+ #include <wx/taskbar.h>
++#endif
+ #include <wx/txtstrm.h>
++#ifdef ENABLE_wxGUI
+ #include <wx/valgen.h>
++#endif
+ #include <wx/wfstream.h>
+
+ #include <iostream>
+diff -urNp truecrypt-5.1-source.org/Main/TextUserInterface.cpp truecrypt-5.1-source/Main/TextUserInterface.cpp
+--- truecrypt-5.1-source.org/Main/TextUserInterface.cpp 2008-03-10 15:05:40.000000000 +0200
++++ truecrypt-5.1-source/Main/TextUserInterface.cpp 2008-03-12 23:39:24.000000000 +0200
+@@ -712,8 +712,9 @@ namespace TrueCrypt
+
+ InterfaceType = UserInterfaceType::Text;
+ Init();
+-
++#ifdef ENABLE_wxGUI
+ SetExitOnFrameDelete (false);
++#endif
+ }
+ catch (exception &e)
+ {
+diff -urNp truecrypt-5.1-source.org/Main/Unix/Main.cpp truecrypt-5.1-source/Main/Unix/Main.cpp
+--- truecrypt-5.1-source.org/Main/Unix/Main.cpp 2008-03-09 22:13:10.000000000 +0200
++++ truecrypt-5.1-source/Main/Unix/Main.cpp 2008-03-12 23:39:24.000000000 +0200
+@@ -61,6 +61,9 @@ int main (int argc, char **argv)
+ if (!getenv ("DISPLAY"))
+ forceTextUI = true;
+ #endif
++#ifndef ENABLE_wxGUI
++ forceTextUI = true;
++#endif
+
+ // Set user interface type
+ if (forceTextUI || (argc > 1 && (strcmp (argv[1], "-t") == 0 || strcmp (argv[1], "--text") == 0)))
+diff -urNp truecrypt-5.1-source.org/Main/UserInterface.cpp truecrypt-5.1-source/Main/UserInterface.cpp
+--- truecrypt-5.1-source.org/Main/UserInterface.cpp 2008-03-09 19:02:54.000000000 +0200
++++ truecrypt-5.1-source/Main/UserInterface.cpp 2008-03-12 23:41:46.000000000 +0200
+@@ -356,11 +356,13 @@ namespace TrueCrypt
+ {
+ wxString message = ExceptionTypeToString (typeid (ex));
+
++#ifdef ENABLE_wxGUI
+ #ifdef __WXGTK__
+ if (Application::GetUserInterfaceType() != UserInterfaceType::Text)
+ #endif
+ if (wxGetKeyState (WXK_CAPITAL))
+ message += wxString (L"\n\n") + LangString["CAPSLOCK_ON"];
++#endif
+
+ return message;
+ }
+diff -urNp truecrypt-5.1-source.org/Main/VolumeHistory.cpp truecrypt-5.1-source/Main/VolumeHistory.cpp
+--- truecrypt-5.1-source.org/Main/VolumeHistory.cpp 2008-02-04 13:14:16.000000000 +0200
++++ truecrypt-5.1-source/Main/VolumeHistory.cpp 2008-03-12 23:39:24.000000000 +0200
+@@ -10,6 +10,9 @@
+ #include "Application.h"
+ #include "GraphicUserInterface.h"
+ #include "Xml.h"
++
++#ifdef ENABLE_wxGUI
++
+ #include "VolumeHistory.h"
+
+ namespace TrueCrypt
+@@ -150,3 +153,5 @@ namespace TrueCrypt
+ Mutex VolumeHistory::AccessMutex;
+
+ }
++
++#endif
+diff -urNp truecrypt-5.1-source.org/Makefile truecrypt-5.1-source/Makefile
+--- truecrypt-5.1-source.org/Makefile 2008-03-12 23:38:33.000000000 +0200
++++ truecrypt-5.1-source/Makefile 2008-03-12 23:39:24.000000000 +0200
+@@ -12,6 +12,7 @@
+ # NOSTRIP: Do not strip release binary
+ # NOTEST: Do not test release binary
+ # VERBOSE: Enable verbose messages
++# NOGUI: Do not build GUI truecrypt
+
+ #------ Targets ------
+ # all
+@@ -31,6 +32,11 @@ TC_BUILD_CONFIG := Debug
+ endif
+ endif
+
++export TC_BUILD_GUI := True
++
++ifeq "$(origin NOGUI)" "command line"
++TC_BUILD_GUI := False
++endif
+
+ #------ Build configuration ------
+
+@@ -147,6 +153,9 @@ endif
+
+ endif
+
++ifeq "$(TC_BUILD_GUI)" "True"
++C_CXX_FLAGS += -DENABLE_wxGUI
++endif
+
+ #------ FreeBSD configuration ------
+
+@@ -203,6 +212,12 @@ CXXFLAGS :=
+ LFLAGS :=
+ endif
+
++ifeq "$(TC_BUILD_GUI)" "True"
++WX_NO_GUI:=
++else
++WX_NO_GUI:=--disable-gui
++endif
++
+ wxbuild:
+
+ ifneq "$(shell test -f $(WX_ROOT)/configure || test -f $(WX_BUILD_DIR)/../configure && echo 1)" "1"
+@@ -212,7 +227,7 @@ endif
+
+ mkdir -p $(WX_BUILD_DIR)
+ @echo Configuring wxWidgets library...
+- cd $(WX_BUILD_DIR) && $(WX_ROOT)/configure $(WX_CONFIGURE_FLAGS) >/dev/null
++ cd $(WX_BUILD_DIR) && $(WX_ROOT)/configure $(WX_NO_GUI) $(WX_CONFIGURE_FLAGS) >/dev/null
+
+ @echo Building wxWidgets library...
+ cd $(WX_BUILD_DIR) && make
diff --git a/app-crypt/truecrypt/truecrypt-5.1.ebuild b/app-crypt/truecrypt/truecrypt-5.1.ebuild
new file mode 100644
index 000000000000..4ef18f542642
--- /dev/null
+++ b/app-crypt/truecrypt/truecrypt-5.1.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/truecrypt/truecrypt-5.1.ebuild,v 1.1 2008/03/13 07:01:39 alonbl Exp $
+
+inherit eutils toolchain-funcs multilib wxwidgets
+
+DESCRIPTION="Free open-source disk encryption software"
+HOMEPAGE="http://www.truecrypt.org/"
+SRC_URI="${P}.tar.gz"
+
+LICENSE="truecrypt-collective-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="X"
+RESTRICT="fetch"
+
+RDEPEND="sys-fs/fuse
+ =x11-libs/wxGTK-2.8*"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${P}-source"
+
+pkg_nofetch() {
+ einfo "Please download tar.gz source from:"
+ einfo "http://www.truecrypt.org/downloads2.php"
+ einfo "Then put the file in ${DISTDIR}/${P}.tar.gz"
+}
+
+pkg_setup() {
+ WX_GTK_VER="2.8"
+ if use X; then
+ need-wxwidgets unicode
+ else
+ need-wxwidgets base-unicode
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${PN}-5.0-build.patch"
+ epatch "${FILESDIR}/${P}-64bit.patch"
+ epatch "${FILESDIR}/${PN}-5.0-bool.patch"
+ epatch "${FILESDIR}/${P}-nogui.patch"
+}
+
+src_compile() {
+ local EXTRA
+ use amd64 && EXTRA="${EXTRA} USE64BIT=1"
+ use X || EXTRA="${EXTRA} NOGUI=1"
+ emake \
+ ${EXTRA} \
+ NOSTRIP=1 \
+ VERBOSE=1 \
+ CC="$(tc-getCC)" \
+ AR="$(tc-getAR)" \
+ CXX="$(tc-getCXX)" \
+ RANLIB="$(tc-getRANLIB)" \
+ EXTRA_CFLAGS="${CFLAGS}" \
+ EXTRA_CXXFLAGS="${CXXFLAGS}" \
+ EXTRA_LDFLAGS="${LDFLAGS}" \
+ WX_CONFIG="${WX_CONFIG}" \
+ WX_CONFIG_EXTRA="" \
+ || die
+}
+
+src_test() {
+ "${S}/Main/truecrypt" --text --test
+}
+
+src_install() {
+ dobin Main/truecrypt
+ dodoc Readme.txt 'Release/Setup Files/TrueCrypt User Guide.pdf'
+ insinto "/$(get_libdir)/rcscripts/addons"
+ newins "${FILESDIR}/${PN}-stop.sh" "${PN}-stop.sh"
+}