2 # Copyright (C) 2013-2023 Sébastien Helleu <flashcode@flashtux.org>
4 # This file is part of WeeChat, the extensible chat client.
6 # WeeChat is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
11 # WeeChat is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
21 # This file is used to build Cygwin packages using the "cygport" command.
23 # It must be used *ONLY* for a stable release (version "X.Y" or "X.Y.Z"),
24 # not for a development version (version "X.Y-dev" or "X.Y-rcN").
28 # 1. install asciidoctor (to build man page/docs):
30 # $ gem install -n /usr/local/bin asciidoctor
32 # 2. execute these commands inside your build directory, after running cmake
33 # or configure script (replace X.Y by WeeChat version):
35 # $ cygport weechat-X.Y-1.cygport fetch
36 # $ cygport weechat-X.Y-1.cygport almostall
38 # Packages are built in directory: ./weechat-X.Y-1.<arch>/dist/weechat/
47 # Default category (some packages have extra category)
50 HOMEPAGE="https://weechat.org/"
51 SRC_URI="https://weechat.org/files/src/weechat-${VERSION}.tar.bz2"
53 # Build dependencies only
54 DEPEND="cmake gettext gettext-devel libgnutls-devel libaspell-devel \
55 libcurl-devel libgcrypt-devel libncurses-devel lua perl pkg-config \
56 python3-devel ruby tcl-devel libguile2.2-devel php-devel libzstd-devel \
60 # CMake compilation of WeeChat:
61 # 1. set prefix to /usr
62 # 2. enable build of man pages and documentation
64 CYGCMAKE_ARGS="-DCMAKE_INSTALL_PREFIX=/usr -DENABLE_MAN=ON -DENABLE_DOC=ON"
67 etc/postinstall/weechat.sh
68 usr/share/applications/weechat.desktop
72 # Build 10 Cygwin packages:
84 PKG_NAMES="${PN} ${PN}-python ${PN}-perl ${PN}-ruby ${PN}-lua ${PN}-tcl \
85 ${PN}-guile ${PN}-php ${PN}-devel ${PN}-doc"
86 PKG_HINTS="setup python perl ruby lua tcl guile php devel doc"
89 # Package "weechat": binary, all plugins except scripting languages,
90 # translations, icon, man pages
92 weechat_SUMMARY="Fast, light and extensible chat client"
93 weechat_DESCRIPTION="WeeChat (Wee Enhanced Environment for Chat) is a fast, \
94 light and extensible chat client. Everything can be done with a keyboard, \
95 it is customizable and extensible with plugins/scripts."
98 usr/lib/weechat/plugins/alias.dll
99 usr/lib/weechat/plugins/buflist.dll
100 usr/lib/weechat/plugins/charset.dll
101 usr/lib/weechat/plugins/exec.dll
102 usr/lib/weechat/plugins/fifo.dll
103 usr/lib/weechat/plugins/fset.dll
104 usr/lib/weechat/plugins/irc.dll
105 usr/lib/weechat/plugins/logger.dll
106 usr/lib/weechat/plugins/relay.dll
107 usr/lib/weechat/plugins/script.dll
108 usr/lib/weechat/plugins/spell.dll
109 usr/lib/weechat/plugins/trigger.dll
110 usr/lib/weechat/plugins/typing.dll
111 usr/lib/weechat/plugins/xfer.dll
115 usr/share/doc/weechat/AUTHORS.adoc
116 usr/share/doc/weechat/ChangeLog.adoc
117 usr/share/doc/weechat/Contributing.adoc
118 usr/share/doc/weechat/COPYING
119 usr/share/doc/weechat/README.adoc
120 usr/share/doc/weechat/ReleaseNotes.adoc
124 # Package "weechat-python": python scripting plugin
126 weechat_python_SUMMARY="Python scripting plugin for WeeChat"
127 weechat_python_DESCRIPTION="Python scripting plugin for WeeChat"
128 weechat_python_CONTENTS="usr/lib/weechat/plugins/python.dll"
129 weechat_python_REQUIRES="weechat"
132 # Package "weechat-perl": perl scripting plugin
134 weechat_perl_SUMMARY="Perl scripting plugin for WeeChat"
135 weechat_perl_DESCRIPTION="Perl scripting plugin for WeeChat"
136 weechat_perl_CONTENTS="usr/lib/weechat/plugins/perl.dll"
137 weechat_perl_REQUIRES="weechat"
140 # Package "weechat-ruby": ruby scripting plugin
142 weechat_ruby_SUMMARY="Ruby scripting plugin for WeeChat"
143 weechat_ruby_DESCRIPTION="Ruby scripting plugin for WeeChat"
144 weechat_ruby_CONTENTS="usr/lib/weechat/plugins/ruby.dll"
145 weechat_ruby_REQUIRES="weechat"
148 # Package "weechat-lua": lua scripting plugin
150 weechat_lua_SUMMARY="Lua scripting plugin for WeeChat"
151 weechat_lua_DESCRIPTION="Lua scripting plugin for WeeChat"
152 weechat_lua_CONTENTS="usr/lib/weechat/plugins/lua.dll"
153 weechat_lua_REQUIRES="weechat"
156 # Package "weechat-tcl": tcl scripting plugin
158 weechat_tcl_SUMMARY="Tcl scripting plugin for WeeChat"
159 weechat_tcl_DESCRIPTION="Tcl scripting plugin for WeeChat"
160 weechat_tcl_CONTENTS="usr/lib/weechat/plugins/tcl.dll"
161 weechat_tcl_REQUIRES="weechat"
164 # Package "weechat-guile": guile scripting plugin
166 weechat_guile_SUMMARY="Guile scripting plugin for WeeChat"
167 weechat_guile_DESCRIPTION="Guile scripting plugin for WeeChat"
168 weechat_guile_CONTENTS="usr/lib/weechat/plugins/guile.dll"
169 weechat_guile_REQUIRES="weechat"
172 # Package "weechat-php": php scripting plugin
174 weechat_php_SUMMARY="PHP scripting plugin for WeeChat"
175 weechat_php_DESCRIPTION="PHP scripting plugin for WeeChat"
176 weechat_php_CONTENTS="usr/lib/weechat/plugins/php.dll"
177 weechat_php_REQUIRES="weechat"
180 # Package "weechat-devel": header to build plugins
182 weechat_devel_CATEGORY="Net Devel"
183 weechat_devel_SUMMARY="Development files to build WeeChat plugins"
184 weechat_devel_CONTENTS="usr/include/ usr/lib/pkgconfig/"
187 # Package "weechat-doc": documentation
189 weechat_doc_CATEGORY="Net Doc"
190 weechat_doc_SUMMARY="Documentation for WeeChat"
191 weechat_doc_CONTENTS="usr/share/doc/weechat/*.html"