annotate app-crypt/veracrypt/veracrypt-1.13.ebuild @ 410:06486d4a9de7

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