diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-06 13:10:56 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-08 14:19:41 +0100 |
commit | 754ab339469cdf8b55b82f4c896c4e15876551db (patch) | |
tree | 28a8a77c07a5e36e7af93ae0fe68a7a6416df239 /doc/fr | |
parent | 18360feb324d8d4f63706662b5c0e919bc93c357 (diff) | |
download | weechat-754ab339469cdf8b55b82f4c896c4e15876551db.zip |
core: remove build with autotools
CMake is now the only way to build WeeChat.
Diffstat (limited to 'doc/fr')
-rw-r--r-- | doc/fr/Makefile.am | 129 | ||||
-rw-r--r-- | doc/fr/weechat_dev.fr.adoc | 5 | ||||
-rw-r--r-- | doc/fr/weechat_faq.fr.adoc | 18 | ||||
-rw-r--r-- | doc/fr/weechat_user.fr.adoc | 60 |
4 files changed, 17 insertions, 195 deletions
diff --git a/doc/fr/Makefile.am b/doc/fr/Makefile.am deleted file mode 100644 index 76ae8da48..000000000 --- a/doc/fr/Makefile.am +++ /dev/null @@ -1,129 +0,0 @@ -# -# Copyright (C) 2003-2023 Sébastien Helleu <flashcode@flashtux.org> -# Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net> -# -# 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/>. -# - -docdir = $(datadir)/doc/$(PACKAGE) - -EXTRA_DIST = CMakeLists.txt \ - docinfo.html \ - weechat.1.fr.adoc \ - weechat-headless.1.fr.adoc \ - weechat_user.fr.adoc \ - weechat_plugin_api.fr.adoc \ - weechat_scripting.fr.adoc \ - weechat_faq.fr.adoc \ - weechat_quickstart.fr.adoc \ - weechat_relay_protocol.fr.adoc \ - weechat_dev.fr.adoc \ - includes/autogen_api_completions.fr.adoc \ - includes/autogen_api_hdata.fr.adoc \ - includes/autogen_api_infolists.fr.adoc \ - includes/autogen_api_infos.fr.adoc \ - includes/autogen_api_infos_hashtable.fr.adoc \ - includes/autogen_api_plugins_priority.fr.adoc \ - includes/autogen_api_url_options.fr.adoc \ - includes/autogen_user_commands.fr.adoc \ - includes/autogen_user_default_aliases.fr.adoc \ - includes/autogen_user_irc_colors.fr.adoc \ - includes/autogen_user_options.fr.adoc \ - includes/cmdline_options.fr.adoc \ - includes/man.fr.adoc - -if MAN - man_targets = weechat.1 \ - weechat-headless.1 - man_install = install-man - man_uninstall = uninstall-man -endif -if DOC - doc_targets = weechat_user.fr.html \ - weechat_plugin_api.fr.html \ - weechat_scripting.fr.html \ - weechat_faq.fr.html \ - weechat_quickstart.fr.html \ - weechat_relay_protocol.fr.html \ - weechat_dev.fr.html - doc_install = install-doc - doc_uninstall = uninstall-doc -endif -all-local: $(man_targets) $(doc_targets) - -# man pages -weechat.1: weechat.1.fr.adoc includes/cmdline_options.fr.adoc includes/man.fr.adoc - $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat.1 $(abs_top_srcdir)/doc/fr/weechat.1.fr.adoc -weechat-headless.1: weechat-headless.1.fr.adoc includes/cmdline_options.fr.adoc includes/man.fr.adoc - $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -b manpage -o weechat-headless.1 $(abs_top_srcdir)/doc/fr/weechat-headless.1.fr.adoc - -# user's guide -weechat_user.fr.html: weechat_user.fr.adoc includes/cmdline_options.fr.adoc $(wildcard includes/autogen_user_*.adoc) $(abs_top_srcdir)/doc/docinfo.html - $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_user.fr.html $(abs_top_srcdir)/doc/fr/weechat_user.fr.adoc - -# plugin API reference -weechat_plugin_api.fr.html: weechat_plugin_api.fr.adoc $(wildcard includes/autogen_api_*.adoc) $(abs_top_srcdir)/doc/docinfo.html - $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_plugin_api.fr.html $(abs_top_srcdir)/doc/fr/weechat_plugin_api.fr.adoc - -# scripting guide -weechat_scripting.fr.html: weechat_scripting.fr.adoc $(abs_top_srcdir)/doc/docinfo.html - $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_scripting.fr.html $(abs_top_srcdir)/doc/fr/weechat_scripting.fr.adoc - -# FAQ -weechat_faq.fr.html: weechat_faq.fr.adoc $(abs_top_srcdir)/doc/docinfo.html - $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_faq.fr.html $(abs_top_srcdir)/doc/fr/weechat_faq.fr.adoc - -# quickstart -weechat_quickstart.fr.html: weechat_quickstart.fr.adoc $(abs_top_srcdir)/doc/docinfo.html - $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_quickstart.fr.html $(abs_top_srcdir)/doc/fr/weechat_quickstart.fr.adoc - -# relay protocol -weechat_relay_protocol.fr.html: weechat_relay_protocol.fr.adoc $(abs_top_srcdir)/doc/docinfo.html - $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_relay_protocol.fr.html $(abs_top_srcdir)/doc/fr/weechat_relay_protocol.fr.adoc - -# developer's guide -weechat_dev.fr.html: weechat_dev.fr.adoc $(abs_top_srcdir)/doc/docinfo.html - $(ASCIIDOCTOR) $(ASCIIDOCTOR_ARGS) -a revnumber="$(VERSION)" -o weechat_dev.fr.html $(abs_top_srcdir)/doc/fr/weechat_dev.fr.adoc - -# install man/docs - -install-data-hook: $(man_install) $(doc_install) - -install-man: - $(mkinstalldirs) $(DESTDIR)$(mandir)/fr/man1/ - $(INSTALL_DATA) *.1 $(DESTDIR)$(mandir)/fr/man1/ - -install-doc: - $(mkinstalldirs) $(DESTDIR)$(docdir)/ - $(INSTALL_DATA) *.html $(DESTDIR)$(docdir)/ - -# uninstall man/docs - -uninstall-hook: $(man_uninstall) $(doc_uninstall) - -uninstall-man: - $(RM) $(DESTDIR)$(mandir)/fr/man1/weechat.1 - $(RM) $(DESTDIR)$(mandir)/fr/man1/weechat-headless.1 - -rmdir $(DESTDIR)$(mandir)/fr/man1 - -uninstall-doc: - $(RM) $(DESTDIR)$(docdir)/*.fr.html - -rmdir $(DESTDIR)$(docdir) - -# clean - -clean-local: - -$(RM) weechat.1 weechat-headless.1 weechat_*.html diff --git a/doc/fr/weechat_dev.fr.adoc b/doc/fr/weechat_dev.fr.adoc index d0cf873c7..d3f1d2a1c 100644 --- a/doc/fr/weechat_dev.fr.adoc +++ b/doc/fr/weechat_dev.fr.adoc @@ -1180,11 +1180,8 @@ Où _composant_ est : | cœur de WeeChat | build -| autogen.sh + - CMakeLists.txt + +| CMakeLists.txt + cmake/* + - configure.ac + - Makefile.am + tools/* + weechat.cygport.in + weechat.spec diff --git a/doc/fr/weechat_faq.fr.adoc b/doc/fr/weechat_faq.fr.adoc index c0c434b39..ca0486c7d 100644 --- a/doc/fr/weechat_faq.fr.adoc +++ b/doc/fr/weechat_faq.fr.adoc @@ -46,18 +46,12 @@ https://weechat.org/about/interfaces/[page avec les interfaces distantes ^↗^, [[compile_git]] === Je ne peux pas compiler WeeChat après avoir cloné la base git, pourquoi ? -La méthode recommandée pour compiler WeeChat est d'utiliser -link:weechat_user.fr.html#compile_with_cmake[CMake ^↗^,window=_blank]. - -Si vous compilez avec les link:weechat_user.fr.html#compile_with_autotools[autotools ^↗^,window=_blank] -(et non CMake), vérifiez que vous avez bien la dernière version d'autoconf et -automake. - -Une autre façon de faire est de compiler le "paquet devel", qui nécessite moins -de dépendances. Ce paquet est construit quasiment tous les jours à partir de la -base git. Notez que ce paquet peut ne pas correspondre exactement à la base -git et qu'il est moins pratique que de cloner la base git pour installer des -mises à jour. +WeeChat doit être compilé avec CMake. + +Merci de suivre les link:weechat_user.en.html#source_package[instructions de construction ^↗^,window=_blank] +et vous assurer que toutes les dépendances obligatoires sont installées. + +Si vous avez toujours des problèmes, merci de les remonter aux développeurs. [[compile_macos]] === Comment puis-je installer WeeChat sous macOS ? diff --git a/doc/fr/weechat_user.fr.adoc b/doc/fr/weechat_user.fr.adoc index 5222655b3..1c5aa2496 100644 --- a/doc/fr/weechat_user.fr.adoc +++ b/doc/fr/weechat_user.fr.adoc @@ -95,8 +95,7 @@ https://github.com/weechat/weechat-container[weechat-container ^↗^,window=_bl [[source_package]] === Paquet source -WeeChat peut être compilé avec CMake ou les autotools (CMake est la méthode -recommandée). +WeeChat doit être construit avec CMake. [NOTE] Sous macOS, vous pouvez utiliser https://brew.sh/[Homebrew ^↗^,window=_blank] : @@ -105,17 +104,17 @@ Sous macOS, vous pouvez utiliser https://brew.sh/[Homebrew ^↗^,window=_blank] [[dependencies]] ==== Dépendances -Le tableau suivant liste les paquets *requis* pour compiler WeeChat : +Le tableau suivant liste les paquets *requis* pour construire WeeChat : [width="100%",cols="5,^3,.^15",options="header"] |=== | Paquet ^(1)^ | Version | Fonctionnalités | compilateur C (gcc / clang) | -| Construction. +| Compilation des sources en C. | cmake | ≥ 3.0 -| Construction (autotools toujours possible, mais CMake est recommandé). +| Construction. | pkg-config | | Détection des bibliothèques installées. @@ -191,8 +190,8 @@ pouvez installer toutes les dépendances avec la commande : # apt-get build-dep weechat ---- -[[compile_with_cmake]] -==== Compilation avec CMake +[[build]] +==== Construction * Installation dans les répertoires systèmes (nécessite les droits _root_) : @@ -345,60 +344,21 @@ Ou avec l'interface Curses : $ ccmake .. ---- -[[compile_with_autotools]] -==== Compilation avec autotools - -[WARNING] -Seul CMake est officiellement supporté pour construire WeeChat. Vous ne devriez -utiliser les autotools que si vous n'avez pas la possibilité d'utiliser CMake. + -La compilation avec les autotools requiert plus de dépendances et est plus lente -qu'avec CMake. - -* Installation dans les répertoires systèmes (nécessite les droits _root_) : - ----- -$ ./autogen.sh -$ mkdir build -$ cd build -$ ../configure -$ make -$ sudo make install ----- - -* Installation dans un répertoire spécifique (par exemple dans votre "home") : - ----- -$ ./autogen.sh -$ mkdir build -$ cd build -$ ../configure --prefix=/chemin/vers/répertoire -$ make -$ make install ----- - -Des options peuvent être utilisées pour le script _configure_, elles peuvent -être affichées avec cette commande : - ----- -$ ./configure --help ----- - -[[run_tests]] -==== Lancement des tests +[[tests]] +==== Tests Les paquets suivants sont nécessaires pour compiler les tests : * libcpputest-dev * C++ compiler -Les tests doivent être activés pour compiler WeeChat (avec CMake) : +Les tests doivent être activés pour compiler WeeChat : ---- $ cmake .. -DENABLE_TESTS=ON ---- -Ils peuvent être lancés après compilation depuis le répertoire de construction -(avec CMake) : +Ils peuvent être lancés après compilation depuis le répertoire de construction : ---- $ ctest -V |