diff options
Diffstat (limited to 'net-irc/weechat')
-rw-r--r-- | net-irc/weechat/Manifest | 6 | ||||
-rw-r--r-- | net-irc/weechat/weechat-2.8.ebuild | 5 | ||||
-rw-r--r-- | net-irc/weechat/weechat-2.9.ebuild | 150 | ||||
-rw-r--r-- | net-irc/weechat/weechat-9999.ebuild | 7 |
4 files changed, 155 insertions, 13 deletions
diff --git a/net-irc/weechat/Manifest b/net-irc/weechat/Manifest index 5db11da15e66..4363ca620669 100644 --- a/net-irc/weechat/Manifest +++ b/net-irc/weechat/Manifest @@ -1,4 +1,6 @@ DIST weechat-2.8.tar.xz 2248868 BLAKE2B 756ce1719ecaa351a2780641758bb7587b45b8e6b16e5a82833009ddb27f71783a461cf89662e04118c75e2d372103eda5a11c98feb62d624b330b223bf22ede SHA512 3bebb42118fca6b601f1de8f4d52378619a10e5c490f5b46f86d27a9680f00a56d48a1ade729e78d965cae589e6c80647c22414393000c7d3cfcc94a1e41c4df -EBUILD weechat-2.8.ebuild 4038 BLAKE2B 6121de5bbcaaf326916f7ada4dd370f1b1994b79221cb25243ef9fe9532130b0449e0ba8d02c0af74d4db28be62a01b6030b94b89ced69b44980599962cde445 SHA512 60e77e01f0ea4aa6b3d3e44fa4a9bbd4a975ac9e19314dbd51107e33528810e6aa2372b64f0c5105126d8751457b411d31658dc6d75261a6a74c25c4f9c5bd7d -EBUILD weechat-9999.ebuild 3964 BLAKE2B 6d017e33ee5f49c90aaa65dc7debb53aa106df4caf2d67d71e90b8f4ea4d6700fcdaeed1c8fe0fb033b52cd28ed7e3a98a40beb0338b26cfc96b71a35d5028a0 SHA512 ad48f552017c801c6ecd6e403b4ae4991e9dbc71e3daba4edc18fd1ebda63f0a999aee992a116308362957e31735b9b48fd523b98d3c19db314a1174b858ddae +DIST weechat-2.9.tar.xz 2206584 BLAKE2B 8089cd846ca192ec666a50e8071ed57e1c2518b2d5ea98733b8e3fa6c8c684e8ed14253d787b3f9995a8f481a7413444c3ba262dcb6c100283192bcafb502627 SHA512 c4a5723accb417c0496b5427ee58fbf5d3e842e6d79a7988f8680cd605534cfc9d30f6f4844afe45f5223458f28b8deff1284fff2fb5b7d04cb99a81cde4e13e +EBUILD weechat-2.8.ebuild 3951 BLAKE2B bac3b0c695d3f2a09514d20af581eb4d1ac442e8cd8fc9e124eb972220c69d38a0fb3981bc6088df8884c73dde26f9136cc3fc15895b98174b8267192bcb9824 SHA512 41ed688abdd5dbacce66e4ec50e8edcd204411ea64514691c6141b32edf29ca04a2454537fd38aa01aa0cbe809dc6c13d10172b3149a492453d4decb0cc22b44 +EBUILD weechat-2.9.ebuild 3884 BLAKE2B 09cb1759e3b1fb8e7da5a142f9cd2c1b075e26a01260419fee92c9fab736697204a2a1bb88eb2b2df482b9c02974733b0e41dff23352f718e29b6d0b1a60b1b8 SHA512 809fe6481d81d171391db677a9bd19a8f9f5ae7d677e2725e21846f1729ee87cd231bba8db75f7db9643de7fab536b678c0b58618cfd45ab45b5f5cd827d9809 +EBUILD weechat-9999.ebuild 3884 BLAKE2B 09cb1759e3b1fb8e7da5a142f9cd2c1b075e26a01260419fee92c9fab736697204a2a1bb88eb2b2df482b9c02974733b0e41dff23352f718e29b6d0b1a60b1b8 SHA512 809fe6481d81d171391db677a9bd19a8f9f5ae7d677e2725e21846f1729ee87cd231bba8db75f7db9643de7fab536b678c0b58618cfd45ab45b5f5cd827d9809 MISC metadata.xml 988 BLAKE2B 26997114f73adc3dc8758a9241009fe8fd84c9856bbccdc31fc0ad7e8d26b20656c27451cb4475fe60421069e1df43ed5f1bd39cdf493cc47622796f20d79487 SHA512 2463ed39fd434c3dac81c46525907c76a0cdba7d321029cf8b165ee62b003ab1e7153d714b4f71664ffd758572b89db4b0d7c30280f56acd7708668d54a17046 diff --git a/net-irc/weechat/weechat-2.8.ebuild b/net-irc/weechat/weechat-2.8.ebuild index e7f1ef5f7341..115554943a06 100644 --- a/net-irc/weechat/weechat-2.8.ebuild +++ b/net-irc/weechat/weechat-2.8.ebuild @@ -135,11 +135,6 @@ src_configure() { -DENABLE_TRIGGER=$(usex trigger) -DENABLE_XFER=$(usex xfer) ) - - if use python; then - python_is_python3 || mycmakeargs+=( -DENABLE_PYTHON2=ON ) - fi - cmake-utils_src_configure } diff --git a/net-irc/weechat/weechat-2.9.ebuild b/net-irc/weechat/weechat-2.9.ebuild new file mode 100644 index 000000000000..7ea49b6dc653 --- /dev/null +++ b/net-irc/weechat/weechat-2.9.ebuild @@ -0,0 +1,150 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{3_6,3_7,3_8} ) + +inherit cmake python-single-r1 xdg-utils + +if [[ ${PV} == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/weechat/weechat.git" +else + SRC_URI="https://weechat.org/files/src/${P}.tar.xz" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~x64-macos" +fi + +DESCRIPTION="Portable and multi-interface IRC client" +HOMEPAGE="https://weechat.org/" + +LICENSE="GPL-3" +SLOT="0" + +NETWORKS="+irc" +PLUGINS="+alias +buflist +charset +exec +fifo +fset +logger +relay +scripts +spell +trigger +xfer" +# dev-lang/v8 was dropped from Gentoo so we can't enable javascript support +SCRIPT_LANGS="guile lua +perl php +python ruby tcl" +LANGS=" cs de es fr it ja pl ru" +IUSE="doc man nls test ${SCRIPT_LANGS} ${PLUGINS} ${INTERFACES} ${NETWORKS}" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + dev-libs/libgcrypt:0= + net-libs/gnutls:= + sys-libs/ncurses:0= + sys-libs/zlib:= + net-misc/curl[ssl] + charset? ( virtual/libiconv ) + guile? ( >=dev-scheme/guile-2.0 ) + lua? ( dev-lang/lua:0 ) + nls? ( virtual/libintl ) + perl? ( dev-lang/perl:= ) + php? ( >=dev-lang/php-7.0:*[embed] ) + python? ( ${PYTHON_DEPS} ) + ruby? ( || ( dev-lang/ruby:2.6 dev-lang/ruby:2.5 dev-lang/ruby:2.4 ) ) + spell? ( app-text/aspell ) + tcl? ( >=dev-lang/tcl-8.4.15:0= ) +" +DEPEND="${RDEPEND} + test? ( dev-util/cpputest ) +" + +BDEPEND=" + virtual/pkgconfig + doc? ( >=dev-ruby/asciidoctor-1.5.4 ) + man? ( >=dev-ruby/asciidoctor-1.5.4 ) + nls? ( >=sys-devel/gettext-0.15 ) +" + +DOCS="AUTHORS.adoc ChangeLog.adoc Contributing.adoc ReleaseNotes.adoc README.adoc" + +# tests need to be fixed to not use system plugins if weechat is already installed +RESTRICT="test" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + cmake_src_prepare + + # install only required translations + local i + for i in ${LANGS} ; do + if ! has ${i} ${LINGUAS-${i}} ; then + sed -i \ + -e "/${i}.po/d" \ + po/CMakeLists.txt || die + fi + done + + # install only required documentation ; en always + for i in $(grep add_subdirectory doc/CMakeLists.txt \ + | sed -e 's/.*add_subdirectory(\(..\)).*/\1/' -e '/en/d'); do + if ! has ${i} ${LINGUAS-${i}} ; then + sed -i \ + -e '/add_subdirectory('${i}')/d' \ + doc/CMakeLists.txt || die + fi + done + + # install docs in correct directory + sed -i "s#\${SHAREDIR}/doc/\${PROJECT_NAME}#\0-${PV}/html#" doc/*/CMakeLists.txt || die + + if [[ ${CHOST} == *-darwin* ]]; then + # fix linking error on Darwin + sed -i "s/+ get_config_var('LINKFORSHARED')//" \ + cmake/FindPython.cmake || die + # allow to find the plugins by default + sed -i 's/".so,.dll"/".bundle,.so,.dll"/' \ + src/core/wee-config.c || die + fi +} + +src_configure() { + local mycmakeargs=( + -DLIBDIR=/usr/$(get_libdir) + -DENABLE_JAVASCRIPT=OFF + -DENABLE_LARGEFILE=ON + -DENABLE_NCURSES=ON + -DENABLE_ALIAS=$(usex alias) + -DENABLE_BUFLIST=$(usex buflist) + -DENABLE_CHARSET=$(usex charset) + -DENABLE_DOC=$(usex doc) + -DENABLE_EXEC=$(usex exec) + -DENABLE_FIFO=$(usex fifo) + -DENABLE_FSET=$(usex fset) + -DENABLE_GUILE=$(usex guile) + -DENABLE_IRC=$(usex irc) + -DENABLE_LOGGER=$(usex logger) + -DENABLE_LUA=$(usex lua) + -DENABLE_MAN=$(usex man) + -DENABLE_NLS=$(usex nls) + -DENABLE_PERL=$(usex perl) + -DENABLE_PHP=$(usex php) + -DENABLE_PYTHON=$(usex python) + -DENABLE_RELAY=$(usex relay) + -DENABLE_RUBY=$(usex ruby) + -DENABLE_SCRIPT=$(usex scripts) + -DENABLE_SCRIPTS=$(usex scripts) + -DENABLE_SPELL=$(usex spell) + -DENABLE_TCL=$(usex tcl) + -DENABLE_TESTS=$(usex test) + -DENABLE_TRIGGER=$(usex trigger) + -DENABLE_XFER=$(usex xfer) + ) + cmake_src_configure +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update + xdg_mimeinfo_database_update +} diff --git a/net-irc/weechat/weechat-9999.ebuild b/net-irc/weechat/weechat-9999.ebuild index a63694304e87..7ea49b6dc653 100644 --- a/net-irc/weechat/weechat-9999.ebuild +++ b/net-irc/weechat/weechat-9999.ebuild @@ -12,7 +12,7 @@ if [[ ${PV} == "9999" ]] ; then EGIT_REPO_URI="https://github.com/weechat/weechat.git" else SRC_URI="https://weechat.org/files/src/${P}.tar.xz" - KEYWORDS="~amd64 ~arm ~ppc64 ~x86 ~x64-macos" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~x64-macos" fi DESCRIPTION="Portable and multi-interface IRC client" @@ -134,11 +134,6 @@ src_configure() { -DENABLE_TRIGGER=$(usex trigger) -DENABLE_XFER=$(usex xfer) ) - - if use python; then - python_is_python3 || mycmakeargs+=( -DENABLE_PYTHON2=ON ) - fi - cmake_src_configure } |