Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 426330 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/net-irc/weechat/weechat-0.3.8.ebuild (-6 / +17 lines)
Lines 4-14 Link Here
4
4
5
EAPI=4
5
EAPI=4
6
6
7
PYTHON_DEPEND="python? *"
8
9
EGIT_REPO_URI="git://git.sv.gnu.org/weechat.git"
7
EGIT_REPO_URI="git://git.sv.gnu.org/weechat.git"
10
[[ ${PV} == "9999" ]] && GIT_ECLASS="git-2"
8
[[ ${PV} == "9999" ]] && GIT_ECLASS="git-2"
11
inherit python multilib cmake-utils ${GIT_ECLASS}
9
inherit eutils python multilib cmake-utils ${GIT_ECLASS}
12
10
13
DESCRIPTION="Portable and multi-interface IRC client."
11
DESCRIPTION="Portable and multi-interface IRC client."
14
HOMEPAGE="http://weechat.org/"
12
HOMEPAGE="http://weechat.org/"
Lines 25-31 Link Here
25
NETWORKS="+irc"
23
NETWORKS="+irc"
26
PLUGINS="+alias +charset +fifo +logger +relay +rmodifier +scripts +spell +xfer"
24
PLUGINS="+alias +charset +fifo +logger +relay +rmodifier +scripts +spell +xfer"
27
#INTERFACES="+ncurses gtk"
25
#INTERFACES="+ncurses gtk"
28
SCRIPT_LANGS="guile lua +perl +python ruby tcl"
26
SCRIPT_LANGS="guile lua +perl +python2 python3 ruby tcl"
29
IUSE="${SCRIPT_LANGS} ${PLUGINS} ${INTERFACES} ${NETWORKS} +crypt doc nls +ssl"
27
IUSE="${SCRIPT_LANGS} ${PLUGINS} ${INTERFACES} ${NETWORKS} +crypt doc nls +ssl"
30
28
31
RDEPEND="
29
RDEPEND="
Lines 35-40 Link Here
35
	guile? ( dev-scheme/guile )
33
	guile? ( dev-scheme/guile )
36
	lua? ( dev-lang/lua[deprecated] )
34
	lua? ( dev-lang/lua[deprecated] )
37
	perl? ( dev-lang/perl )
35
	perl? ( dev-lang/perl )
36
	python2? ( =dev-lang/python-2* )
37
	python3? ( =dev-lang/python-3* )
38
	ruby? ( >=dev-lang/ruby-1.9 )
38
	ruby? ( >=dev-lang/ruby-1.9 )
39
	ssl? ( net-libs/gnutls )
39
	ssl? ( net-libs/gnutls )
40
	spell? ( app-text/aspell )
40
	spell? ( app-text/aspell )
Lines 49-54 Link Here
49
DOCS="AUTHORS ChangeLog NEWS README"
49
DOCS="AUTHORS ChangeLog NEWS README"
50
50
51
#REQUIRED_USE=" || ( ncurses gtk )"
51
#REQUIRED_USE=" || ( ncurses gtk )"
52
REQUIRED_USE="^^ ( python2 python3 )"
52
53
53
LANGS=( cs de es fr hu it ja pl pt_BR ru )
54
LANGS=( cs de es fr hu it ja pl pt_BR ru )
54
for X in "${LANGS[@]}" ; do
55
for X in "${LANGS[@]}" ; do
Lines 56-62 Link Here
56
done
57
done
57
58
58
pkg_setup() {
59
pkg_setup() {
59
	use python && python_pkg_setup
60
	use python2 && python_set_active_version 2;
61
	use python3 && python_set_active_version 3;
62
	(use python2 || use python3) && python_pkg_setup
60
}
63
}
61
64
62
src_prepare() {
65
src_prepare() {
Lines 97-103 Link Here
97
		$(cmake-utils_use_enable relay)
100
		$(cmake-utils_use_enable relay)
98
		$(cmake-utils_use_enable scripts)
101
		$(cmake-utils_use_enable scripts)
99
		$(cmake-utils_use_enable perl)
102
		$(cmake-utils_use_enable perl)
100
		$(cmake-utils_use_enable python)
103
		$(cmake-utils_use_enable python2 python)
104
		$(cmake-utils_use_enable python3 python)
101
		$(cmake-utils_use_enable ruby)
105
		$(cmake-utils_use_enable ruby)
102
		$(cmake-utils_use_enable lua)
106
		$(cmake-utils_use_enable lua)
103
		$(cmake-utils_use_enable tcl)
107
		$(cmake-utils_use_enable tcl)
Lines 105-110 Link Here
105
		$(cmake-utils_use_enable doc)
109
		$(cmake-utils_use_enable doc)
106
	)
110
	)
107
111
112
	use python2 && mycmakeargs[${#mycmakeargs[@]}]="-DPYTHON_EXECUTABLE=/usr/bin/python2";
113
	use python3 && mycmakeargs[${#mycmakeargs[@]}]="-DPYTHON_EXECUTABLE=/usr/bin/python3";
114
115
	mycmakeargs[${#mycmakeargs[@]}]="-DPYTHON_LIBRARY="$(python_get_library);
116
	echo "Setting python version to "$(python_get_library);
117
		                      
118
108
	cmake-utils_src_configure
119
	cmake-utils_src_configure
109
}
120
}
110
121

Return to bug 426330