]> jfr.im git - irc/weechat/weechat.git/blob - weechat.cygport.in
core: set terminal title using curses emulation of termcap (WIP)
[irc/weechat/weechat.git] / weechat.cygport.in
1 #
2 # Copyright (C) 2013-2023 Sébastien Helleu <flashcode@flashtux.org>
3 #
4 # This file is part of WeeChat, the extensible chat client.
5 #
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.
10 #
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.
15 #
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/>.
18 #
19
20 #
21 # This file is used to build Cygwin packages using the "cygport" command.
22 #
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").
25 #
26 # Instructions:
27 #
28 # 1. install asciidoctor (to build man page/docs):
29 #
30 # $ gem install -n /usr/local/bin asciidoctor
31 #
32 # 2. execute these commands inside your build directory, after running cmake
33 # or configure script (replace X.Y by WeeChat version):
34 #
35 # $ cygport weechat-X.Y-1.cygport fetch
36 # $ cygport weechat-X.Y-1.cygport almostall
37 #
38 # Packages are built in directory: ./weechat-X.Y-1.<arch>/dist/weechat/
39 #
40
41 inherit cmake
42
43 NAME="weechat"
44 VERSION=@VERSION@
45 RELEASE=1
46
47 # Default category (some packages have extra category)
48 CATEGORY="Net"
49
50 HOMEPAGE="https://weechat.org/"
51 SRC_URI="https://weechat.org/files/src/weechat-${VERSION}.tar.bz2"
52
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 \
57 zlib-devel"
58
59 #
60 # CMake compilation of WeeChat:
61 # 1. set prefix to /usr
62 # 2. enable build of man pages and documentation
63 #
64 CYGCMAKE_ARGS="-DCMAKE_INSTALL_PREFIX=/usr -DENABLE_MAN=ON -DENABLE_DOC=ON"
65
66 PKG_IGNORE="
67 etc/postinstall/weechat.sh
68 usr/share/applications/weechat.desktop
69 "
70
71 #
72 # Build 10 Cygwin packages:
73 # weechat
74 # weechat-python
75 # weechat-perl
76 # weechat-ruby
77 # weechat-lua
78 # weechat-tcl
79 # weechat-guile
80 # weechat-php
81 # weechat-devel
82 # weechat-doc
83 #
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"
87
88 #
89 # Package "weechat": binary, all plugins except scripting languages,
90 # translations, icon, man pages
91 #
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."
96 weechat_CONTENTS="
97 usr/bin/
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
112 usr/share/icons/
113 usr/share/locale/
114 usr/share/man/
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
121 "
122
123 #
124 # Package "weechat-python": python scripting plugin
125 #
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"
130
131 #
132 # Package "weechat-perl": perl scripting plugin
133 #
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"
138
139 #
140 # Package "weechat-ruby": ruby scripting plugin
141 #
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"
146
147 #
148 # Package "weechat-lua": lua scripting plugin
149 #
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"
154
155 #
156 # Package "weechat-tcl": tcl scripting plugin
157 #
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"
162
163 #
164 # Package "weechat-guile": guile scripting plugin
165 #
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"
170
171 #
172 # Package "weechat-php": php scripting plugin
173 #
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"
178
179 #
180 # Package "weechat-devel": header to build plugins
181 #
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/"
185
186 #
187 # Package "weechat-doc": documentation
188 #
189 weechat_doc_CATEGORY="Net Doc"
190 weechat_doc_SUMMARY="Documentation for WeeChat"
191 weechat_doc_CONTENTS="usr/share/doc/weechat/*.html"