Mercurial > hg > portage
annotate app-crypt/veracrypt/veracrypt-1.18a.ebuild @ 481:e3cfb359481d
add an ebuild for visualvm
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Thu, 15 Aug 2019 09:26:55 +0200 |
parents | 3498ce732053 |
children |
rev | line source |
---|---|
417
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
1 # Copyright 1999-2015 Gentoo Foundation |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
2 # Distributed under the terms of the GNU General Public License v2 |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
3 # $Id$ |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
4 |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
5 EAPI="5" |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
6 WX_GTK_VER="3.0" |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
7 |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
8 inherit unpacker wxwidgets |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
9 |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
10 DESCRIPTION="VeraCrypt is a free disk encryption software based on TrueCrypt" |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
11 HOMEPAGE="https://veracrypt.codeplex.com" |
3498ce732053
add latest veracrypt ebuild
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" |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
13 |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
14 LICENSE="truecrypt-3.0" |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
15 SLOT="0" |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
16 KEYWORDS="~amd64" |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
17 IUSE="" |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
18 |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
19 |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
20 RESTRICT="mirror" |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
21 |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
22 DEPEND=" |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
23 sys-devel/make |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
24 dev-lang/nasm |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
25 app-arch/makeself |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
26 sys-fs/fuse |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
27 x11-libs/wxGTK:${WX_GTK_VER}[X] |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
28 " |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
29 |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
30 RDEPEND="${DEPEND}" |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
31 |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
32 S=${WORKDIR} |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
33 |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
34 src_unpack() { |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
35 unpack ${A} || die "Could not unpack!" |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
36 mv ${WORKDIR}/* ${WORKDIR}/${PN} || die "Could not move directory!" |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
37 return |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
38 } |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
39 |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
40 src_compile() { |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
41 cd ${WORKDIR}/${PN}/src |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
42 make || die "Could not make VeraCrypt!" |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
43 return |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
44 } |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
45 |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
46 src_install() { |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
47 exeinto /usr/bin |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
48 doexe ${WORKDIR}/${PN}/src/Main/veracrypt || die "Could not install veracrypt executable!" |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
49 insinto /usr/share/pixmaps |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
50 doins "${FILESDIR}"/veracrypt.png || die "Could not copy veracrypt.png" |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
51 return |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
52 } |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
53 |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
54 pkg_postinst() { |
3498ce732053
add latest veracrypt ebuild
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!" |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
56 return |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
57 } |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
58 |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
59 pkg_postrm() { |
3498ce732053
add latest veracrypt ebuild
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!" |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
61 return |
3498ce732053
add latest veracrypt ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff
changeset
|
62 } |