1 |
commit: 58d21e4a4ee241d8e0468da2176f09bb3706757e |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 11 14:31:19 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 11 14:31:29 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58d21e4a |
7 |
|
8 |
app-admin/keepassxc: Handle beta releases more gracefully. |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
app-admin/keepassxc/keepassxc-2.4.0_beta2.ebuild | 4 ++++ |
14 |
app-admin/keepassxc/keepassxc-9999.ebuild | 4 ++++ |
15 |
2 files changed, 8 insertions(+) |
16 |
|
17 |
diff --git a/app-admin/keepassxc/keepassxc-2.4.0_beta2.ebuild b/app-admin/keepassxc/keepassxc-2.4.0_beta2.ebuild |
18 |
index b05a5089d56..c7e8d14ab63 100644 |
19 |
--- a/app-admin/keepassxc/keepassxc-2.4.0_beta2.ebuild |
20 |
+++ b/app-admin/keepassxc/keepassxc-2.4.0_beta2.ebuild |
21 |
@@ -69,6 +69,7 @@ src_prepare() { |
22 |
} |
23 |
|
24 |
src_configure() { |
25 |
+ |
26 |
local mycmakeargs=( |
27 |
-DWITH_GUI_TESTS=OFF |
28 |
-DWITH_TESTS="$(usex test)" |
29 |
@@ -79,6 +80,9 @@ src_configure() { |
30 |
-DWITH_XC_SSHAGENT=ON |
31 |
-DWITH_XC_YUBIKEY="$(usex yubikey)" |
32 |
) |
33 |
+ if [[ "${PV}" == *_beta* ]] ; then |
34 |
+ mycmakeargs+=( -DOVERRIDE_VERSION="${PV/_/-}" ) |
35 |
+ fi |
36 |
cmake-utils_src_configure |
37 |
} |
38 |
|
39 |
|
40 |
diff --git a/app-admin/keepassxc/keepassxc-9999.ebuild b/app-admin/keepassxc/keepassxc-9999.ebuild |
41 |
index 1b5f2654570..85eaad62e18 100644 |
42 |
--- a/app-admin/keepassxc/keepassxc-9999.ebuild |
43 |
+++ b/app-admin/keepassxc/keepassxc-9999.ebuild |
44 |
@@ -65,6 +65,7 @@ src_prepare() { |
45 |
} |
46 |
|
47 |
src_configure() { |
48 |
+ |
49 |
local mycmakeargs=( |
50 |
-DWITH_GUI_TESTS=OFF |
51 |
-DWITH_TESTS="$(usex test)" |
52 |
@@ -75,6 +76,9 @@ src_configure() { |
53 |
-DWITH_XC_SSHAGENT=ON |
54 |
-DWITH_XC_YUBIKEY="$(usex yubikey)" |
55 |
) |
56 |
+ if [[ "${PV}" == *_beta* ]] ; then |
57 |
+ mycmakeargs+=( -DOVERRIDE_VERSION="${PV/_/-}" ) |
58 |
+ fi |
59 |
cmake-utils_src_configure |
60 |
} |