1 |
commit: ae16590192b5a1e0aef3d3ce93f6e03b80010b6b |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 21 07:17:22 2020 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 21 07:17:38 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae165901 |
7 |
|
8 |
net-irc/weechat: bump to 2.7.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
12 |
|
13 |
net-irc/weechat/Manifest | 1 + |
14 |
net-irc/weechat/weechat-2.7.1.ebuild | 156 +++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 157 insertions(+) |
16 |
|
17 |
diff --git a/net-irc/weechat/Manifest b/net-irc/weechat/Manifest |
18 |
index 2724ad8dc65..87090b126f4 100644 |
19 |
--- a/net-irc/weechat/Manifest |
20 |
+++ b/net-irc/weechat/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
+DIST weechat-2.7.1.tar.xz 2226768 BLAKE2B 0ce14646c8d383c3338a52bacbb9cac036c2611cc8aae2c790af73df5aab25e49f8bc2addcf4527884774925a9b222c15a7a696d93ad57197052a746a0da95f6 SHA512 eb0cc4c7e0f2cf18d522b49429fe2d77b1cee3225686d0bc09f80a69b17362af0923df4cd5f4859207d84acb762d4042cd5b57799705d0b7e4759eade6c660e0 |
23 |
DIST weechat-2.7.tar.xz 2226876 BLAKE2B accb97f018c5405850df5ba7d1d8ad0b23ccfd478cedf29ebbd1f468f364efcfce7a7a34ef557ce7f64c2157392c1b281f8f74e57782ed69b4e0ada9f1b67b37 SHA512 5377cf9c37520cb2b7d1ba43251df3f33d814783ea4bd20d28cb08a2106c8db0e44a392a61929987b807a7d5e69a3c0ed1f3fec122a014b7ea7068e159341075 |
24 |
|
25 |
diff --git a/net-irc/weechat/weechat-2.7.1.ebuild b/net-irc/weechat/weechat-2.7.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..37b7a1e4518 |
28 |
--- /dev/null |
29 |
+++ b/net-irc/weechat/weechat-2.7.1.ebuild |
30 |
@@ -0,0 +1,156 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python{3_6,3_7,3_8} ) |
37 |
+ |
38 |
+inherit cmake-utils python-single-r1 xdg-utils |
39 |
+ |
40 |
+if [[ ${PV} == "9999" ]] ; then |
41 |
+ inherit git-r3 |
42 |
+ EGIT_REPO_URI="https://github.com/weechat/weechat.git" |
43 |
+else |
44 |
+ SRC_URI="https://weechat.org/files/src/${P}.tar.xz" |
45 |
+ KEYWORDS="~amd64 ~arm ~ppc64 ~x86 ~x64-macos" |
46 |
+fi |
47 |
+ |
48 |
+DESCRIPTION="Portable and multi-interface IRC client" |
49 |
+HOMEPAGE="https://weechat.org/" |
50 |
+ |
51 |
+LICENSE="GPL-3" |
52 |
+SLOT="0" |
53 |
+ |
54 |
+NETWORKS="+irc" |
55 |
+PLUGINS="+alias +buflist +charset +exec +fifo +fset +logger +relay +scripts +spell +trigger +xfer" |
56 |
+# dev-lang/v8 was dropped from Gentoo so we can't enable javascript support |
57 |
+SCRIPT_LANGS="guile lua +perl php +python ruby tcl" |
58 |
+LANGS=" cs de es fr it ja pl ru" |
59 |
+IUSE="doc man nls +ssl test ${SCRIPT_LANGS} ${PLUGINS} ${INTERFACES} ${NETWORKS}" |
60 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
61 |
+ |
62 |
+RDEPEND=" |
63 |
+ dev-libs/libgcrypt:0= |
64 |
+ net-misc/curl[ssl] |
65 |
+ sys-libs/ncurses:0= |
66 |
+ sys-libs/zlib |
67 |
+ charset? ( virtual/libiconv ) |
68 |
+ guile? ( >=dev-scheme/guile-2.0 ) |
69 |
+ lua? ( dev-lang/lua:0[deprecated] ) |
70 |
+ nls? ( virtual/libintl ) |
71 |
+ perl? ( dev-lang/perl:= ) |
72 |
+ php? ( >=dev-lang/php-7.0:*[embed] ) |
73 |
+ python? ( ${PYTHON_DEPS} ) |
74 |
+ ruby? ( || ( dev-lang/ruby:2.6 dev-lang/ruby:2.5 dev-lang/ruby:2.4 ) ) |
75 |
+ ssl? ( net-libs/gnutls ) |
76 |
+ spell? ( app-text/aspell ) |
77 |
+ tcl? ( >=dev-lang/tcl-8.4.15:0= ) |
78 |
+" |
79 |
+DEPEND="${RDEPEND} |
80 |
+ test? ( dev-util/cpputest ) |
81 |
+" |
82 |
+ |
83 |
+BDEPEND=" |
84 |
+ virtual/pkgconfig |
85 |
+ doc? ( >=dev-ruby/asciidoctor-1.5.4 ) |
86 |
+ man? ( >=dev-ruby/asciidoctor-1.5.4 ) |
87 |
+ nls? ( >=sys-devel/gettext-0.15 ) |
88 |
+" |
89 |
+ |
90 |
+DOCS="AUTHORS.adoc ChangeLog.adoc Contributing.adoc ReleaseNotes.adoc README.adoc" |
91 |
+ |
92 |
+# tests need to be fixed to not use system plugins if weechat is already installed |
93 |
+RESTRICT="test" |
94 |
+ |
95 |
+pkg_setup() { |
96 |
+ use python && python-single-r1_pkg_setup |
97 |
+} |
98 |
+ |
99 |
+src_prepare() { |
100 |
+ cmake-utils_src_prepare |
101 |
+ |
102 |
+ # install only required translations |
103 |
+ local i |
104 |
+ for i in ${LANGS} ; do |
105 |
+ if ! has ${i} ${LINGUAS-${i}} ; then |
106 |
+ sed -i \ |
107 |
+ -e "/${i}.po/d" \ |
108 |
+ po/CMakeLists.txt || die |
109 |
+ fi |
110 |
+ done |
111 |
+ |
112 |
+ # install only required documentation ; en always |
113 |
+ for i in $(grep add_subdirectory doc/CMakeLists.txt \ |
114 |
+ | sed -e 's/.*add_subdirectory(\(..\)).*/\1/' -e '/en/d'); do |
115 |
+ if ! has ${i} ${LINGUAS-${i}} ; then |
116 |
+ sed -i \ |
117 |
+ -e '/add_subdirectory('${i}')/d' \ |
118 |
+ doc/CMakeLists.txt || die |
119 |
+ fi |
120 |
+ done |
121 |
+ |
122 |
+ # install docs in correct directory |
123 |
+ sed -i "s#\${SHAREDIR}/doc/\${PROJECT_NAME}#\0-${PV}/html#" doc/*/CMakeLists.txt || die |
124 |
+ |
125 |
+ if [[ ${CHOST} == *-darwin* ]]; then |
126 |
+ # fix linking error on Darwin |
127 |
+ sed -i "s/+ get_config_var('LINKFORSHARED')//" \ |
128 |
+ cmake/FindPython.cmake || die |
129 |
+ # allow to find the plugins by default |
130 |
+ sed -i 's/".so,.dll"/".bundle,.so,.dll"/' \ |
131 |
+ src/core/wee-config.c || die |
132 |
+ fi |
133 |
+} |
134 |
+ |
135 |
+src_configure() { |
136 |
+ local mycmakeargs=( |
137 |
+ -DLIBDIR=/usr/$(get_libdir) |
138 |
+ -DENABLE_JAVASCRIPT=OFF |
139 |
+ -DENABLE_LARGEFILE=ON |
140 |
+ -DENABLE_NCURSES=ON |
141 |
+ -DENABLE_ALIAS=$(usex alias) |
142 |
+ -DENABLE_BUFLIST=$(usex buflist) |
143 |
+ -DENABLE_CHARSET=$(usex charset) |
144 |
+ -DENABLE_DOC=$(usex doc) |
145 |
+ -DENABLE_EXEC=$(usex exec) |
146 |
+ -DENABLE_FIFO=$(usex fifo) |
147 |
+ -DENABLE_FSET=$(usex fset) |
148 |
+ -DENABLE_GNUTLS=$(usex ssl) |
149 |
+ -DENABLE_GUILE=$(usex guile) |
150 |
+ -DENABLE_IRC=$(usex irc) |
151 |
+ -DENABLE_LOGGER=$(usex logger) |
152 |
+ -DENABLE_LUA=$(usex lua) |
153 |
+ -DENABLE_MAN=$(usex man) |
154 |
+ -DENABLE_NLS=$(usex nls) |
155 |
+ -DENABLE_PERL=$(usex perl) |
156 |
+ -DENABLE_PHP=$(usex php) |
157 |
+ -DENABLE_PYTHON=$(usex python) |
158 |
+ -DENABLE_RELAY=$(usex relay) |
159 |
+ -DENABLE_RUBY=$(usex ruby) |
160 |
+ -DENABLE_SCRIPT=$(usex scripts) |
161 |
+ -DENABLE_SCRIPTS=$(usex scripts) |
162 |
+ -DENABLE_SPELL=$(usex spell) |
163 |
+ -DENABLE_TCL=$(usex tcl) |
164 |
+ -DENABLE_TESTS=$(usex test) |
165 |
+ -DENABLE_TRIGGER=$(usex trigger) |
166 |
+ -DENABLE_XFER=$(usex xfer) |
167 |
+ ) |
168 |
+ |
169 |
+ if use python; then |
170 |
+ python_is_python3 || mycmakeargs+=( -DENABLE_PYTHON2=ON ) |
171 |
+ fi |
172 |
+ |
173 |
+ cmake-utils_src_configure |
174 |
+} |
175 |
+ |
176 |
+pkg_postinst() { |
177 |
+ xdg_desktop_database_update |
178 |
+ xdg_icon_cache_update |
179 |
+ xdg_mimeinfo_database_update |
180 |
+} |
181 |
+ |
182 |
+pkg_postrm() { |
183 |
+ xdg_desktop_database_update |
184 |
+ xdg_icon_cache_update |
185 |
+ xdg_mimeinfo_database_update |
186 |
+} |