From 4d643b662f77ef9cc872089cad15cf5e7e1f70f2 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 9 Feb 2024 17:33:55 +0000 Subject: gentoo auto-resync : 09:02:2024 - 17:33:55 --- net-irc/weechat/Manifest | 5 +- net-irc/weechat/weechat-4.2.1.ebuild | 188 +++++++++++++++++++++++++++++++++++ net-irc/weechat/weechat-9999.ebuild | 3 +- 3 files changed, 194 insertions(+), 2 deletions(-) create mode 100644 net-irc/weechat/weechat-4.2.1.ebuild (limited to 'net-irc/weechat') diff --git a/net-irc/weechat/Manifest b/net-irc/weechat/Manifest index fadc4b4889cf..4ab6a11d955a 100644 --- a/net-irc/weechat/Manifest +++ b/net-irc/weechat/Manifest @@ -7,9 +7,12 @@ DIST weechat-4.1.2.tar.xz 2635776 BLAKE2B cd11602b74c65ae4ed129c3604afc1eff15449 DIST weechat-4.1.2.tar.xz.asc 833 BLAKE2B 94d700e074393c4bde8b68bacfe4a37d022f82bbd9697b12a1cf1e98cbb15a4295689c704ce8eaaf095ca96c4eea8c63275232a5ca6f40ab09d534fff24e76c5 SHA512 44cc5be0700b7979c85e44a1037fd467a6a920f22dc831fd3263fe6d8967eda001d09126b33adaed385c4082e33b8849cba3dbec48f4900e50e10f4da32a6edd DIST weechat-4.1.3.tar.xz 2635936 BLAKE2B b810dc49f817f35b121037663e36dded1dd1f56b8ea7db6b18d60731993efeca956f8ec871001ced480094f1fc2e63c276047c44d1fc1ec27bb13622be1ffc84 SHA512 e33c29ddcaa49aba94f0a7ceada9fd0df0ea63a843ab752eb35d8b1a68ca151ae8d58ab66ec18f82d7ba7846cacaef8a19edcbf4e70f6ae10dd9a3cf09955bb0 DIST weechat-4.1.3.tar.xz.asc 833 BLAKE2B 3db658a0323dedbe0cd1d057139d3fef216441538391ba36cb4b2763cb80bbd32ddd36f2a0f2330bdcd73722fdd73f02eff39da61a61bfda7a4fd8aaa1f98abb SHA512 054844c78dfeaa60e8a027e96aff994009c07b871b9fd712e3650a709c5bdf7ca1da8b4eb6251c82152153fc4e765f032760387b2a89840effd389d6532ea170 +DIST weechat-4.2.1.tar.xz 2594044 BLAKE2B 336f5f1560a834601ac5a7e6924dfabcc85fdf00f1533f1c5d1d7f2cc627d2b3ca35819b16ed30328271699cf8c314fb33164a9353a7beebc591ae175107f290 SHA512 e9ed67cd45b374435b05043dd9f085d30f4b429dff1afa82fe5f50522283faa86b5e6909ec1f51af033a612abe5f52f4441433bcc94e59027fc5ccff86e84c62 +DIST weechat-4.2.1.tar.xz.asc 833 BLAKE2B abd7e8299e748c228aac82cdfbe4591c75b94d4e213842444ae4332cec316d114b1262f2fcfe92245b236e012c27b942a26e1c018dce0cb0bc4bd0f34584308a SHA512 1f510ea85fd5eef667d738674182dcc78af42d0ea092a7df696f6210657c5d7f13bb631a332b87e1e127d1b40eac17603147fd05eeac363401b705e38fbaf3d5 EBUILD weechat-4.0.4.ebuild 4828 BLAKE2B 3853034c4e2806c6278a56358af69e5aeb7519312b7f0039db93abfa65c6cf49670deb0bae588a426caf07e35ad1efdf61cd315150166cca47ee758e0f522cbc SHA512 2fc26167376f18f174ea18fadc735dfe6a2a21730b62aa8faef211c0de017ab5d55a89bdec2afc9531ace18e706463ed8fd7109648d76c9b7380b422e31a3248 EBUILD weechat-4.0.8.ebuild 4831 BLAKE2B 4aba39bb0df5cb333ab15c0b6e7e9443c5fbb7262b8f75c9e6a0aacafc38f61cd09ba9207275519e8b04684d11d46b04494bec8cb1ef31cb37cb06d82c221455 SHA512 42c830bae787f4934e2df5526f6c35c0713b9a69da29edad21f2f4d8f7118cba470681b2590e07b2d4b86a58081f81b636da9537fd26bb2ce4b4025a7576de4a EBUILD weechat-4.1.2.ebuild 4874 BLAKE2B 6dee373ab332ae62b7ec45f18c08fe482f12fae592dc19a9916366686be023287427176228166a18b91d6392e905d8d9379ef9f3047a276fb28c844b9c39c31e SHA512 3bc97d66ef52a171452edaf3d1737378228e8be8666c9aa5327b6bbaae6d2bea942ac66732a8fedc4f12bf7ce059b21f7490ff0eb9c3c9fdb57492ff21a4059e EBUILD weechat-4.1.3.ebuild 4877 BLAKE2B 0c38f159d7d80106eb21570609794415d1da032f771c6e9ac90ebc879286122df524b3564114f58b78df468aca0084e308a7e622230c3843c9110f9042cfc593 SHA512 a130e8d4439538bb0727d747444d7eed2e6706ae298e7468a7df36d25e71d0bdf396fb203db7107f597ae90aee668e4e14e14b92670d3666fc8743ef5fe465b4 -EBUILD weechat-9999.ebuild 4877 BLAKE2B 5cf14a76bc03d5c6038cdc26a067cba63596f0de09257bcae1310061522cd3128d3cd4ac27dd386c232f1d3a9ec0206ed3501c86503f1531659cb6804e59874c SHA512 2bb8b48f6a174ae0562b6b6f37cbc19d52d25fa54f75c27858fb16f712d14d78adcf2674e7e4615e6d9c20c518cb4a5eac712a1c1091b83a2c57dc0b4f3a9d58 +EBUILD weechat-4.2.1.ebuild 4898 BLAKE2B 84ec000d43a4ac5aa7baae6b5a5b41fe184bc2f63394e44d070f086b0e6f0b43eee9585fef7667d4ca879aaea6049b751d2c206d8f9ae8651802a2bfeb05bf26 SHA512 3de0285d6918389944663a904a864a3d3a0e46007b2b3a74727de58d2f88a00eab0464f5f520fcb2fd9f0aac43896326f8e6341598358ce02f2c60f3c27a0efb +EBUILD weechat-9999.ebuild 4898 BLAKE2B 84ec000d43a4ac5aa7baae6b5a5b41fe184bc2f63394e44d070f086b0e6f0b43eee9585fef7667d4ca879aaea6049b751d2c206d8f9ae8651802a2bfeb05bf26 SHA512 3de0285d6918389944663a904a864a3d3a0e46007b2b3a74727de58d2f88a00eab0464f5f520fcb2fd9f0aac43896326f8e6341598358ce02f2c60f3c27a0efb MISC metadata.xml 1555 BLAKE2B 02c9450e9d8cce403316631c91e211b9a70533fdb23275c5aed39683ac4e0d64e1276c3f4268dfe4b0adc49582a5d3457dd579e1419f6f98470fa784b48ff644 SHA512 ec3d7d9601d7d247af4a707e6b9cead1f7e78497daf1efad99025f7269adcf582deada141e0997398849116d44e89e62fab2d6cfee7e20ae1076799f0cae82e3 diff --git a/net-irc/weechat/weechat-4.2.1.ebuild b/net-irc/weechat/weechat-4.2.1.ebuild new file mode 100644 index 000000000000..0a07f1ce102d --- /dev/null +++ b/net-irc/weechat/weechat-4.2.1.ebuild @@ -0,0 +1,188 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-{1..4} ) +PYTHON_COMPAT=( python3_{10..12} ) + +inherit cmake lua-single python-single-r1 xdg + +if [[ ${PV} == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/weechat/weechat.git" +else + inherit verify-sig + SRC_URI="https://weechat.org/files/src/${P}.tar.xz + verify-sig? ( https://weechat.org/files/src/${P}.tar.xz.asc )" + VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/weechat.org.asc + BDEPEND+="verify-sig? ( sec-keys/openpgp-keys-weechat )" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~x64-macos" +fi + +DESCRIPTION="Portable and multi-interface IRC client" +HOMEPAGE="https://weechat.org/" + +LICENSE="GPL-3+" +SLOT="0/${PV}" + +NETWORKS="+irc" +PLUGINS="+alias +buflist +charset +exec +fifo +fset +logger +relay +scripts +spell +trigger +typing +xfer" +# dev-lang/v8 was dropped from Gentoo so we can't enable javascript support +# dev-lang/php eclass support is lacking, php plugins don't work. bug #705702 +SCRIPT_LANGS="guile lua +perl +python ruby tcl" +LANGS=" cs de es fr it ja pl ru" +IUSE="doc enchant man nls selinux test +zstd ${SCRIPT_LANGS} ${PLUGINS} ${INTERFACES} ${NETWORKS}" + +REQUIRED_USE=" + enchant? ( spell ) + lua? ( ${LUA_REQUIRED_USE} ) + python? ( ${PYTHON_REQUIRED_USE} ) + test? ( nls ) +" + +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:12= ) + lua? ( ${LUA_DEPS} ) + nls? ( virtual/libintl ) + perl? ( + dev-lang/perl:= + virtual/libcrypt:= + ) + python? ( ${PYTHON_DEPS} ) + ruby? ( + || ( + dev-lang/ruby:3.3 + dev-lang/ruby:3.2 + dev-lang/ruby:3.1 + ) + ) + selinux? ( sec-policy/selinux-irc ) + spell? ( + enchant? ( app-text/enchant:* ) + !enchant? ( app-text/aspell ) + ) + tcl? ( >=dev-lang/tcl-8.4.15:0= ) + zstd? ( app-arch/zstd:= ) +" + +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 ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-3.3-cmake_lua_version.patch +) + +DOCS="AUTHORS.adoc ChangeLog.adoc Contributing.adoc ReleaseNotes.adoc README.adoc" + +RESTRICT="!test? ( test )" + +pkg_setup() { + use lua && lua-single_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 + local j + for i in $(grep -e 'set(.*en.*)$' doc/CMakeLists.txt \ + | sed -e 's/.*set(\(\w\+\).*/\1/'); do + for j in $(grep set.${i} doc/CMakeLists.txt \ + | sed -e "s/.*${i}\(.*\)).*/\1/" -e 's/ en//'); do + if ! has ${j} ${LINGUAS-${j}} ; then + sed -i \ + -e "s/\(set(${i}.*\) ${j}/\1/" \ + doc/CMakeLists.txt || die + fi + done + done + + # install docs in correct directory + sed -i "s#\${DATAROOTDIR}/doc/\${PROJECT_NAME}#\0-${PVR}/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="${EPREFIX}/usr/$(get_libdir)" + -DENABLE_JAVASCRIPT=OFF + -DENABLE_LARGEFILE=ON + -DENABLE_NCURSES=ON + -DENABLE_PHP=OFF + -DENABLE_ALIAS=$(usex alias) + -DENABLE_BUFLIST=$(usex buflist) + -DENABLE_CHARSET=$(usex charset) + # -DENABLE_DOC requires all plugins (except javascript). + # https://github.com/weechat/weechat/blob/v4.0.2/CMakeLists.txt#L144 + # Impossible since php was dropped in net-irc/weechat-3.5.r1.ebuild. bug #705702 + -DENABLE_DOC=OFF + -DENABLE_DOC_INCOMPLETE=$(usex doc) + -DENABLE_ENCHANT=$(usex enchant) + -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_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_TYPING=$(usex typing) + -DENABLE_XFER=$(usex xfer) + -DENABLE_ZSTD=$(usex zstd) + ) + cmake_src_configure +} + +src_test() { + if $(locale -a | grep -iq "en_US\.utf.*8"); then + cmake_src_test -V + else + eerror "en_US.UTF-8 locale is required to run ${PN}'s ${FUNCNAME}" + die "required locale missing" + fi +} diff --git a/net-irc/weechat/weechat-9999.ebuild b/net-irc/weechat/weechat-9999.ebuild index 4e2ec42c58f6..0a07f1ce102d 100644 --- a/net-irc/weechat/weechat-9999.ebuild +++ b/net-irc/weechat/weechat-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -58,6 +58,7 @@ RDEPEND=" python? ( ${PYTHON_DEPS} ) ruby? ( || ( + dev-lang/ruby:3.3 dev-lang/ruby:3.2 dev-lang/ruby:3.1 ) -- cgit v1.2.3