1 |
commit: 778b69c618b4e33ae5a129c9276d75c91ad3b46a |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 20 19:05:13 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 27 15:19:16 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=778b69c6 |
7 |
|
8 |
app-editors/vim: Convert to python-single-r1, #615832 |
9 |
|
10 |
.../{vim-9999.ebuild => vim-8.0.0386-r1.ebuild} | 33 +++++----------------- |
11 |
app-editors/vim/vim-9999.ebuild | 31 ++++---------------- |
12 |
2 files changed, 13 insertions(+), 51 deletions(-) |
13 |
|
14 |
diff --git a/app-editors/vim/vim-9999.ebuild b/app-editors/vim/vim-8.0.0386-r1.ebuild |
15 |
similarity index 93% |
16 |
copy from app-editors/vim/vim-9999.ebuild |
17 |
copy to app-editors/vim/vim-8.0.0386-r1.ebuild |
18 |
index 7bbc4a62c5c..dcd88946537 100644 |
19 |
--- a/app-editors/vim/vim-9999.ebuild |
20 |
+++ b/app-editors/vim/vim-8.0.0386-r1.ebuild |
21 |
@@ -5,7 +5,7 @@ EAPI=6 |
22 |
VIM_VERSION="8.0" |
23 |
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
24 |
PYTHON_REQ_USE=threads |
25 |
-inherit eutils vim-doc flag-o-matic fdo-mime versionator bash-completion-r1 python-r1 |
26 |
+inherit eutils vim-doc flag-o-matic fdo-mime versionator bash-completion-r1 python-single-r1 |
27 |
|
28 |
if [[ ${PV} == 9999* ]] ; then |
29 |
inherit git-r3 |
30 |
@@ -13,7 +13,7 @@ if [[ ${PV} == 9999* ]] ; then |
31 |
else |
32 |
SRC_URI="https://github.com/vim/vim/archive/v${PV}.tar.gz -> ${P}.tar.gz |
33 |
https://dev.gentoo.org/~radhermit/vim/vim-8.0.0106-gentoo-patches.tar.bz2" |
34 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
35 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
36 |
fi |
37 |
|
38 |
DESCRIPTION="Vim, an improved vi-style text editor" |
39 |
@@ -24,11 +24,7 @@ LICENSE="vim" |
40 |
IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux tcl vim-pager" |
41 |
REQUIRED_USE=" |
42 |
luajit? ( lua ) |
43 |
- python? ( |
44 |
- || ( $(python_gen_useflags '*') ) |
45 |
- ?? ( $(python_gen_useflags 'python2*') ) |
46 |
- ?? ( $(python_gen_useflags 'python3*') ) |
47 |
- ) |
48 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
49 |
" |
50 |
|
51 |
RDEPEND=" |
52 |
@@ -67,6 +63,8 @@ pkg_setup() { |
53 |
# Gnome sandbox silliness. bug #114475. |
54 |
mkdir -p "${T}"/home |
55 |
export HOME="${T}"/home |
56 |
+ |
57 |
+ use python && python-single-r1_pkg_setup |
58 |
} |
59 |
|
60 |
src_prepare() { |
61 |
@@ -195,31 +193,14 @@ src_configure() { |
62 |
$(use_with luajit) |
63 |
$(use_enable nls) |
64 |
$(use_enable perl perlinterp) |
65 |
+ $(use_enable python pythoninterp) |
66 |
+ $(use_enable python python3interp) |
67 |
$(use_enable racket mzschemeinterp) |
68 |
$(use_enable ruby rubyinterp) |
69 |
$(use_enable selinux) |
70 |
$(use_enable tcl tclinterp) |
71 |
) |
72 |
|
73 |
- if use python ; then |
74 |
- py_add_interp() { |
75 |
- local v |
76 |
- |
77 |
- [[ ${EPYTHON} == python3* ]] && v=3 |
78 |
- myconf+=( |
79 |
- --enable-python${v}interp |
80 |
- vi_cv_path_python${v}="${PYTHON}" |
81 |
- ) |
82 |
- } |
83 |
- |
84 |
- python_foreach_impl py_add_interp |
85 |
- else |
86 |
- myconf+=( |
87 |
- --disable-pythoninterp |
88 |
- --disable-python3interp |
89 |
- ) |
90 |
- fi |
91 |
- |
92 |
# --with-features=huge forces on cscope even if we --disable it. We need |
93 |
# to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
94 |
if ! use cscope ; then |
95 |
|
96 |
diff --git a/app-editors/vim/vim-9999.ebuild b/app-editors/vim/vim-9999.ebuild |
97 |
index 7bbc4a62c5c..f1b87f0b3ab 100644 |
98 |
--- a/app-editors/vim/vim-9999.ebuild |
99 |
+++ b/app-editors/vim/vim-9999.ebuild |
100 |
@@ -5,7 +5,7 @@ EAPI=6 |
101 |
VIM_VERSION="8.0" |
102 |
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
103 |
PYTHON_REQ_USE=threads |
104 |
-inherit eutils vim-doc flag-o-matic fdo-mime versionator bash-completion-r1 python-r1 |
105 |
+inherit eutils vim-doc flag-o-matic fdo-mime versionator bash-completion-r1 python-single-r1 |
106 |
|
107 |
if [[ ${PV} == 9999* ]] ; then |
108 |
inherit git-r3 |
109 |
@@ -24,11 +24,7 @@ LICENSE="vim" |
110 |
IUSE="X acl cscope debug gpm lua luajit minimal nls perl python racket ruby selinux tcl vim-pager" |
111 |
REQUIRED_USE=" |
112 |
luajit? ( lua ) |
113 |
- python? ( |
114 |
- || ( $(python_gen_useflags '*') ) |
115 |
- ?? ( $(python_gen_useflags 'python2*') ) |
116 |
- ?? ( $(python_gen_useflags 'python3*') ) |
117 |
- ) |
118 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
119 |
" |
120 |
|
121 |
RDEPEND=" |
122 |
@@ -67,6 +63,8 @@ pkg_setup() { |
123 |
# Gnome sandbox silliness. bug #114475. |
124 |
mkdir -p "${T}"/home |
125 |
export HOME="${T}"/home |
126 |
+ |
127 |
+ use python && python-single-r1_pkg_setup |
128 |
} |
129 |
|
130 |
src_prepare() { |
131 |
@@ -195,31 +193,14 @@ src_configure() { |
132 |
$(use_with luajit) |
133 |
$(use_enable nls) |
134 |
$(use_enable perl perlinterp) |
135 |
+ $(use_enable python pythoninterp) |
136 |
+ $(use_enable python python3interp) |
137 |
$(use_enable racket mzschemeinterp) |
138 |
$(use_enable ruby rubyinterp) |
139 |
$(use_enable selinux) |
140 |
$(use_enable tcl tclinterp) |
141 |
) |
142 |
|
143 |
- if use python ; then |
144 |
- py_add_interp() { |
145 |
- local v |
146 |
- |
147 |
- [[ ${EPYTHON} == python3* ]] && v=3 |
148 |
- myconf+=( |
149 |
- --enable-python${v}interp |
150 |
- vi_cv_path_python${v}="${PYTHON}" |
151 |
- ) |
152 |
- } |
153 |
- |
154 |
- python_foreach_impl py_add_interp |
155 |
- else |
156 |
- myconf+=( |
157 |
- --disable-pythoninterp |
158 |
- --disable-python3interp |
159 |
- ) |
160 |
- fi |
161 |
- |
162 |
# --with-features=huge forces on cscope even if we --disable it. We need |
163 |
# to sed this out to avoid screwiness. (1 Sep 2004 ciaranm) |
164 |
if ! use cscope ; then |