From 0ded23e9afc3d3424aef90e5cec3f2ca6d6b4c30 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 13 Dec 2023 11:40:30 +0000 Subject: gentoo auto-resync : 13:12:2023 - 11:40:30 --- net-irc/Manifest.gz | Bin 8222 -> 8219 bytes net-irc/scrollz/Manifest | 1 - net-irc/scrollz/files/scrollz-2.3-fcommon.patch | 17 --- net-irc/weechat/Manifest | 6 + net-irc/weechat/weechat-4.0.7.ebuild | 186 +++++++++++++++++++++++ net-irc/weechat/weechat-4.1.2.ebuild | 187 ++++++++++++++++++++++++ 6 files changed, 379 insertions(+), 18 deletions(-) delete mode 100644 net-irc/scrollz/files/scrollz-2.3-fcommon.patch create mode 100644 net-irc/weechat/weechat-4.0.7.ebuild create mode 100644 net-irc/weechat/weechat-4.1.2.ebuild (limited to 'net-irc') diff --git a/net-irc/Manifest.gz b/net-irc/Manifest.gz index 7e7908c05f05..8cef6ebfd32b 100644 Binary files a/net-irc/Manifest.gz and b/net-irc/Manifest.gz differ diff --git a/net-irc/scrollz/Manifest b/net-irc/scrollz/Manifest index d1b812d3587e..8b076e1a7b2f 100644 --- a/net-irc/scrollz/Manifest +++ b/net-irc/scrollz/Manifest @@ -1,4 +1,3 @@ -AUX scrollz-2.3-fcommon.patch 566 BLAKE2B 454bbb7beec42378855dd64cd4a9826dd39deb549a75006dda80cec99463b45eaacf666c2ac25b3285ab71e2a57256e8c640c427373f56c6780d3172257c1071 SHA512 839109aaf8bc3429e7a215de5b7018dbcb718181d9e4026bd918fbb86665df20542d0f5e7884bf582cbd63238185d9e4fb180c6b16797200dd972ee1ea679dd4 DIST ScrollZ-2.3.1.tar.gz 980735 BLAKE2B 39cd79a3c1a77bef730ecfadc8a9e78243e34781cc66cc068be698d18decc24e1001b21302e2069eb4cc21de41b4fd24a4e20a1e7a8e1d0a776ad02e1f215444 SHA512 3fc8386a16ec8ef3cce178465e04485b6dd2d5a4fc93099a8af5a6127ec66357ce7b12173c59b33eeaddf142d17d3e979821ab0f30087806545afe1ecfc168d3 DIST scrollz-2.3.1-patches.tar.xz 71696 BLAKE2B a0408017a23492f056bf464fb4ed9c20d59ca1f545bbd6b4f8f9b3097f82086a53b099558a18e72042126357f5f508d80a30eabb2a58368c198e2d077be3eb99 SHA512 37b035d838d215186b67621aecfe1d12869f7883d266a418227a2e768f569c2992598eaf93b4e0846c2e33d3e1325b3f0d39a285a0de4c78f4aedb190907bed5 EBUILD scrollz-2.3.1.ebuild 1402 BLAKE2B 7a473db1061a7a32b4ece94e49aac812814642f93b5d9777b3c74d645e7c4a5367e3d59588dc91eb629644da4c6c06a126013067b0b6fd8238cb03b47b23109c SHA512 0cd736b82d75e43397ecc7cc7f38b98db01ee1324dc513dbca12df6cd7ae552a1004f173622d215396fa4ba0a3a7bca2a14b77745bbd52180424cbee8e0a7fde diff --git a/net-irc/scrollz/files/scrollz-2.3-fcommon.patch b/net-irc/scrollz/files/scrollz-2.3-fcommon.patch deleted file mode 100644 index 2c0c85f0b96b..000000000000 --- a/net-irc/scrollz/files/scrollz-2.3-fcommon.patch +++ /dev/null @@ -1,17 +0,0 @@ -https://svnweb.freebsd.org/ports/head/irc/scrollz/files/patch-a8b05aab?view=markup&pathrev=545768 -https://bugs.gentoo.org/708640 ----- ---- a/include/ircterm.h -+++ b/include/ircterm.h -@@ -89,9 +89,9 @@ extern char *CM, - extern int SG; - /**************************** PATCHED by Flier ******************************/ - #ifdef WANTANSI --char *SETAF, -+extern char *SETAF, - *SETAB; --int NUMCOLORS; -+extern int NUMCOLORS; - #endif /* WANTANSI */ - /****************************************************************************/ - diff --git a/net-irc/weechat/Manifest b/net-irc/weechat/Manifest index e578bb96d498..97b6b0671c3a 100644 --- a/net-irc/weechat/Manifest +++ b/net-irc/weechat/Manifest @@ -8,15 +8,21 @@ DIST weechat-4.0.5.tar.xz 2578236 BLAKE2B 22025bb2020c3f6b5d92dcfea30cde0689e5ed DIST weechat-4.0.5.tar.xz.asc 833 BLAKE2B 9a3f71eecffc4ac9a9d56ed56a3740f81415952dbf3d5362eed6dd76e6b74dd23b69f9ce2aca3e32d8c57c2525aed273928751fa3b9937a35c9265e3143810d1 SHA512 56a94fec35ffb9612cc999bce1e9c19d2754de20205cb1eb7075e6943cdaf65f128ba8802228c53d70a11cd1b81acd3704a0005b438f356974cb3307e65876b5 DIST weechat-4.0.6.tar.xz 2578856 BLAKE2B bed2bbc13aba307059010a2933982a1afd7a426081c86d80ae8edb57f80db289377a1c1869069e53c59146bf5eb440fb1ad06d5622e107c71db014b6b93fe2d5 SHA512 1d35dd9e1cd5da499585b15369121cab2eab39b3912adb28300cf04ad6f67276f38e71dedee62f1d9aa8509f0f4615d72d2c464e4fa1a35efc886e69cb82f1ef DIST weechat-4.0.6.tar.xz.asc 833 BLAKE2B 6704558ec7bd275fd3cdba0b73b693da511e47475ded8e87e032755fccf34b7df131133fc3becbbd8577e8fb2ac456711e3a8cdb207b83ee1f4e51b34698de7c SHA512 0dcc1770ad7ec4010c549074a1b5a9b3094c7f3f3f86fa883caf76998b0b4d068e8f45dd143c4e4bd12fa1b6a0bdae11f02df60ffa2e32d9fc44bfdfa9a18159 +DIST weechat-4.0.7.tar.xz 2579408 BLAKE2B af4fabb3f331402000b1e708f5ef77a202c87cfd91efab3c4a88ce2154b1c701273e56f824d0f5c4e0cd0db0eda83f5514c25750d743a3e943f5ba8ede4a7864 SHA512 771574ec822bbe70561cd36a61a0d4fe86338ee87b3160e8bc87f078bf13b28263a796f7c589fe3b84e5479d8c0f0e2b9cd050a964edc2a1bc9fe89537cca5cf +DIST weechat-4.0.7.tar.xz.asc 833 BLAKE2B 5d21a93ba034af2dfd6ec564d4c662a9e7b5084af93971903cc4dcc271e7c39cef9e50eba459729988db9d6d9eb03598214dadae49089dfd224d087a74b68988 SHA512 46993e2360afebc72658fe1c86248f1ab5ac980b4aed6d966628d8e3d85786a4a298facba6cd5f1ceaa4c1471f7c94c5817a5cfc8cab52c2f61f401ca82ae14d DIST weechat-4.1.0.tar.xz 2634500 BLAKE2B 966569916e1274660348b0076143b8e70f6522690c1bee0c6859bd8ece43e95927f6f3737c63839275206c7a45e0401abc6efb0d4d05c3e97dc846f48dc5951e SHA512 3978e407eec176f812bc696006e40077bf7f2acc7940223fc6d72d06394133c46bc14a953a20433475a42b673db57b6bc6e5fcb4c04c90d07d46332c34b84711 DIST weechat-4.1.0.tar.xz.asc 833 BLAKE2B 93882ecfebd931ef390ec027b385bd610734b3d49a634d61e1bb4dfdbfd44b8fecadcb4d20eea0ba5e7643dedb5d29678c53249297e8f9540e033f5106c75cc6 SHA512 982ce28123721db23a22e15c1f31266f81e9e5917a0f0566b98e54dd27487550b61954ebcc2aedb257aec6a1cce9489485f540f4606d2966f18dfa13f3013568 DIST weechat-4.1.1.tar.xz 2634896 BLAKE2B 5a2d5042de0871eabf65b71e1172f891044692cf468aab6fe99f6b6b188826f9a6c227fe7140948907d0b76a5001d644e8efc8a6ac8490b961af12d777f5a29a SHA512 9d6bae5cc0c11cf3d06b0f9e457d01e76d240e8737e683a5c8a1bc89a1102b5ba75b2c59629df9433ba6a5ed42152d4390713618e646089acb7947000d9872d5 DIST weechat-4.1.1.tar.xz.asc 833 BLAKE2B 79d9e304ebea2d2c646acea505b73ec4b0e4e742b1fefe7a44d9f0f05ea2c6ad20a9d6a1468fc4c544e0239494bdec93d1a79fd19c09779845aff612e52c2e82 SHA512 178f134e5ab4948dd8dfd05532216cdc25783970775b28d2499429140f95f8b6ef522dea256d45ed1b282cbb2d0a1d88114e907a28011a3473a5a7c3e2c380af +DIST weechat-4.1.2.tar.xz 2635776 BLAKE2B cd11602b74c65ae4ed129c3604afc1eff154494ef239ead1cbcf2e9e54fba5c53b292c52b11887c48e3587dca3ab5b42073af77623087a2d185c9540368a63ab SHA512 9df8b43a7210f06cece1d28fcf8559885a0d5590b5691f63205b215417f132e4d74f4af18b572daae2679d5cf574b61538a7067e03087be10e831fee4f55e115 +DIST weechat-4.1.2.tar.xz.asc 833 BLAKE2B 94d700e074393c4bde8b68bacfe4a37d022f82bbd9697b12a1cf1e98cbb15a4295689c704ce8eaaf095ca96c4eea8c63275232a5ca6f40ab09d534fff24e76c5 SHA512 44cc5be0700b7979c85e44a1037fd467a6a920f22dc831fd3263fe6d8967eda001d09126b33adaed385c4082e33b8849cba3dbec48f4900e50e10f4da32a6edd EBUILD weechat-3.8.ebuild 4731 BLAKE2B 7da42aec3840bac9997444637baa325df303df4519e5b4d79e27f3cc6e92c3a0961959cc6d5c1f11a5fded4af1d5386716d9011459bcb20dfe821c7fd612c540 SHA512 1f5811b4144c57a9bfee6b5568c9933d262047a5cc84ba2ff89b0c5c379f332b33883171c737a22429556d0dba3bf61ce7bc1dcd8c358d74e5e82966b5133e5e EBUILD weechat-4.0.4.ebuild 4828 BLAKE2B 3853034c4e2806c6278a56358af69e5aeb7519312b7f0039db93abfa65c6cf49670deb0bae588a426caf07e35ad1efdf61cd315150166cca47ee758e0f522cbc SHA512 2fc26167376f18f174ea18fadc735dfe6a2a21730b62aa8faef211c0de017ab5d55a89bdec2afc9531ace18e706463ed8fd7109648d76c9b7380b422e31a3248 EBUILD weechat-4.0.5.ebuild 4831 BLAKE2B 0861f3997f8fbf74bc5aa2d428c859d1b9aca3a0c20f0b8b84ec2794335272726f584ba6272c696bf428e7c0e190f900aaf0288daa53bdd52047c6cb4ae6634a SHA512 ee42f06f43a5d5a236f3044ea272a11f52d8b401d11e721c41eaafb2d6c513821b548efaea35080d1bc76815d81d889b5557b45a391ad3862c9f1e4bc6b3e1cf EBUILD weechat-4.0.6.ebuild 4831 BLAKE2B 0861f3997f8fbf74bc5aa2d428c859d1b9aca3a0c20f0b8b84ec2794335272726f584ba6272c696bf428e7c0e190f900aaf0288daa53bdd52047c6cb4ae6634a SHA512 ee42f06f43a5d5a236f3044ea272a11f52d8b401d11e721c41eaafb2d6c513821b548efaea35080d1bc76815d81d889b5557b45a391ad3862c9f1e4bc6b3e1cf +EBUILD weechat-4.0.7.ebuild 4831 BLAKE2B 0861f3997f8fbf74bc5aa2d428c859d1b9aca3a0c20f0b8b84ec2794335272726f584ba6272c696bf428e7c0e190f900aaf0288daa53bdd52047c6cb4ae6634a SHA512 ee42f06f43a5d5a236f3044ea272a11f52d8b401d11e721c41eaafb2d6c513821b548efaea35080d1bc76815d81d889b5557b45a391ad3862c9f1e4bc6b3e1cf EBUILD weechat-4.1.0.ebuild 4876 BLAKE2B 406c8532b59ddc6740ed309a5afc5fcefa8736b49fdf973359a9a0632fb83332cd9a11dd9f8a0cbc9cfe46009e360addf56cc7a4835d45db55b148a693d983be SHA512 ca87103d3b939de668bb1fe132dd3a88645ef55f79067c248b0ee15875601159d6390a1812d4ca9155d1d306d88a792269116de2095f26943c2e031f2f8422e3 EBUILD weechat-4.1.1.ebuild 4876 BLAKE2B 406c8532b59ddc6740ed309a5afc5fcefa8736b49fdf973359a9a0632fb83332cd9a11dd9f8a0cbc9cfe46009e360addf56cc7a4835d45db55b148a693d983be SHA512 ca87103d3b939de668bb1fe132dd3a88645ef55f79067c248b0ee15875601159d6390a1812d4ca9155d1d306d88a792269116de2095f26943c2e031f2f8422e3 +EBUILD weechat-4.1.2.ebuild 4877 BLAKE2B 5cf14a76bc03d5c6038cdc26a067cba63596f0de09257bcae1310061522cd3128d3cd4ac27dd386c232f1d3a9ec0206ed3501c86503f1531659cb6804e59874c SHA512 2bb8b48f6a174ae0562b6b6f37cbc19d52d25fa54f75c27858fb16f712d14d78adcf2674e7e4615e6d9c20c518cb4a5eac712a1c1091b83a2c57dc0b4f3a9d58 EBUILD weechat-9999.ebuild 4877 BLAKE2B 5cf14a76bc03d5c6038cdc26a067cba63596f0de09257bcae1310061522cd3128d3cd4ac27dd386c232f1d3a9ec0206ed3501c86503f1531659cb6804e59874c SHA512 2bb8b48f6a174ae0562b6b6f37cbc19d52d25fa54f75c27858fb16f712d14d78adcf2674e7e4615e6d9c20c518cb4a5eac712a1c1091b83a2c57dc0b4f3a9d58 MISC metadata.xml 1555 BLAKE2B 02c9450e9d8cce403316631c91e211b9a70533fdb23275c5aed39683ac4e0d64e1276c3f4268dfe4b0adc49582a5d3457dd579e1419f6f98470fa784b48ff644 SHA512 ec3d7d9601d7d247af4a707e6b9cead1f7e78497daf1efad99025f7269adcf582deada141e0997398849116d44e89e62fab2d6cfee7e20ae1076799f0cae82e3 diff --git a/net-irc/weechat/weechat-4.0.7.ebuild b/net-irc/weechat/weechat-4.0.7.ebuild new file mode 100644 index 000000000000..cbf8227134ef --- /dev/null +++ b/net-irc/weechat/weechat-4.0.7.ebuild @@ -0,0 +1,186 @@ +# Copyright 1999-2023 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 ${SCRIPT_LANGS} ${PLUGINS} ${INTERFACES} ${NETWORKS}" + +REQUIRED_USE=" + enchant? ( spell ) + lua? ( ${LUA_REQUIRED_USE} ) + python? ( ${PYTHON_REQUIRED_USE} ) + test? ( nls ) +" + +RDEPEND=" + app-arch/zstd:= + 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.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= ) +" + +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) + ) + 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-4.1.2.ebuild b/net-irc/weechat/weechat-4.1.2.ebuild new file mode 100644 index 000000000000..4e2ec42c58f6 --- /dev/null +++ b/net-irc/weechat/weechat-4.1.2.ebuild @@ -0,0 +1,187 @@ +# Copyright 1999-2023 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.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 +} -- cgit v1.2.3