blob: f5ce651c074ba5de513e7fca840e59185422a830 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# 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.1a.ebuild,v 1.2 2008/04/18 05:26:42 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}/${P}-gcc-4.3.patch"
epatch "${FILESDIR}/${P}-external-wx.patch"
epatch "${FILESDIR}/${PN}-5.1-64bit.patch"
epatch "${FILESDIR}/${PN}-5.0-bool.patch"
}
src_compile() {
local EXTRA
use amd64 && EXTRA="${EXTRA} USE64BIT=1"
use X || EXTRA="${EXTRA} NOGUI=1"
emake \
${EXTRA} \
NOSTRIP=1 \
VERBOSE=1 \
NOTEST=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"
}
|