/[gentoo-x86]/net-irc/weechat/weechat-0.3.7.ebuild
Gentoo

Contents of /net-irc/weechat/weechat-0.3.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (hide annotations) (download)
Tue Aug 21 13:28:37 2012 UTC (2 years, 2 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Sort out the dependency over py2/3 wrt bug#426330. Stabilise 0.3.8 on all archs. Remove older.

(Portage version: 2.2.0_alpha121/cvs/Linux x86_64)

1 scarabeus 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 scarabeus 1.11 # $Header: /var/cvsroot/gentoo-x86/net-irc/weechat/weechat-0.3.7.ebuild,v 1.10 2012/04/16 21:11:28 ranger Exp $
4 scarabeus 1.1
5 scarabeus 1.4 EAPI=3
6 scarabeus 1.1
7 scarabeus 1.2 # Can only add ruby19 support when ruby:1.9 is keyworded.
8     #USE_RUBY="ruby18 ruby19"
9     USE_RUBY="ruby18"
10 scarabeus 1.1 RUBY_OPTIONAL="yes"
11    
12     PYTHON_DEPEND="python? *"
13    
14     EGIT_REPO_URI="git://git.sv.gnu.org/weechat.git"
15     [[ ${PV} == "9999" ]] && GIT_ECLASS="git-2"
16     inherit python multilib ruby-ng cmake-utils ${GIT_ECLASS}
17    
18     DESCRIPTION="Portable and multi-interface IRC client."
19     HOMEPAGE="http://weechat.org/"
20     [[ ${PV} == "9999" ]] || SRC_URI="http://${PN}.org/files/src/${P}.tar.bz2"
21    
22     LICENSE="GPL-3"
23     SLOT="0"
24     if [[ ${PV} == "9999" ]]; then
25     KEYWORDS=""
26     else
27 ranger 1.10 KEYWORDS="amd64 ppc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
28 scarabeus 1.1 fi
29    
30     NETWORKS="+irc"
31     PLUGINS="+alias +charset +fifo +logger +relay +rmodifier +scripts +spell +xfer"
32     #INTERFACES="+ncurses gtk"
33 scarabeus 1.2 SCRIPT_LANGS="guile lua +perl +python ruby tcl"
34 scarabeus 1.1 IUSE="${SCRIPT_LANGS} ${PLUGINS} ${INTERFACES} ${NETWORKS} +crypt doc nls +ssl"
35    
36     RDEPEND="
37 scarabeus 1.2 net-misc/curl[ssl]
38 scarabeus 1.1 sys-libs/ncurses
39     charset? ( virtual/libiconv )
40 scarabeus 1.2 guile? ( dev-scheme/guile )
41 scarabeus 1.1 lua? ( dev-lang/lua[deprecated] )
42     perl? ( dev-lang/perl )
43     ruby? ( $(ruby_implementations_depend) )
44     ssl? ( net-libs/gnutls )
45     spell? ( app-text/aspell )
46     tcl? ( >=dev-lang/tcl-8.4.15 )
47     "
48     # ncurses? ( sys-libs/ncurses )
49     # gtk? ( x11-libs/gtk+:2 )
50     DEPEND="${RDEPEND}
51     nls? ( >=sys-devel/gettext-0.15 )
52     "
53    
54     DOCS="AUTHORS ChangeLog NEWS README"
55    
56     #REQUIRED_USE=" || ( ncurses gtk )"
57    
58 scarabeus 1.3 LANGS=( cs de es fr hu it ja pl pt_BR ru )
59     for X in "${LANGS[@]}" ; do
60     IUSE="${IUSE} linguas_${X}"
61     done
62    
63 scarabeus 1.1 pkg_setup() {
64 scarabeus 1.5 use python && python_pkg_setup
65 scarabeus 1.9 use ruby && ruby-ng_pkg_setup
66 scarabeus 1.1 }
67    
68     src_prepare() {
69 scarabeus 1.3 local i
70    
71 scarabeus 1.1 # fix libdir placement
72     sed -i \
73     -e "s:lib/:$(get_libdir)/:g" \
74     -e "s:lib\":$(get_libdir)\":g" \
75 scarabeus 1.4 "${S}/CMakeLists.txt" || die "sed failed"
76 scarabeus 1.3
77     # install only required translations
78     for i in "${LANGS[@]}" ; do
79     if ! use linguas_${i} ; then
80     sed -i \
81     -e "/${i}.po/d" \
82 scarabeus 1.4 "${S}/po/CMakeLists.txt" || die
83 scarabeus 1.3 fi
84     done
85 scarabeus 1.1 }
86    
87     # alias, rmodifier, xfer
88     src_configure() {
89     # $(cmake-utils_use_enable gtk)
90     # $(cmake-utils_use_enable ncurses)
91 scarabeus 1.2 local mycmakeargs=(
92 scarabeus 1.1 "-DENABLE_NCURSES=ON"
93     "-DENABLE_LARGEFILE=ON"
94     "-DENABLE_DEMO=OFF"
95     "-DENABLE_GTK=OFF"
96     $(cmake-utils_use_enable nls)
97     $(cmake-utils_use_enable crypt GCRYPT)
98     $(cmake-utils_use_enable spell ASPELL)
99     $(cmake-utils_use_enable charset)
100     $(cmake-utils_use_enable fifo)
101     $(cmake-utils_use_enable irc)
102     $(cmake-utils_use_enable logger)
103     $(cmake-utils_use_enable relay)
104     $(cmake-utils_use_enable scripts)
105     $(cmake-utils_use_enable perl)
106     $(cmake-utils_use_enable python)
107     $(cmake-utils_use_enable ruby)
108     $(cmake-utils_use_enable lua)
109     $(cmake-utils_use_enable tcl)
110 scarabeus 1.8 $(cmake-utils_use_enable guile)
111 scarabeus 1.1 $(cmake-utils_use_enable doc)
112     )
113    
114     cmake-utils_src_configure
115     }
116    
117     pkg_postinst() {
118     if use scripts && use python; then
119     elog "You may use the following script from upstream to manage your scripts."
120     elog "It helps with downloading and updating other scripts:"
121     elog " http://www.weechat.org/scripts/source/stable/weeget.py/"
122     fi
123     }

  ViewVC Help
Powered by ViewVC 1.1.20