70 Commits

Author SHA1 Message Date
Sébastien Helleu
db9a8e7bc4 tests: add unit tests using CppUTest
The tests can be run only via CMake:

  1. build with tests: cmake .. -DENABLE_TESTS=ON
  2. make
  3. ctest  (or ctest -V for verbose output)
2014-07-20 12:13:25 +02:00
Sébastien Helleu
7618fdd240 core: use lower case for CMake keywords 2014-04-12 18:00:27 +02:00
Sebastien Helleu
7f54a1adc1 ruby: add detection of Ruby 2.1 2014-03-16 11:26:47 +01:00
Sebastien Helleu
44411f123a core: fix cmake warning CMP0007 on "make uninstall" (bug #41528) 2014-02-12 10:33:21 +01:00
Sebastien Helleu
52fb9fc237 core: fix typo in FindGnuTLS.cmake 2014-02-06 17:26:36 +01:00
Sebastien Helleu
d8b9e0a6bf ruby: add detection and fix compilation with Ruby 2.0 (patch #8209)
Now the search for Ruby is first performed with pkg-config and includes
detection of Ruby 2.0.
If not found, the old code for detection is used (for old distros or
old Ruby versions).

The specific test on Ruby 1.9.0 (to disable this version) has been
removed (1.9.0 was a dev/unstable version from 2007, quite old now).
2014-02-05 17:27:36 +01:00
Sebastien Helleu
892aa79fb5 core: update copyright dates 2014-01-01 00:14:12 +01:00
Sebastien Helleu
be9269dfc2 aspell: display aspell/enchant version on signal "debug_libs" 2013-11-17 20:51:10 +01:00
Sebastien Helleu
e8122773b8 core: use $DESTDIR on make uninstall with cmake 2013-08-07 10:11:24 +02:00
Sebastien Helleu
1cadbdf6a9 core: update man page and add translations (in french, german, italian, and japanese) 2013-06-28 20:08:16 +02:00
Sebastien Helleu
fb7edb3518 aspell: add support of enchant library (patch #6858)
Enchant is enabled only if the new option for cmake (or configure) is enabled:
- for cmake: cmake -DENABLE_ENCHANT=ON
- for configure: ./configure --enable-enchant
2013-06-07 21:01:48 +02:00
Sebastien Helleu
9857b44e4e guile: fix arguments given to callbacks (separate arguments instead of one list with arguments inside), guile >= 2.0 is now required (bug #38350)
Unfortunately this breaks compatibility with existing guile scripts, but this
change is needed to keep consistency with other scripting languages.

Now guile >= 2.0 is required, WeeChat can not compile any more with guile 1.8.
2013-02-19 22:49:59 +01:00
Sebastien Helleu
c37016e5ea core: fix detection of iconv with cmake on OS X (bug #38321) 2013-02-14 14:41:43 +01:00
Sebastien Helleu
5d2382caab core: fix detection of python on Ubuntu Raring 2013-01-31 17:14:34 +01:00
Sebastien Helleu
0f143da012 guile: fix compilation with guile 2.0 2013-01-16 22:37:31 +01:00
Sebastien Helleu
323801f869 core: add cmake option ENABLE_PYTHON3 and configure option --enable-python3
With this option, the python plugin will be built and linked with Python 3
(if found, or Python 2 as fallback).

This option it not (yet) recommended, because many scripts are working only
with Python 2.x. It should be used only to tests scripts with Python 3.x
in WeeChat.
2013-01-05 20:46:22 +01:00
Sebastien Helleu
f97598b4aa core: update copyright dates 2013-01-01 13:12:49 +01:00
Sebastien Helleu
857fb35dcb core: fix cmake target "dist": build tarballs using git-archive and not cvs 2012-12-14 19:01:07 +01:00
Sebastien Helleu
e8ab9ba18d core: stop cmake if gcrypt lib is not found (bug #37671) 2012-11-06 15:01:56 +01:00
Sebastien Helleu
cc5118b3b6 core: check that python version is >= 2.5 in cmake/autotools (patch from Peter Boström) 2012-08-21 09:27:49 +02:00
Sebastien Helleu
67c78085c9 core: fix typo in FindNcurses.cmake (patch from jaset) 2012-07-31 08:26:33 +02:00
Sebastien Helleu
24a06f0e08 python: fix detection of python (first try "python2.x" and then "python") (bug #36835) 2012-07-17 14:07:03 +02:00
Peter Boström
16c6dcb34c ruby: replace puts with print in FindRuby.cmake 2012-06-30 17:06:35 +02:00
Peter Boström
47810d56aa ruby: add detection of ruby version 1.9.3 in cmake 2012-06-30 16:58:01 +02:00
Sebastien Helleu
47e4a03be6 core: update copyright dates 2012-01-08 18:59:50 +01:00
Sebastien Helleu
daea95866c python: support of Python 3.x (task #11704)
Note that Python 2.x is still the only Python compiled if found:
Python 3.x is not auto-detected by cmake neither configure.
Many official Python scripts will not load/run with Python 3.x,
so Python 2.x (2.7 or 2.6) is still the recommended version.
2012-01-03 19:35:05 +01:00
Sebastien Helleu
ae997df61e core: fix detection of zlib with cmake 2011-12-07 11:21:23 +01:00
Sebastien Helleu
013f8cc757 relay: add WeeChat protocol (for remote GUI), doc about protocol, new options
The protocol is partial, under development, and NOT ready for usage.

New options added in relay.conf:
- relay.network.allowed_ips: allow only some IPs on relay plugin (by default
  all IPs are allowed)
- relay.network.compression_level: compression level used in WeeChat protocol
  (compression is made using zlib)
2011-12-06 23:06:23 +01:00
Sebastien Helleu
3ec981877a core: replace Config by RbConfig for detection of Ruby to avoid deprecation warnings 2011-11-04 17:12:41 +01:00
Sebastien Helleu
dfdf42e27b core: remove unneeded whitespace 2011-10-26 20:37:03 +02:00
Sebastien Helleu
9b42328d55 guile: new script plugin for scheme (task #7289) 2011-10-26 19:25:51 +02:00
Sebastien Helleu
223e7f8452 core: fix lookup of ncurses include path under Cygwin 2011-08-18 11:10:31 +02:00
Sebastien Helleu
6929486649 tcl: fix tcl detection on some 64-bits systems (bug #32915) 2011-03-26 17:59:01 +01:00
Sebastien Helleu
89424130d2 Fix compilation of Ruby plugin with ruby >= 1.9.1, give higher priority to newest ruby when many versions are installed 2011-01-13 17:44:03 +01:00
Sebastien Helleu
d24f6e9e17 Update copyright dates 2011-01-01 18:06:29 +01:00
Sebastien Helleu
62dc84f4e9 Add support of python 2.7 in cmake and configure (debian #606989) 2010-12-13 22:20:57 +01:00
Sebastien Helleu
0b54d49306 Fix Tcl detection in autotools and cmake (look for tcl 8.5 or newer) (bug #30907) 2010-11-09 21:53:59 +01:00
Sebastien Helleu
6562d676fe Update licenses and copyrights, add missing author names in sources 2010-06-22 19:46:28 +02:00
Sebastien Helleu
ac27388543 Display cmake warning if libncursesw is not found 2010-03-25 16:03:38 +01:00
Sebastien Helleu
2801b8437c Reformat multi-line comments 2010-03-19 23:33:14 +01:00
Sebastien Helleu
d2ec8d133d Add mechanism DH-BLOWFISH for SASL authentication with IRC server 2010-02-18 22:02:55 +01:00
Sebastien Helleu
16a02cddaf Add missing includes in FindIconv.cmake (patch #7069) 2010-01-28 12:26:39 +01:00
Sebastien Helleu
eb56a98fc8 Remove evil tabs in sources 2010-01-24 10:47:53 +01:00
Sebastien Helleu
2133eb30ff Update copyright dates 2010-01-03 19:31:55 +01:00
Sebastien Helleu
b279a99566 Support of Ruby >= 1.9.1 (patch #6989) 2009-11-29 16:41:08 +01:00
Emmanuel Bouthenot
43c76c9164 Replace MATCHES by STREQUAL in cmake: fix a fail to build on kFreeBSD 2009-10-03 14:56:02 +02:00
Sebastien Helleu
3379ac4757 Remove detection of library iksemel 2009-06-14 14:29:35 +02:00
Emmanuel Bouthenot
88f21fffe7 Fix some bugs in asciidoc detection, add detection of source-highlight (needed by asciidoc to build doc) 2009-06-07 18:56:38 +02:00
Emmanuel Bouthenot
452a1d6b9e Change the way to detect gnutls (using pkg-config instead of libgnutls-config) 2009-06-07 16:46:53 +02:00
Sebastien Helleu
103389822e Add cmake detection for asciidoc version 2009-06-02 13:11:16 +02:00