diff options
| author | Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org> | 2020-05-04 22:40:48 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-05-05 16:23:36 -0700 |
| commit | 535385f3feaffa07ea23b3820cb1b916bef15f85 (patch) | |
| tree | e5b7f1447288ded4419fb44476de89b4015d1573 | |
| parent | 157b563cc9842699824b16686f9803c203a193ed (diff) | |
| download | meta-openembedded-535385f3feaffa07ea23b3820cb1b916bef15f85.tar.gz | |
weechat: introduce weechat recipe providing a fully working IRC client
Signed-off-by: Alejandro Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-networking/recipes-irc/weechat/weechat/0001-use-pkg-config-for-gcrypt-instead.patch | 37 | ||||
| -rw-r--r-- | meta-networking/recipes-irc/weechat/weechat_2.8.bb | 32 |
2 files changed, 69 insertions, 0 deletions
diff --git a/meta-networking/recipes-irc/weechat/weechat/0001-use-pkg-config-for-gcrypt-instead.patch b/meta-networking/recipes-irc/weechat/weechat/0001-use-pkg-config-for-gcrypt-instead.patch new file mode 100644 index 0000000000..0717e96546 --- /dev/null +++ b/meta-networking/recipes-irc/weechat/weechat/0001-use-pkg-config-for-gcrypt-instead.patch | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | From dc6b11f4cc6035b4701e1d7f7c91b2f45757e7a2 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Alejandro Enedino Hernandez Samaniego | ||
| 3 | <alejandro@enedino.org> | ||
| 4 | Date: Wed, 26 Feb 2020 13:55:16 -0800 | ||
| 5 | Subject: [PATCH] use pkg-config for gcrypt instead | ||
| 6 | |||
| 7 | Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org> | ||
| 8 | |||
| 9 | Upstream-Status: Inappropriate [oe-specific] | ||
| 10 | |||
| 11 | --- | ||
| 12 | cmake/FindGCRYPT.cmake | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | Index: weechat-2.7.1/cmake/FindGCRYPT.cmake | ||
| 16 | =================================================================== | ||
| 17 | --- weechat-2.7.1.orig/cmake/FindGCRYPT.cmake | ||
| 18 | +++ weechat-2.7.1/cmake/FindGCRYPT.cmake | ||
| 19 | @@ -27,15 +27,15 @@ | ||
| 20 | # GCRYPT_LDFLAGS = ldflags to use to compile | ||
| 21 | # | ||
| 22 | |||
| 23 | -find_program(LIBGCRYPT_CONFIG_EXECUTABLE NAMES libgcrypt-config) | ||
| 24 | +find_program(LIBGCRYPT_CONFIG_EXECUTABLE NAMES pkg-config) | ||
| 25 | |||
| 26 | set(GCRYPT_LDFLAGS) | ||
| 27 | set(GCRYPT_CFLAGS) | ||
| 28 | |||
| 29 | if(LIBGCRYPT_CONFIG_EXECUTABLE) | ||
| 30 | |||
| 31 | - exec_program(${LIBGCRYPT_CONFIG_EXECUTABLE} ARGS --libs RETURN_VALUE _return_VALUE OUTPUT_VARIABLE GCRYPT_LDFLAGS) | ||
| 32 | - exec_program(${LIBGCRYPT_CONFIG_EXECUTABLE} ARGS --cflags RETURN_VALUE _return_VALUE OUTPUT_VARIABLE GCRYPT_CFLAGS) | ||
| 33 | + exec_program(${LIBGCRYPT_CONFIG_EXECUTABLE} ARGS libgcrypt --libs RETURN_VALUE _return_VALUE OUTPUT_VARIABLE GCRYPT_LDFLAGS) | ||
| 34 | + exec_program(${LIBGCRYPT_CONFIG_EXECUTABLE} ARGS libgcrypt --cflags RETURN_VALUE _return_VALUE OUTPUT_VARIABLE GCRYPT_CFLAGS) | ||
| 35 | |||
| 36 | if(${GCRYPT_CFLAGS} MATCHES "\n") | ||
| 37 | set(GCRYPT_CFLAGS " ") | ||
diff --git a/meta-networking/recipes-irc/weechat/weechat_2.8.bb b/meta-networking/recipes-irc/weechat/weechat_2.8.bb new file mode 100644 index 0000000000..cdfb1a963d --- /dev/null +++ b/meta-networking/recipes-irc/weechat/weechat_2.8.bb | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | SUMMARY = "Full-featured IRC plugin: multi-servers, proxy support, IPv6, SASL authentication, nicklist, DCC, and many other features" | ||
| 2 | HOMEPAE = "https://weechat.org/" | ||
| 3 | SECTION = "net" | ||
| 4 | LICENSE = "GPLv3" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=c678957b0c8e964aa6c70fd77641a71e" | ||
| 6 | |||
| 7 | DEPENDS = "openssl zlib icu libgcrypt gnutls curl aspell" | ||
| 8 | |||
| 9 | SRC_URI = "https://weechat.org/files/src/weechat-${PV}.tar.xz \ | ||
| 10 | file://0001-use-pkg-config-for-gcrypt-instead.patch \ | ||
| 11 | " | ||
| 12 | SRC_URI[sha256sum] = "553ea295edad3b03cf88e6029c21e7bde32ff1cc026d35386ba9da3e56a6018c" | ||
| 13 | |||
| 14 | inherit cmake pkgconfig | ||
| 15 | |||
| 16 | PACKAGECONFIG ??= " ncurses python" | ||
| 17 | PACKAGECONFIG[ncurses] = "-DENABLE_NCURSES=ON,-DENABLE_NCURSES=OFF,ncurses" | ||
| 18 | PACKAGECONFIG[python] = "-DENABLE_PYTHON=ON,-DENABLE_PYTHON=OFF,python3" | ||
| 19 | |||
| 20 | EXTRA_OECMAKE_append = " -DENABLE_PHP=OFF -DENABLE_TCL=OFF -DENABLE_LUA=OFF -DENABLE_JAVASCRIPT=OFF -DENABLE_RUBY=OFF -DENABLE_GUILE=OFF -DENABLE_PERL=OFF -DENABLE_ASPELL=ON" | ||
| 21 | |||
| 22 | do_configure_prepend(){ | ||
| 23 | # Make sure we get dependencies from recipe-sysroot | ||
| 24 | sed -i -e 's# /usr/bin# ${RECIPE_SYSROOT}/${bindir}/#g' ${S}/cmake/FindPerl.cmake | ||
| 25 | sed -i -e 's# /usr/local/bin##g' ${S}/cmake/FindPerl.cmake | ||
| 26 | sed -i -e 's# /usr/pkg/bin##g' ${S}/cmake/FindPerl.cmake | ||
| 27 | } | ||
| 28 | |||
| 29 | do_install_append(){ | ||
| 30 | rm -rf ${D}/${datadir} | ||
| 31 | } | ||
| 32 | |||
