]> jfr.im git - irc/weechat/weechat.git/blame - weechat.cygport.in
Version 3.7.1
[irc/weechat/weechat.git] / weechat.cygport.in
CommitLineData
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
41inherit cmake
42
43NAME="weechat"
44VERSION=@VERSION@
45RELEASE=1
46
47# Default category (some packages have extra category)
48CATEGORY="Net"
49
0cd2aff7
SH
50HOMEPAGE="https://weechat.org/"
51SRC_URI="https://weechat.org/files/src/weechat-${VERSION}.tar.bz2"
1466a565
SH
52
53# Build dependencies only
6dad386c 54DEPEND="cmake gettext gettext-devel libgnutls-devel libaspell-devel \
d61dfac5 55libcurl-devel libgcrypt-devel libncurses-devel lua perl pkg-config \
498194f6
SH
56python3-devel ruby tcl-devel libguile2.2-devel php-devel libzstd-devel \
57zlib-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 64CYGCMAKE_ARGS="-DCMAKE_INSTALL_PREFIX=/usr -DENABLE_MAN=ON -DENABLE_DOC=ON"
1466a565 65
7352ddfc
SH
66PKG_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#
84PKG_NAMES="${PN} ${PN}-python ${PN}-perl ${PN}-ruby ${PN}-lua ${PN}-tcl \
bbfdec06
SH
85${PN}-guile ${PN}-php ${PN}-devel ${PN}-doc"
86PKG_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 92weechat_SUMMARY="Fast, light and extensible chat client"
1466a565 93weechat_DESCRIPTION="WeeChat (Wee Enhanced Environment for Chat) is a fast, \
3ee87bcf
SH
94light and extensible chat client. Everything can be done with a keyboard, \
95it is customizable and extensible with plugins/scripts."
1466a565
SH
96weechat_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#
126weechat_python_SUMMARY="Python scripting plugin for WeeChat"
127weechat_python_DESCRIPTION="Python scripting plugin for WeeChat"
128weechat_python_CONTENTS="usr/lib/weechat/plugins/python.dll"
958cf969 129weechat_python_REQUIRES="weechat"
1466a565
SH
130
131#
132# Package "weechat-perl": perl scripting plugin
133#
134weechat_perl_SUMMARY="Perl scripting plugin for WeeChat"
135weechat_perl_DESCRIPTION="Perl scripting plugin for WeeChat"
136weechat_perl_CONTENTS="usr/lib/weechat/plugins/perl.dll"
958cf969 137weechat_perl_REQUIRES="weechat"
1466a565
SH
138
139#
140# Package "weechat-ruby": ruby scripting plugin
141#
142weechat_ruby_SUMMARY="Ruby scripting plugin for WeeChat"
143weechat_ruby_DESCRIPTION="Ruby scripting plugin for WeeChat"
144weechat_ruby_CONTENTS="usr/lib/weechat/plugins/ruby.dll"
958cf969 145weechat_ruby_REQUIRES="weechat"
1466a565
SH
146
147#
148# Package "weechat-lua": lua scripting plugin
149#
150weechat_lua_SUMMARY="Lua scripting plugin for WeeChat"
151weechat_lua_DESCRIPTION="Lua scripting plugin for WeeChat"
152weechat_lua_CONTENTS="usr/lib/weechat/plugins/lua.dll"
958cf969 153weechat_lua_REQUIRES="weechat"
1466a565
SH
154
155#
156# Package "weechat-tcl": tcl scripting plugin
157#
158weechat_tcl_SUMMARY="Tcl scripting plugin for WeeChat"
159weechat_tcl_DESCRIPTION="Tcl scripting plugin for WeeChat"
160weechat_tcl_CONTENTS="usr/lib/weechat/plugins/tcl.dll"
958cf969 161weechat_tcl_REQUIRES="weechat"
1466a565 162
a0e45f67
SH
163#
164# Package "weechat-guile": guile scripting plugin
165#
166weechat_guile_SUMMARY="Guile scripting plugin for WeeChat"
167weechat_guile_DESCRIPTION="Guile scripting plugin for WeeChat"
168weechat_guile_CONTENTS="usr/lib/weechat/plugins/guile.dll"
169weechat_guile_REQUIRES="weechat"
170
bbfdec06
SH
171#
172# Package "weechat-php": php scripting plugin
173#
174weechat_php_SUMMARY="PHP scripting plugin for WeeChat"
175weechat_php_DESCRIPTION="PHP scripting plugin for WeeChat"
176weechat_php_CONTENTS="usr/lib/weechat/plugins/php.dll"
177weechat_php_REQUIRES="weechat"
178
1466a565
SH
179#
180# Package "weechat-devel": header to build plugins
181#
182weechat_devel_CATEGORY="Net Devel"
183weechat_devel_SUMMARY="Development files to build WeeChat plugins"
184weechat_devel_CONTENTS="usr/include/ usr/lib/pkgconfig/"
fa9c1766
SH
185
186#
187# Package "weechat-doc": documentation
188#
189weechat_doc_CATEGORY="Net Doc"
190weechat_doc_SUMMARY="Documentation for WeeChat"
191weechat_doc_CONTENTS="usr/share/doc/weechat/*.html"