1 |
commit: 8d8547f6a91138293bb860d2d88efb45622f49bf |
2 |
Author: ILMostro <ilmostro7 <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Sep 12 02:05:34 2018 +0000 |
4 |
Commit: ILMostro <ilmostro7 <AT> gmail <DOT> com> |
5 |
CommitDate: Wed Sep 12 02:05:34 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/user/ag-ops.git/commit/?id=8d8547f6 |
7 |
|
8 |
net-irc/weechat: revbump |
9 |
gentoo repo has weechat-2.2-r1 finally. This increment should suffice to prevent ag-ops version from being overwritten by that |
10 |
provided in gentoo repo. |
11 |
forgot to add the ebuild file |
12 |
|
13 |
net-irc/weechat/weechat-2.2-r2.ebuild | 151 ++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 151 insertions(+) |
15 |
|
16 |
diff --git a/net-irc/weechat/weechat-2.2-r2.ebuild b/net-irc/weechat/weechat-2.2-r2.ebuild |
17 |
new file mode 100644 |
18 |
index 0000000..1cd2258 |
19 |
--- /dev/null |
20 |
+++ b/net-irc/weechat/weechat-2.2-r2.ebuild |
21 |
@@ -0,0 +1,151 @@ |
22 |
+# Copyright 1999-2018 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=6 |
26 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
27 |
+CMAKE_MAKEFILE_GENERATOR=emake |
28 |
+inherit python-single-r1 cmake-utils |
29 |
+ |
30 |
+if [[ ${PV} == "9999" ]] ; then |
31 |
+ inherit git-r3 |
32 |
+ EGIT_REPO_URI="https://github.com/weechat/weechat.git" |
33 |
+else |
34 |
+ SRC_URI="https://weechat.org/files/src/${P}.tar.xz" |
35 |
+ KEYWORDS="~amd64 ~x86 ~x64-macos" |
36 |
+fi |
37 |
+ |
38 |
+DESCRIPTION="Portable and multi-interface IRC client" |
39 |
+HOMEPAGE="https://weechat.org/" |
40 |
+ |
41 |
+LICENSE="GPL-3" |
42 |
+SLOT="0" |
43 |
+ |
44 |
+NETWORKS="+irc" |
45 |
+PLUGINS="+alias +buflist +charset +exec +fset +fifo +logger +relay +scripts +spell +trigger +xfer" |
46 |
+# dev-lang/v8 was dropped from Gentoo so we can't enable javascript support |
47 |
+SCRIPT_LANGS="guile lua +perl php +python ruby tcl" |
48 |
+LANGS=" cs de es fr hu it ja pl pt pt_BR ru tr" |
49 |
+IUSE="doc nls +ssl test ${SCRIPT_LANGS} ${PLUGINS} ${INTERFACES} ${NETWORKS}" |
50 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ dev-libs/libgcrypt:0= |
54 |
+ net-misc/curl[ssl] |
55 |
+ sys-libs/ncurses:0= |
56 |
+ sys-libs/zlib |
57 |
+ charset? ( virtual/libiconv ) |
58 |
+ guile? ( >=dev-scheme/guile-2.0 ) |
59 |
+ lua? ( dev-lang/lua:* ) |
60 |
+ nls? ( virtual/libintl ) |
61 |
+ perl? ( dev-lang/perl:= ) |
62 |
+ php? ( >=dev-lang/php-7.0:* ) |
63 |
+ python? ( ${PYTHON_DEPS} ) |
64 |
+ ruby? ( || ( dev-lang/ruby:2.5 dev-lang/ruby:2.4 dev-lang/ruby:2.3 dev-lang/ruby:2.2 ) ) |
65 |
+ ssl? ( net-libs/gnutls ) |
66 |
+ spell? ( app-text/aspell ) |
67 |
+ tcl? ( >=dev-lang/tcl-8.4.15:0= ) |
68 |
+" |
69 |
+DEPEND="${RDEPEND} |
70 |
+ doc? ( |
71 |
+ >=dev-ruby/asciidoctor-1.5.4 |
72 |
+ dev-util/source-highlight |
73 |
+ ) |
74 |
+ nls? ( >=sys-devel/gettext-0.15 ) |
75 |
+ test? ( dev-util/cpputest ) |
76 |
+" |
77 |
+ |
78 |
+DOCS="AUTHORS.adoc ChangeLog.adoc Contributing.adoc ReleaseNotes.adoc README.adoc" |
79 |
+ |
80 |
+# tests need to be fixed to not use system plugins if weechat is already installed |
81 |
+RESTRICT="test" |
82 |
+ |
83 |
+PATCHES=( "${FILESDIR}"/${PN}-2.1-tinfo.patch ) |
84 |
+ |
85 |
+pkg_setup() { |
86 |
+ use python && python-single-r1_pkg_setup |
87 |
+} |
88 |
+ |
89 |
+src_prepare() { |
90 |
+ cmake-utils_src_prepare |
91 |
+ |
92 |
+ # fix libdir placement |
93 |
+ sed -i \ |
94 |
+ -e "s:lib/:$(get_libdir)/:g" \ |
95 |
+ -e "s:lib\":$(get_libdir)\":g" \ |
96 |
+ CMakeLists.txt || die "sed failed" |
97 |
+ |
98 |
+ # install only required translations |
99 |
+ local i |
100 |
+ for i in ${LANGS} ; do |
101 |
+ if ! has ${i} ${LINGUAS-${i}} ; then |
102 |
+ sed -i \ |
103 |
+ -e "/${i}.po/d" \ |
104 |
+ po/CMakeLists.txt || die |
105 |
+ fi |
106 |
+ done |
107 |
+ |
108 |
+ # install only required documentation ; en always |
109 |
+ for i in $(grep add_subdirectory doc/CMakeLists.txt \ |
110 |
+ | sed -e 's/.*add_subdirectory(\(..\)).*/\1/' -e '/en/d'); do |
111 |
+ if ! has ${i} ${LINGUAS-${i}} ; then |
112 |
+ sed -i \ |
113 |
+ -e '/add_subdirectory('${i}')/d' \ |
114 |
+ doc/CMakeLists.txt || die |
115 |
+ fi |
116 |
+ done |
117 |
+ |
118 |
+ # install docs in correct directory |
119 |
+ sed -i "s#\${SHAREDIR}/doc/\${PROJECT_NAME}#\0-${PV}/html#" doc/*/CMakeLists.txt || die |
120 |
+ |
121 |
+ if [[ ${CHOST} == *-darwin* ]]; then |
122 |
+ # fix linking error on Darwin |
123 |
+ sed -i "s/+ get_config_var('LINKFORSHARED')//" \ |
124 |
+ cmake/FindPython.cmake || die |
125 |
+ # allow to find the plugins by default |
126 |
+ sed -i 's/".so,.dll"/".bundle,.so,.dll"/' \ |
127 |
+ src/core/wee-config.c || die |
128 |
+ fi |
129 |
+} |
130 |
+ |
131 |
+src_configure() { |
132 |
+ local mycmakeargs=( |
133 |
+ -DENABLE_NCURSES=ON |
134 |
+ -DENABLE_NLS=$(usex nls) |
135 |
+ -DENABLE_GNUTLS=$(usex ssl) |
136 |
+ -DENABLE_LARGEFILE=ON |
137 |
+ -DENABLE_ALIAS=$(usex alias) |
138 |
+ -DENABLE_ASPELL=$(usex spell) |
139 |
+ -DENABLE_BUFLIST=$(usex buflist) |
140 |
+ -DENABLE_CHARSET=$(usex charset) |
141 |
+ -DENABLE_EXEC=$(usex exec) |
142 |
+ -DENABLE_FSET=$(usex fset) |
143 |
+ -DENABLE_FIFO=$(usex fifo) |
144 |
+ -DENABLE_IRC=$(usex irc) |
145 |
+ -DENABLE_LOGGER=$(usex logger) |
146 |
+ -DENABLE_RELAY=$(usex relay) |
147 |
+ -DENABLE_SCRIPT=$(usex scripts) |
148 |
+ -DENABLE_SCRIPTS=$(usex scripts) |
149 |
+ -DENABLE_PERL=$(usex perl) |
150 |
+ -DENABLE_PHP=$(usex php) |
151 |
+ -DENABLE_PYTHON=$(usex python) |
152 |
+ -DENABLE_RUBY=$(usex ruby) |
153 |
+ -DENABLE_LUA=$(usex lua) |
154 |
+ -DENABLE_TCL=$(usex tcl) |
155 |
+ -DENABLE_GUILE=$(usex guile) |
156 |
+ -DENABLE_JAVASCRIPT=OFF |
157 |
+ -DENABLE_TRIGGER=$(usex trigger) |
158 |
+ -DENABLE_XFER=$(usex xfer) |
159 |
+ -DENABLE_DOC=$(usex doc) |
160 |
+ -DENABLE_TESTS=$(usex test) |
161 |
+ ) |
162 |
+ |
163 |
+ if use python; then |
164 |
+ python_export PYTHON_LIBPATH |
165 |
+ mycmakeargs+=( |
166 |
+ -DPYTHON_EXECUTABLE="${PYTHON}" |
167 |
+ -DPYTHON_LIBRARY="${PYTHON_LIBPATH}" |
168 |
+ ) |
169 |
+ fi |
170 |
+ |
171 |
+ cmake-utils_src_configure |
172 |
+} |