2013-10-12 19:05:27 +02:00
|
|
|
#
|
2016-01-01 11:09:53 +01:00
|
|
|
# Copyright (C) 2013-2016 Sébastien Helleu <flashcode@flashtux.org>
|
2013-10-12 19:05:27 +02:00
|
|
|
#
|
|
|
|
# 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 <http://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.Z"), not for
|
|
|
|
# a development version (version "X.Y.Z-dev" or "X.Y.Z-rcN").
|
|
|
|
#
|
|
|
|
# Instructions: execute these commands inside your build directory,
|
|
|
|
# after running cmake or configure script (replace X.Y.Z by WeeChat version):
|
|
|
|
#
|
|
|
|
# $ cygport weechat-X.Y.Z-1.cygport fetch
|
|
|
|
# $ cygport weechat-X.Y.Z-1.cygport almostall
|
|
|
|
#
|
2014-08-15 18:48:40 +02:00
|
|
|
# ==> packages are built in directory:
|
|
|
|
# ./weechat-X.Y.Z-1.<arch>/dist/weechat/
|
2013-10-12 19:05:27 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
inherit cmake
|
|
|
|
|
|
|
|
NAME="weechat"
|
|
|
|
VERSION=@VERSION@
|
|
|
|
RELEASE=1
|
|
|
|
|
|
|
|
# Default category (some packages have extra category)
|
|
|
|
CATEGORY="Net"
|
|
|
|
|
2014-12-13 09:16:09 +01:00
|
|
|
HOMEPAGE="https://weechat.org/"
|
|
|
|
SRC_URI="https://weechat.org/files/src/weechat-${VERSION}.tar.bz2"
|
2013-10-12 19:05:27 +02:00
|
|
|
|
|
|
|
# Build dependencies only
|
2016-08-22 21:49:35 +02:00
|
|
|
DEPEND="cmake gettext gettext-devel libgnutls-devel libaspell-devel \
|
|
|
|
libcurl-devel libgcrypt-devel libncurses-devel lua perl pkg-config python \
|
|
|
|
ruby tcl-devel zlib-devel"
|
2013-10-12 19:05:27 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# CMake compilation of WeeChat:
|
|
|
|
# 1. set prefix to /usr
|
2016-08-22 21:49:35 +02:00
|
|
|
# 2. disable Guile plugin because WeeChat requires Guile >= 2.0,
|
2013-10-12 19:05:27 +02:00
|
|
|
# which is not yet available in Cygwin
|
2016-08-22 21:49:35 +02:00
|
|
|
# 3. disable Javascript plugin because libv8 is not available in Cygwin
|
2013-10-12 19:05:27 +02:00
|
|
|
#
|
2016-08-22 21:49:35 +02:00
|
|
|
CYGCMAKE_ARGS="-DCMAKE_INSTALL_PREFIX=/usr -DENABLE_GUILE=OFF \
|
|
|
|
-DENABLE_JAVASCRIPT=OFF"
|
2013-10-12 19:05:27 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Build 8 Cygwin packages:
|
|
|
|
# weechat
|
|
|
|
# weechat-python
|
|
|
|
# weechat-perl
|
|
|
|
# weechat-ruby
|
|
|
|
# weechat-lua
|
|
|
|
# weechat-tcl
|
|
|
|
# weechat-devel
|
|
|
|
#
|
|
|
|
PKG_NAMES="${PN} ${PN}-python ${PN}-perl ${PN}-ruby ${PN}-lua ${PN}-tcl \
|
2016-08-22 21:49:35 +02:00
|
|
|
${PN}-devel"
|
|
|
|
PKG_HINTS="setup python perl ruby lua tcl devel"
|
2013-10-12 19:05:27 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Package "weechat": binary, all plugins except scripting languages,
|
2016-08-22 21:49:35 +02:00
|
|
|
# translations, icon
|
2013-10-12 19:05:27 +02:00
|
|
|
#
|
|
|
|
weechat_SUMMARY="Fast, light and extensible chat client (IRC/XMPP)"
|
|
|
|
weechat_DESCRIPTION="WeeChat (Wee Enhanced Environment for Chat) is a fast, \
|
|
|
|
light and extensible chat client (IRC/XMPP). Everything can be done with a \
|
|
|
|
keyboard, it is customizable and extensible with scripts."
|
|
|
|
weechat_CONTENTS="
|
|
|
|
usr/bin/
|
|
|
|
usr/lib/weechat/plugins/alias.dll
|
|
|
|
usr/lib/weechat/plugins/aspell.dll
|
|
|
|
usr/lib/weechat/plugins/charset.dll
|
2014-03-10 14:26:23 +01:00
|
|
|
usr/lib/weechat/plugins/exec.dll
|
2013-10-12 19:05:27 +02:00
|
|
|
usr/lib/weechat/plugins/fifo.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
|
2014-02-15 12:48:49 +01:00
|
|
|
usr/lib/weechat/plugins/trigger.dll
|
2013-10-12 19:05:27 +02:00
|
|
|
usr/lib/weechat/plugins/xfer.dll
|
|
|
|
usr/share/locale/
|
|
|
|
usr/share/icons/
|
2016-05-15 08:52:19 +02:00
|
|
|
usr/share/doc/weechat/AUTHORS.adoc
|
|
|
|
usr/share/doc/weechat/ChangeLog.adoc
|
|
|
|
usr/share/doc/weechat/Contributing.adoc
|
2013-10-12 19:05:27 +02:00
|
|
|
usr/share/doc/weechat/COPYING
|
2016-05-15 08:52:19 +02:00
|
|
|
usr/share/doc/weechat/README.adoc
|
|
|
|
usr/share/doc/weechat/ReleaseNotes.adoc
|
2013-10-12 19:05:27 +02:00
|
|
|
"
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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"
|
2013-10-19 12:23:24 +02:00
|
|
|
weechat_python_REQUIRES="weechat"
|
2013-10-12 19:05:27 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# 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"
|
2013-10-19 12:23:24 +02:00
|
|
|
weechat_perl_REQUIRES="weechat"
|
2013-10-12 19:05:27 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# 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"
|
2013-10-19 12:23:24 +02:00
|
|
|
weechat_ruby_REQUIRES="weechat"
|
2013-10-12 19:05:27 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# 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"
|
2013-10-19 12:23:24 +02:00
|
|
|
weechat_lua_REQUIRES="weechat"
|
2013-10-12 19:05:27 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# 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"
|
2013-10-19 12:23:24 +02:00
|
|
|
weechat_tcl_REQUIRES="weechat"
|
2013-10-12 19:05:27 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# 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/"
|