]>
Commit | Line | Data |
---|---|---|
1466a565 | 1 | # |
c44b79dc | 2 | # Copyright (C) 2013-2022 Sébastien Helleu <flashcode@flashtux.org> |
1466a565 SH |
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 | |
4712d0bb | 17 | # along with WeeChat. If not, see <https://www.gnu.org/licenses/>. |
1466a565 SH |
18 | # |
19 | ||
20 | # | |
21 | # This file is used to build Cygwin packages using the "cygport" command. | |
22 | # | |
58f4c37a SH |
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"). | |
1466a565 | 25 | # |
fa9c1766 | 26 | # Instructions: |
1466a565 | 27 | # |
fa9c1766 | 28 | # 1. install asciidoctor (to build man page/docs): |
1466a565 | 29 | # |
fa9c1766 SH |
30 | # $ gem install -n /usr/local/bin asciidoctor |
31 | # | |
32 | # 2. execute these commands inside your build directory, after running cmake | |
58f4c37a | 33 | # or configure script (replace X.Y by WeeChat version): |
fa9c1766 | 34 | # |
58f4c37a SH |
35 | # $ cygport weechat-X.Y-1.cygport fetch |
36 | # $ cygport weechat-X.Y-1.cygport almostall | |
fa9c1766 | 37 | # |
58f4c37a | 38 | # Packages are built in directory: ./weechat-X.Y-1.<arch>/dist/weechat/ |
1466a565 SH |
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 | ||
0cd2aff7 SH |
50 | HOMEPAGE="https://weechat.org/" |
51 | SRC_URI="https://weechat.org/files/src/weechat-${VERSION}.tar.bz2" | |
1466a565 SH |
52 | |
53 | # Build dependencies only | |
6dad386c | 54 | DEPEND="cmake gettext gettext-devel libgnutls-devel libaspell-devel \ |
d61dfac5 | 55 | libcurl-devel libgcrypt-devel libncurses-devel lua perl pkg-config \ |
498194f6 SH |
56 | python3-devel ruby tcl-devel libguile2.2-devel php-devel libzstd-devel \ |
57 | zlib-devel" | |
1466a565 SH |
58 | |
59 | # | |
60 | # CMake compilation of WeeChat: | |
61 | # 1. set prefix to /usr | |
fa9c1766 | 62 | # 2. enable build of man pages and documentation |
1466a565 | 63 | # |
340d6646 | 64 | CYGCMAKE_ARGS="-DCMAKE_INSTALL_PREFIX=/usr -DENABLE_MAN=ON -DENABLE_DOC=ON" |
1466a565 | 65 | |
7352ddfc SH |
66 | PKG_IGNORE=" |
67 | etc/postinstall/weechat.sh | |
68 | usr/share/applications/weechat.desktop | |
69 | " | |
5e3b6d50 | 70 | |
1466a565 | 71 | # |
bbfdec06 | 72 | # Build 10 Cygwin packages: |
1466a565 SH |
73 | # weechat |
74 | # weechat-python | |
75 | # weechat-perl | |
76 | # weechat-ruby | |
77 | # weechat-lua | |
78 | # weechat-tcl | |
a0e45f67 | 79 | # weechat-guile |
bbfdec06 | 80 | # weechat-php |
1466a565 | 81 | # weechat-devel |
fa9c1766 | 82 | # weechat-doc |
1466a565 SH |
83 | # |
84 | PKG_NAMES="${PN} ${PN}-python ${PN}-perl ${PN}-ruby ${PN}-lua ${PN}-tcl \ | |
bbfdec06 SH |
85 | ${PN}-guile ${PN}-php ${PN}-devel ${PN}-doc" |
86 | PKG_HINTS="setup python perl ruby lua tcl guile php devel doc" | |
1466a565 SH |
87 | |
88 | # | |
89 | # Package "weechat": binary, all plugins except scripting languages, | |
fa9c1766 | 90 | # translations, icon, man pages |
1466a565 | 91 | # |
3ee87bcf | 92 | weechat_SUMMARY="Fast, light and extensible chat client" |
1466a565 | 93 | weechat_DESCRIPTION="WeeChat (Wee Enhanced Environment for Chat) is a fast, \ |
3ee87bcf SH |
94 | light and extensible chat client. Everything can be done with a keyboard, \ |
95 | it is customizable and extensible with plugins/scripts." | |
1466a565 SH |
96 | weechat_CONTENTS=" |
97 | usr/bin/ | |
98 | usr/lib/weechat/plugins/alias.dll | |
edfeb60e | 99 | usr/lib/weechat/plugins/buflist.dll |
1466a565 | 100 | usr/lib/weechat/plugins/charset.dll |
97254780 | 101 | usr/lib/weechat/plugins/exec.dll |
1466a565 | 102 | usr/lib/weechat/plugins/fifo.dll |
dc5da2ae | 103 | usr/lib/weechat/plugins/fset.dll |
1466a565 SH |
104 | usr/lib/weechat/plugins/irc.dll |
105 | usr/lib/weechat/plugins/logger.dll | |
106 | usr/lib/weechat/plugins/relay.dll | |
1466a565 | 107 | usr/lib/weechat/plugins/script.dll |
57aa9e06 | 108 | usr/lib/weechat/plugins/spell.dll |
7aba5f71 | 109 | usr/lib/weechat/plugins/trigger.dll |
5b7f5509 | 110 | usr/lib/weechat/plugins/typing.dll |
1466a565 | 111 | usr/lib/weechat/plugins/xfer.dll |
1466a565 | 112 | usr/share/icons/ |
9c227de6 | 113 | usr/share/locale/ |
fa9c1766 | 114 | usr/share/man/ |
b7bdbbdc SH |
115 | usr/share/doc/weechat/AUTHORS.adoc |
116 | usr/share/doc/weechat/ChangeLog.adoc | |
117 | usr/share/doc/weechat/Contributing.adoc | |
1466a565 | 118 | usr/share/doc/weechat/COPYING |
b7bdbbdc SH |
119 | usr/share/doc/weechat/README.adoc |
120 | usr/share/doc/weechat/ReleaseNotes.adoc | |
1466a565 | 121 | " |
1466a565 SH |
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" | |
958cf969 | 129 | weechat_python_REQUIRES="weechat" |
1466a565 SH |
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" | |
958cf969 | 137 | weechat_perl_REQUIRES="weechat" |
1466a565 SH |
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" | |
958cf969 | 145 | weechat_ruby_REQUIRES="weechat" |
1466a565 SH |
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" | |
958cf969 | 153 | weechat_lua_REQUIRES="weechat" |
1466a565 SH |
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" | |
958cf969 | 161 | weechat_tcl_REQUIRES="weechat" |
1466a565 | 162 | |
a0e45f67 SH |
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 | ||
bbfdec06 SH |
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 | ||
1466a565 SH |
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/" | |
fa9c1766 SH |
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" |