aboutsummaryrefslogtreecommitdiffstats
path: root/weechat.cygport.in
blob: baf5da6c3a28e1a389454d47dcf8623e0ec8d629 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
#
# Copyright (C) 2013-2019 Sébastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat.  If not, see <https://www.gnu.org/licenses/>.
#

#
# This file is used to build Cygwin packages using the "cygport" command.
#
# It must be used *ONLY* for a stable release (version "X.Y" or "X.Y.Z"),
# not for a development version (version "X.Y-dev" or "X.Y-rcN").
#
# Instructions:
#
#   1. install asciidoctor (to build man page/docs):
#
#      $ gem install -n /usr/local/bin asciidoctor
#
#   2. execute these commands inside your build directory, after running cmake
#      or configure script (replace X.Y by WeeChat version):
#
#      $ cygport weechat-X.Y-1.cygport fetch
#      $ cygport weechat-X.Y-1.cygport almostall
#
#      Packages are built in directory: ./weechat-X.Y-1.<arch>/dist/weechat/
#

inherit cmake

NAME="weechat"
VERSION=@VERSION@
RELEASE=1

# Default category (some packages have extra category)
CATEGORY="Net"

HOMEPAGE="https://weechat.org/"
SRC_URI="https://weechat.org/files/src/weechat-${VERSION}.tar.bz2"

# Build dependencies only
DEPEND="cmake gettext gettext-devel libgnutls-devel libaspell-devel \
libcurl-devel libgcrypt-devel libncurses-devel lua perl pkg-config \
python2-devel ruby tcl-devel libguile2.0-devel php-devel zlib-devel"

#
# CMake compilation of WeeChat:
#   1. set prefix to /usr
#   2. enable build of man pages and documentation
#   3. disable javascript plugin because libv8 is not available in Cygwin
#
CYGCMAKE_ARGS="-DCMAKE_INSTALL_PREFIX=/usr -DENABLE_MAN=ON -DENABLE_DOC=ON \
-DENABLE_JAVASCRIPT=OFF"

PKG_IGNORE="etc/postinstall/weechat.sh"

#
# Build 10 Cygwin packages:
#   weechat
#   weechat-python
#   weechat-perl
#   weechat-ruby
#   weechat-lua
#   weechat-tcl
#   weechat-guile
#   weechat-php
#   weechat-devel
#   weechat-doc
#
PKG_NAMES="${PN} ${PN}-python ${PN}-perl ${PN}-ruby ${PN}-lua ${PN}-tcl \
${PN}-guile ${PN}-php ${PN}-devel ${PN}-doc"
PKG_HINTS="setup python perl ruby lua tcl guile php devel doc"

#
# Package "weechat": binary, all plugins except scripting languages,
# translations, icon, man pages
#
weechat_SUMMARY="Fast, light and extensible chat client"
weechat_DESCRIPTION="WeeChat (Wee Enhanced Environment for Chat) is a fast, \
light and extensible chat client. Everything can be done with a keyboard, \
it is customizable and extensible with plugins/scripts."
weechat_CONTENTS="
    usr/bin/
    usr/lib/weechat/plugins/alias.dll
    usr/lib/weechat/plugins/buflist.dll
    usr/lib/weechat/plugins/charset.dll
    usr/lib/weechat/plugins/exec.dll
    usr/lib/weechat/plugins/fifo.dll
    usr/lib/weechat/plugins/fset.dll
    usr/lib/weechat/plugins/irc.dll
    usr/lib/weechat/plugins/logger.dll
    usr/lib/weechat/plugins/relay.dll
    usr/lib/weechat/plugins/script.dll
    usr/lib/weechat/plugins/spell.dll
    usr/lib/weechat/plugins/trigger.dll
    usr/lib/weechat/plugins/xfer.dll
    usr/share/locale/
    usr/share/icons/
    usr/share/man/
    usr/share/doc/weechat/AUTHORS.adoc
    usr/share/doc/weechat/ChangeLog.adoc
    usr/share/doc/weechat/Contributing.adoc
    usr/share/doc/weechat/COPYING
    usr/share/doc/weechat/README.adoc
    usr/share/doc/weechat/ReleaseNotes.adoc
"

#
# Package "weechat-python": python scripting plugin
#
weechat_python_SUMMARY="Python scripting plugin for WeeChat"
weechat_python_DESCRIPTION="Python scripting plugin for WeeChat"
weechat_python_CONTENTS="usr/lib/weechat/plugins/python.dll"
weechat_python_REQUIRES="weechat"

#
# Package "weechat-perl": perl scripting plugin
#
weechat_perl_SUMMARY="Perl scripting plugin for WeeChat"
weechat_perl_DESCRIPTION="Perl scripting plugin for WeeChat"
weechat_perl_CONTENTS="usr/lib/weechat/plugins/perl.dll"
weechat_perl_REQUIRES="weechat"

#
# Package "weechat-ruby": ruby scripting plugin
#
weechat_ruby_SUMMARY="Ruby scripting plugin for WeeChat"
weechat_ruby_DESCRIPTION="Ruby scripting plugin for WeeChat"
weechat_ruby_CONTENTS="usr/lib/weechat/plugins/ruby.dll"
weechat_ruby_REQUIRES="weechat"

#
# Package "weechat-lua": lua scripting plugin
#
weechat_lua_SUMMARY="Lua scripting plugin for WeeChat"
weechat_lua_DESCRIPTION="Lua scripting plugin for WeeChat"
weechat_lua_CONTENTS="usr/lib/weechat/plugins/lua.dll"
weechat_lua_REQUIRES="weechat"

#
# Package "weechat-tcl": tcl scripting plugin
#
weechat_tcl_SUMMARY="Tcl scripting plugin for WeeChat"
weechat_tcl_DESCRIPTION="Tcl scripting plugin for WeeChat"
weechat_tcl_CONTENTS="usr/lib/weechat/plugins/tcl.dll"
weechat_tcl_REQUIRES="weechat"

#
# Package "weechat-guile": guile scripting plugin
#
weechat_guile_SUMMARY="Guile scripting plugin for WeeChat"
weechat_guile_DESCRIPTION="Guile scripting plugin for WeeChat"
weechat_guile_CONTENTS="usr/lib/weechat/plugins/guile.dll"
weechat_guile_REQUIRES="weechat"

#
# Package "weechat-php": php scripting plugin
#
weechat_php_SUMMARY="PHP scripting plugin for WeeChat"
weechat_php_DESCRIPTION="PHP scripting plugin for WeeChat"
weechat_php_CONTENTS="usr/lib/weechat/plugins/php.dll"
weechat_php_REQUIRES="weechat"

#
# Package "weechat-devel": header to build plugins
#
weechat_devel_CATEGORY="Net Devel"
weechat_devel_SUMMARY="Development files to build WeeChat plugins"
weechat_devel_CONTENTS="usr/include/ usr/lib/pkgconfig/"

#
# Package "weechat-doc": documentation
#
weechat_doc_CATEGORY="Net Doc"
weechat_doc_SUMMARY="Documentation for WeeChat"
weechat_doc_CONTENTS="usr/share/doc/weechat/*.html"