1 |
commit: 0c5415f0cd1908fef0a9c68708fa8c37e0d07e0a |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Feb 22 22:55:09 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 23 20:38:52 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c5415f0 |
7 |
|
8 |
media-video/mpv: migrate to eapi7-ver from versionator |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
media-video/mpv/mpv-9999.ebuild | 14 +++++--------- |
13 |
1 file changed, 5 insertions(+), 9 deletions(-) |
14 |
|
15 |
diff --git a/media-video/mpv/mpv-9999.ebuild b/media-video/mpv/mpv-9999.ebuild |
16 |
index 581119576d3..1819d5337ba 100644 |
17 |
--- a/media-video/mpv/mpv-9999.ebuild |
18 |
+++ b/media-video/mpv/mpv-9999.ebuild |
19 |
@@ -8,7 +8,7 @@ PYTHON_REQ_USE='threads(+)' |
20 |
|
21 |
WAF_PV=1.9.8 |
22 |
|
23 |
-inherit flag-o-matic gnome2-utils pax-utils python-r1 toolchain-funcs versionator waf-utils xdg-utils |
24 |
+inherit eapi7-ver flag-o-matic gnome2-utils pax-utils python-r1 toolchain-funcs waf-utils xdg-utils |
25 |
|
26 |
DESCRIPTION="Media player based on MPlayer and mplayer2" |
27 |
HOMEPAGE="https://mpv.io/" |
28 |
@@ -284,14 +284,10 @@ pkg_postinst() { |
29 |
local rv softvol_0_18_1=0 osc_0_21_0=0 txtsubs_0_24_0=0 opengl_0_25_0=0 |
30 |
|
31 |
for rv in ${REPLACING_VERSIONS}; do |
32 |
- version_compare ${rv} 0.18.1 |
33 |
- [[ $? -eq 1 ]] && softvol_0_18_1=1 |
34 |
- version_compare ${rv} 0.21.0 |
35 |
- [[ $? -eq 1 ]] && osc_0_21_0=1 |
36 |
- version_compare ${rv} 0.24.0 |
37 |
- [[ $? -eq 1 ]] && txtsubs_0_24_0=1 |
38 |
- version_compare ${rv} 0.25.0 |
39 |
- [[ $? -eq 1 ]] && ! use opengl && opengl_0_25_0=1 |
40 |
+ ver_test ${rv} -lt 0.18.1 && softvol_0_18_1=1 |
41 |
+ ver_test ${rv} -lt 0.21.0 && osc_0_21_0=1 |
42 |
+ ver_test ${rv} -lt 0.24.0 && txtsubs_0_24_0=1 |
43 |
+ ver_test ${rv} -lt 0.25.0 && ! use opengl && opengl_0_25_0=1 |
44 |
done |
45 |
|
46 |
if [[ ${softvol_0_18_1} -eq 1 ]]; then |