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 / +19 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 56-62 Link Here
56
done
56
done
57
57
58
pkg_setup() {
58
pkg_setup() {
59
	use python && python_pkg_setup
59
	use python2 python_set_active_version 2;
60
	use python3 python_set_active_version 3;
61
	(use python2 || use python3) && python_pkg_setup
60
}
62
}
61
63
62
src_prepare() {
64
src_prepare() {
Lines 97-103 Link Here
97
		$(cmake-utils_use_enable relay)
99
		$(cmake-utils_use_enable relay)
98
		$(cmake-utils_use_enable scripts)
100
		$(cmake-utils_use_enable scripts)
99
		$(cmake-utils_use_enable perl)
101
		$(cmake-utils_use_enable perl)
100
		$(cmake-utils_use_enable python)
102
		$(cmake-utils_use_enable python2 python)
103
		$(cmake-utils_use_enable python3 python)
101
		$(cmake-utils_use_enable ruby)
104
		$(cmake-utils_use_enable ruby)
102
		$(cmake-utils_use_enable lua)
105
		$(cmake-utils_use_enable lua)
103
		$(cmake-utils_use_enable tcl)
106
		$(cmake-utils_use_enable tcl)
Lines 105-110 Link Here
105
		$(cmake-utils_use_enable doc)
108
		$(cmake-utils_use_enable doc)
106
	)
109
	)
107
110
111
	if use python2; then
112
		mycmakeargs[${#mycmakeargs[@]}]="-DPYTHON_EXECUTABLE=/usr/bin/python2";
113
	elif use python3; then
114
		mycmakeargs[${#mycmakeargs[@]}]="-DPYTHON_EXECUTABLE=/usr/bin/python3";
115
	fi
116
117
	mycmakeargs[${#mycmakeargs[@]}]="-DPYTHON_LIBRARY="$(python_get_library);
118
	echo "Setting python version to "$(python_get_library);
119
		                      
120
108
	cmake-utils_src_configure
121
	cmake-utils_src_configure
109
}
122
}
110
123

Return to bug 426330