annotate app-crypt/veracrypt/veracrypt-1.16.ebuild @ 426:b8e61c5ba142

update to the latest and greatest version
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sat, 29 Oct 2016 02:11:18 +0200
parents c8888d18c151
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
399
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1 # Copyright 1999-2015 Gentoo Foundation
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3 # $Id$
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5 EAPI="5"
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6 WX_GTK_VER="3.0"
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8 inherit unpacker wxwidgets
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10 DESCRIPTION="VeraCrypt is a free disk encryption software based on TrueCrypt"
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11 HOMEPAGE="https://veracrypt.codeplex.com"
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12 SRC_URI="https://github.com/veracrypt/VeraCrypt/archive/VeraCrypt_${PV}.tar.gz -> ${P}.tar.gz"
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14 LICENSE="truecrypt-3.0"
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15 SLOT="0"
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16 KEYWORDS="~amd64"
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
17 IUSE=""
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
18
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
20 RESTRICT="mirror"
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
21
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22 DEPEND="
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
23 sys-devel/make
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
24 dev-lang/nasm
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
25 app-arch/makeself
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
26 sys-fs/fuse
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
27 x11-libs/wxGTK:${WX_GTK_VER}[X]
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
28 "
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
29
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
30 RDEPEND="${DEPEND}"
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
31
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
32 S=${WORKDIR}
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
33
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
34 src_unpack() {
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
35 unpack ${A} || die "Could not unpack!"
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
36 mv ${WORKDIR}/* ${WORKDIR}/${PN} || die "Could not move directory!"
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
37 return
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
38 }
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
39
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
40 src_compile() {
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
41 cd ${WORKDIR}/${PN}/src
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
42 make || die "Could not make VeraCrypt!"
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
43 return
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
44 }
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
45
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
46 src_install() {
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
47 exeinto /usr/bin
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
48 doexe ${WORKDIR}/${PN}/src/Main/veracrypt || die "Could not install veracrypt executable!"
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
49 insinto /usr/share/pixmaps
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
50 doins "${FILESDIR}"/veracrypt.png || die "Could not copy veracrypt.png"
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
51 return
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
52 }
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
53
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
54 pkg_postinst() {
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
55 xdg-desktop-menu install --novendor "${FILESDIR}"/veracrypt.desktop || die "Could not register a menu item!"
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
56 return
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
57 }
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
58
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
59 pkg_postrm() {
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
60 xdg-desktop-menu uninstall "${FILESDIR}"/veracrypt.desktop || die "Could not de-register a menu item!"
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
61 return
c8888d18c151 update veracrypt to 1.16
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
62 }