From 9990da9e2db6d5094701a2f4035e781826eff014 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 11 Nov 2023 16:37:57 +0000 Subject: gentoo auto-resync : 11:11:2023 - 16:37:57 --- app-text/Manifest.gz | Bin 48932 -> 48934 bytes app-text/wgetpaste/Manifest | 3 +- .../files/wgetpaste-2.33-added-quiet-flag.patch | 61 ++++++++++++++++++++ app-text/wgetpaste/wgetpaste-2.33-r3.ebuild | 62 -------------------- app-text/wgetpaste/wgetpaste-2.33-r4.ebuild | 63 +++++++++++++++++++++ 5 files changed, 126 insertions(+), 63 deletions(-) create mode 100644 app-text/wgetpaste/files/wgetpaste-2.33-added-quiet-flag.patch delete mode 100644 app-text/wgetpaste/wgetpaste-2.33-r3.ebuild create mode 100644 app-text/wgetpaste/wgetpaste-2.33-r4.ebuild (limited to 'app-text') diff --git a/app-text/Manifest.gz b/app-text/Manifest.gz index b7d47fd59dc7..90a935b0d140 100644 Binary files a/app-text/Manifest.gz and b/app-text/Manifest.gz differ diff --git a/app-text/wgetpaste/Manifest b/app-text/wgetpaste/Manifest index 8ac0bcf58953..6f7859c245ee 100644 --- a/app-text/wgetpaste/Manifest +++ b/app-text/wgetpaste/Manifest @@ -1,6 +1,7 @@ AUX wgetpaste-2.33-add-paste-gentoo-zip.patch 2202 BLAKE2B d0b487cc92a834250b422a9524378a7f35f2e32349a6394056e77bcb5bb01ae8d6d5097107c7a7fa6f705351c3529fadad20cb99284f5a03455d2cd2bac8ee4f SHA512 eab6567657189ad5c5abae65c410de47da613099c652f5311511f13e9dc515825f17d5ff5e9a3eef58ac24a36841e61a10b8a2a8c5a68c9456cca81707db7ca7 +AUX wgetpaste-2.33-added-quiet-flag.patch 2030 BLAKE2B c5bf1f3ddfb14209402c730c69889f32c45405b8f8b2cbda85f1c3b9e40507f902cae419e4a6598d268a32532afc0b516468b81196bae8244d626f50d87ebb2f SHA512 1f48b09a31a24c1df6b20afb38617fd463ed72d52ae9f5b71aea9156b8dbe4896a4a1f31267b99cf300861ed07dbe4b7fb0f08d939d3e27c2dfbea9a872f2217 AUX wgetpaste-2.33-disable-sprunge.patch 790 BLAKE2B 9cd8c336072d7e2bff27a54d904ffa88331905dd8fe5a6a5d11c84c8fefc663bf24a481149bee8ff25f3d4140a81e6de5686ae97ffe545e77c52a2ea1c69d128 SHA512 179d3e38033d3f845c348c9a46fb40368c729fe721cc78580ed7b16ad507ead19595609998722c13423fdec6a1c9f2221fae34994840120f2ab2cdda65145d13 AUX wgetpaste-2.33-tests.patch 2742 BLAKE2B 3bb6c60de41ff4e428048816b093f40691de2a625e2a27a75b8db9f4e7333ab43778be704ddba01e2d5eb43a20f6ca6a83059f8bb2d04d08dc9d196901e53a17 SHA512 6d8a65215d4c1939c2f0acdd486171d37c4f1ef71b8ef6341fcf50db9cd057de1d616b3f3ac57820082d6fce1d8c75d72c8613865a0cf46df5fd3f5104716024 DIST wgetpaste-2.33.tar.xz 16408 BLAKE2B 78baebf4edb6e6340a73127099366d306359d02c0c1eab137822c56669da0609a5479940b4fb2accbc79978df091dcd34415876618e64aa556d1584f74773736 SHA512 9bf1f379316da372b4f69296b54f9a266dcf9fdaa2a8718165a2029571f4c2c0166304ffebeb2ec4657ea6f49087793f40d9da383f5da052bce0543c90ea13ab -EBUILD wgetpaste-2.33-r3.ebuild 1442 BLAKE2B 4ba780c9c4dbbcd9c958c73b473a9eac89cd29e8b4a580a5888194c6aa58cb9fd1b5e4bd68c6c97f761b80a6f7325ffb1077f08e19ce4fd1b915af162d214917 SHA512 d9326673ce2332da4577d35432ce1b1b1ffbff30607818fbdcf554c0f9af8577317211ea840ca16b7726c1302f4ebdd0bc15f92231193419d28845dba398ec66 +EBUILD wgetpaste-2.33-r4.ebuild 1491 BLAKE2B aea885091777d8208c51bb559afc3ef0ab6d6790d56904f79f996ffcc58487daab0ed3eda759f1a3fceaf6d77b4fe30f6b55a88b38664e3fecd25f11e30cde92 SHA512 b0eadc4b0570c8602a177204688e98da8a8722f351212a50fc33ad0adf3e81f61fc0428cb5cad41442cf672a482e537207c9d67e0d3de6e7751b17edf39b8b10 MISC metadata.xml 566 BLAKE2B 1f63219976e414e688b0e8b5d0ce84dc4480af3e59ebbbe550d26ca5973ac22148b87d1b43304bbbfbcaba1731d14a6f7639b7352e2b77d1141f8dee6875d2ce SHA512 779b873177a5b294e6a140d8d658980469b50cdb1c65f6c4a387e8af82f996f109ed14ae208f8603cdfc80ac0f9f0a50ad00202e92c0f5c6aaea13d01ecf8862 diff --git a/app-text/wgetpaste/files/wgetpaste-2.33-added-quiet-flag.patch b/app-text/wgetpaste/files/wgetpaste-2.33-added-quiet-flag.patch new file mode 100644 index 000000000000..f8bac315d2f2 --- /dev/null +++ b/app-text/wgetpaste/files/wgetpaste-2.33-added-quiet-flag.patch @@ -0,0 +1,61 @@ +From 75e68f79adaae7f50920e84a748b7ebb4a3a8a1d Mon Sep 17 00:00:00 2001 +From: Richard-Rogalski +Date: Mon, 6 Nov 2023 14:00:02 -0600 +Subject: [PATCH] Added --quiet flag + +Signed-off-by: Richard Rogalski +Closes: #19 +--- +See also: https://github.com/zlin/wgetpaste/pull/51 +- Oskari + + _wgetpaste | 1 + + wgetpaste | 6 +++++- + 2 files changed, 6 insertions(+), 1 deletion(-) + +diff --git a/_wgetpaste b/_wgetpaste +index c4703e5..63696ad 100644 +--- a/_wgetpaste ++++ b/_wgetpaste +@@ -50,6 +50,7 @@ _arguments -s : \ + '(--xclippaste -C)'{--xclippaste,-C}'[write resulting url to the X clipboard selection buffer]' \ + '(--raw -r)'{--raw,-r}'[show url for the raw paste]' \ + '(--tee -t)'{--tee,-t}'[use tee to show what is being pasted]' \ ++ '(--quiet -q)'{--quiet,-q}'[show the url only]' \ + '(--verbose -v)'{--verbose,-v}'[show wget stderr output if no url is received]' \ + '--debug[be very verbose]' \ + '(--help -h)'{--help,-h}'[show help and exit]' \ +diff --git a/wgetpaste b/wgetpaste +index fc0b559..d016515 100755 +--- a/wgetpaste ++++ b/wgetpaste +@@ -559,6 +559,7 @@ Options: + + -r, --raw show url for the raw paste (no syntax highlighting or html) + -t, --tee use tee to show what is being pasted ++ -q, --quiet show the url only + -v, --verbose show wget stderr output if no url is received + --completions emit output suitable for shell completions (only affects --list-*) + --debug be *very* verbose (implies -v) +@@ -657,7 +658,7 @@ showexpirations() { + } + + showurl() { +- echo -n "Your ${2}paste can be seen here: " >&2 ++ [[ $QUIET ]] || echo -n "Your ${2}paste can be seen here: " >&2 + echo "$1" + [[ $XPASTE ]] && x_paste "$1" primary + [[ $XCLIPPASTE ]] && x_paste "$1" clipboard +@@ -809,6 +810,9 @@ while [[ -n $1 ]]; do + -N | --no-ansi ) + NOANSI=0 + ;; ++ -q | --quiet) ++ QUIET=0 ++ ;; + -r | --raw ) + RAW=0 + ;; +-- +2.41.0 + diff --git a/app-text/wgetpaste/wgetpaste-2.33-r3.ebuild b/app-text/wgetpaste/wgetpaste-2.33-r3.ebuild deleted file mode 100644 index 89f63061351c..000000000000 --- a/app-text/wgetpaste/wgetpaste-2.33-r3.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit optfeature - -DESCRIPTION="Command-line interface to various pastebins" -HOMEPAGE="https://github.com/zlin/wgetpaste" -SRC_URI="https://github.com/zlin/wgetpaste/releases/download/${PV}/${P}.tar.xz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos" -IUSE="+ssl" - -PROPERTIES="test_network" -RESTRICT="test" - -RDEPEND="net-misc/wget[ssl?]" - -PATCHES=( - "${FILESDIR}"/${PN}-2.33-tests.patch - "${FILESDIR}"/${PN}-2.33-disable-sprunge.patch - "${FILESDIR}"/${PN}-2.33-add-paste-gentoo-zip.patch -) - -src_prepare() { - default - - sed -i -e "s:/etc:\"${EPREFIX}\"/etc:g" wgetpaste || die -} - -src_test() { - test/test.sh || die -} - -src_install() { - dobin ${PN} - insinto /usr/share/zsh/site-functions - doins _wgetpaste -} - -pkg_postinst() { - optfeature "ANSI (color code) stripping support" app-text/ansifilter - optfeature "xclip support" x11-misc/xclip - - if [[ -n ${REPLACING_VERSIONS} ]]; then - local old - - for old in ${REPLACING_VERSIONS}; do - if ver_test ${old} -lt '2.33-r2'; then - ewarn - ewarn "Sprunge is dead and the service has been dropped from the code. Remove or" - ewarn "replace sprunge as the default service in the system or user wgetpaste" - ewarn "config if applicable." - ewarn - break - fi - done - fi -} diff --git a/app-text/wgetpaste/wgetpaste-2.33-r4.ebuild b/app-text/wgetpaste/wgetpaste-2.33-r4.ebuild new file mode 100644 index 000000000000..4a7f3ee27a86 --- /dev/null +++ b/app-text/wgetpaste/wgetpaste-2.33-r4.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit optfeature + +DESCRIPTION="Command-line interface to various pastebins" +HOMEPAGE="https://github.com/zlin/wgetpaste" +SRC_URI="https://github.com/zlin/wgetpaste/releases/download/${PV}/${P}.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="+ssl" + +PROPERTIES="test_network" +RESTRICT="test" + +RDEPEND="net-misc/wget[ssl?]" + +PATCHES=( + "${FILESDIR}"/${PN}-2.33-tests.patch + "${FILESDIR}"/${PN}-2.33-disable-sprunge.patch + "${FILESDIR}"/${PN}-2.33-add-paste-gentoo-zip.patch + "${FILESDIR}"/${PN}-2.33-added-quiet-flag.patch +) + +src_prepare() { + default + + sed -i -e "s:/etc:\"${EPREFIX}\"/etc:g" wgetpaste || die +} + +src_test() { + test/test.sh || die +} + +src_install() { + dobin ${PN} + insinto /usr/share/zsh/site-functions + doins _wgetpaste +} + +pkg_postinst() { + optfeature "ANSI (color code) stripping support" app-text/ansifilter + optfeature "xclip support" x11-misc/xclip + + if [[ -n ${REPLACING_VERSIONS} ]]; then + local old + + for old in ${REPLACING_VERSIONS}; do + if ver_test ${old} -lt '2.33-r2'; then + ewarn + ewarn "Sprunge is dead and the service has been dropped from the code. Remove or" + ewarn "replace sprunge as the default service in the system or user wgetpaste" + ewarn "config if applicable." + ewarn + break + fi + done + fi +} -- cgit v1.2.3