1 |
commit: b2476045e8e305ba09aa24cfe3d4f45fda9c1a9b |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 31 22:01:56 2016 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 31 22:21:29 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2476045 |
7 |
|
8 |
net-misc/freerdp: convert to EAPI 6 |
9 |
|
10 |
net-misc/freerdp/freerdp-9999.ebuild | 52 +++++++++++++++++++----------------- |
11 |
1 file changed, 28 insertions(+), 24 deletions(-) |
12 |
|
13 |
diff --git a/net-misc/freerdp/freerdp-9999.ebuild b/net-misc/freerdp/freerdp-9999.ebuild |
14 |
index a173223..0ca0957 100644 |
15 |
--- a/net-misc/freerdp/freerdp-9999.ebuild |
16 |
+++ b/net-misc/freerdp/freerdp-9999.ebuild |
17 |
@@ -1,12 +1,13 @@ |
18 |
-# Copyright 1999-2015 Gentoo Foundation |
19 |
+# Copyright 1999-2016 Gentoo Foundation |
20 |
# Distributed under the terms of the GNU General Public License v2 |
21 |
# $Id$ |
22 |
|
23 |
-EAPI="5" |
24 |
+EAPI="6" |
25 |
|
26 |
-inherit cmake-utils vcs-snapshot |
27 |
+inherit cmake-utils |
28 |
|
29 |
-if [[ ${PV} != 9999* ]]; then |
30 |
+if [[ ${PV} != 9999 ]]; then |
31 |
+ inherit vcs-snapshot |
32 |
COMMIT="" |
33 |
SRC_URI="https://github.com/FreeRDP/FreeRDP/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
34 |
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86" |
35 |
@@ -85,27 +86,30 @@ DEPEND="${RDEPEND} |
36 |
DOCS=( README ) |
37 |
|
38 |
src_configure() { |
39 |
+ onoff() { |
40 |
+ usex "$1" ON OFF |
41 |
+ } |
42 |
local mycmakeargs=( |
43 |
- $(cmake-utils_use_with alsa ALSA) |
44 |
- $(cmake-utils_use_with client CLIENT) |
45 |
- $(cmake-utils_use_with cups CUPS) |
46 |
- $(cmake-utils_use_with debug DEBUG_ALL) |
47 |
- $(cmake-utils_use_with doc MANPAGES) |
48 |
- $(cmake-utils_use_with ffmpeg FFMPEG) |
49 |
- $(cmake-utils_use_with gstreamer GSTREAMER_1_0) |
50 |
- $(cmake-utils_use_with jpeg JPEG) |
51 |
- $(cmake-utils_use_with neon NEON) |
52 |
- $(cmake-utils_use_with pulseaudio PULSE) |
53 |
- $(cmake-utils_use_with server SERVER) |
54 |
- $(cmake-utils_use_with smartcard PCSC) |
55 |
- $(cmake-utils_use_with systemd LIBSYSTEMD) |
56 |
- $(cmake-utils_use_with cpu_flags_x86_sse2 SSE2) |
57 |
- $(cmake-utils_use usb CHANNEL_URBDRC) |
58 |
- $(cmake-utils_use_with X X11) |
59 |
- $(cmake-utils_use_with xinerama XINERAMA) |
60 |
- $(cmake-utils_use_with xv XV) |
61 |
- $(cmake-utils_use_build test TESTING) |
62 |
- $(cmake-utils_use_with wayland WAYLAND) |
63 |
+ -DWITH_ALSA=$(onoff alsa) |
64 |
+ -DWITH_CLIENT=$(onoff client) |
65 |
+ -DWITH_CUPS=$(onoff cups) |
66 |
+ -DWITH_DEBUG_ALL=$(onoff debug) |
67 |
+ -DWITH_MANPAGES=$(onoff doc) |
68 |
+ -DWITH_FFMPEG=$(onoff ffmpeg) |
69 |
+ -DWITH_GSTREAMER_1_0=$(onoff gstreamer) |
70 |
+ -DWITH_JPEG=$(onoff jpeg) |
71 |
+ -DWITH_NEON=$(onoff neon) |
72 |
+ -DWITH_PULSE=$(onoff pulseaudio) |
73 |
+ -DWITH_SERVER=$(onoff server) |
74 |
+ -DWITH_PCSC=$(onoff smartcard) |
75 |
+ -DWITH_LIBSYSTEMD=$(onoff systemd) |
76 |
+ -DWITH_SSE2=$(onoff cpu_flags_x86_sse2) |
77 |
+ -DCHANNEL_URBDRC=$(onoff usb) |
78 |
+ -DWITH_X11=$(onoff X) |
79 |
+ -DWITH_XINERAMA=$(onoff xinerama) |
80 |
+ -DWITH_XV=$(onoff xv) |
81 |
+ -DBUILD_TESTING=$(onoff test) |
82 |
+ -DWITH_WAYLAND=$(onoff wayland) |
83 |
) |
84 |
cmake-utils_src_configure |
85 |
} |