diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-22 07:05:54 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-22 07:05:54 +0000 |
commit | 13ec12ad28bc2ce6e2902be1d571befcca2b3f60 (patch) | |
tree | 7c606c326ffa4095258ba77370fe2cad7aff49a8 /app-text/wgetpaste | |
parent | b7819d03d7312d3d8d12b49738aa417f35f6e18a (diff) |
gentoo auto-resync : 22:11:2022 - 07:05:54
Diffstat (limited to 'app-text/wgetpaste')
-rw-r--r-- | app-text/wgetpaste/Manifest | 3 | ||||
-rw-r--r-- | app-text/wgetpaste/files/wgetpaste-2.33-tests.patch | 83 | ||||
-rw-r--r-- | app-text/wgetpaste/wgetpaste-2.33.ebuild | 38 |
3 files changed, 124 insertions, 0 deletions
diff --git a/app-text/wgetpaste/Manifest b/app-text/wgetpaste/Manifest index bf8380302add..dd2cc0c824b7 100644 --- a/app-text/wgetpaste/Manifest +++ b/app-text/wgetpaste/Manifest @@ -1,9 +1,12 @@ AUX wgetpaste-2.29-fix-bpaste.patch 1401 BLAKE2B c7a08ac708aace5fbafcd8de245213307b154c8c9f94a4f37b952b7509b7768df53459b1724b91e43bdde3ddb4cacf070d02c4a2dfdf33cbce7cff240c5ec7bc SHA512 70e9b77b5e4eef7a790973737be5c330443ae5eb4f54ac7a706e1404073a3568e0dc42eee1084ae5c4fdecff3384d22ff4666f2b0b24d6d28cf5d66ba3094612 AUX wgetpaste-2.30-fix-dpaste-escapes.patch 493 BLAKE2B db87670a90aa94a2b79844d7b1abdf349cbb600118b8a2a09def19185bc2d3460cdce36f56a09f1c51e178e7927abfe50772b75c39889bef55a284fa0312fb6e SHA512 0cec0d469327c9d6700977f36744b24d1f450bb3486058ba43c233190dd2d4bc10c52d7a90a53896596a06534d39ed929cdea1a0facb5a1bd9c97f92c986f46b +AUX wgetpaste-2.33-tests.patch 2742 BLAKE2B 3bb6c60de41ff4e428048816b093f40691de2a625e2a27a75b8db9f4e7333ab43778be704ddba01e2d5eb43a20f6ca6a83059f8bb2d04d08dc9d196901e53a17 SHA512 6d8a65215d4c1939c2f0acdd486171d37c4f1ef71b8ef6341fcf50db9cd057de1d616b3f3ac57820082d6fce1d8c75d72c8613865a0cf46df5fd3f5104716024 DIST wgetpaste-2.29.tar.bz2 12988 BLAKE2B 838b84632754f6e07c25fe3648e14bf939dff4e08ae8e8064e94008beb436f77738e4f54859115321fbf445a323641ebfecf5fd7d09bbbb46c72e913687deb07 SHA512 6596842733bb5d1d52cbb3cbcf61ba714f0cbfdc13acb4d6025ccfd27c214adaf886ac3a0a11baefaa4af3f33165619e5a3360b4e0807d29e8dc8ef5ff819bb6 DIST wgetpaste-2.30_p20210222.tar.gz 14654 BLAKE2B e74332826f7faec3c2be2dddfd5f81d1ec14aec92888f27cdcd081b59262ac742003f2f48af3c3ca25be9e02f583a37dd1bec315236ab54912ebf6cf61308a10 SHA512 467daff5531fd6361ade87913ab867f67f72d5ffc07a35c263cd3dad65774ed31b3a6b0d69d2b52726a24419758d784c23e8c587f23e9028afd0e0a27966f32f DIST wgetpaste-2.32.tar.gz 16626 BLAKE2B a8628a47edec5797f011fdf648cccf4147043bb699fe6ebfc38b66d1bbff1840147613e1de1a2abf1048b83247e9a16026bed4174be605f99e59035cf7c64f9f SHA512 57f6194c864adf3eabffe46163d1c83a5c2c30affc4c353fee5cafe6aaf19cfa306e134cb5dd216577eb34cc93eee66b28297e5a1d4fa92d78d38597170d40bb +DIST wgetpaste-2.33.tar.xz 16408 BLAKE2B 78baebf4edb6e6340a73127099366d306359d02c0c1eab137822c56669da0609a5479940b4fb2accbc79978df091dcd34415876618e64aa556d1584f74773736 SHA512 9bf1f379316da372b4f69296b54f9a266dcf9fdaa2a8718165a2029571f4c2c0166304ffebeb2ec4657ea6f49087793f40d9da383f5da052bce0543c90ea13ab EBUILD wgetpaste-2.29-r1.ebuild 671 BLAKE2B ba3ba084efc102175c50b406a609aae49e3e1e79c60fa2b5823c5b1faad21d752ed5c15e4e6bc58cfa48f2ffc45a03e6e65a3604cbb6aba422f8dcda9799fad1 SHA512 088b0db0667ca57efdcec8f7ae7b824fb39574b7e6c647e7e53921a3ac9c29f51d27701093ebf1ad9fa5c2bcf60da8577343cb28350fcc4ec9054a203ba7405b EBUILD wgetpaste-2.30_p20210222-r2.ebuild 820 BLAKE2B 37df9f540598b4ba9ca5d166e8ddd114b07df3fb7c2dc41d39a51140826cb5e266463dc88a2b9b7b3b5e38e56027b0a8b17e44e31bfabeeac8d84d9860d25562 SHA512 18b1aef8e166c7efe9ebf8c6e771676fcc2b76cd3b5a156cc42a43ad2579a00cee53e6db2fe5ffb008cd335cd25dd14813fb4ace7a1deece7567c2d9063ba3e2 EBUILD wgetpaste-2.32.ebuild 666 BLAKE2B 853dd692d095085ace1234b1fd0544ba5484d252ea275b789a858122729a2a3d0b9e73b2ee3248d199814b46f8c1815af36572564ec20b00fe47e5036807fa2b SHA512 c5daee46108d047c1e3735b5806262192f3fed77c648326b650475fc9bda951a05c3e3fdc27fc6774cd0a80d38a988d7bb66bb972c7320582950bd2046832354 +EBUILD wgetpaste-2.33.ebuild 797 BLAKE2B b31a92de8786af558422fd192bd4a0f591f4e00c2adeef9f40b38b74192e47c9153c6e9b02e091c00889017f138cb7264f8d8fe8066520f3cfcb03bf12ac7ac4 SHA512 ad23eb0e572d4a0fe75f9fffacdb688eb047ef871584919c7f729576e4cc2cd21b9c97f18a1885ddeff72765b2ebfdf68047330902b4c5931616c31ee90baa31 MISC metadata.xml 413 BLAKE2B 27007fc1248d4b48b235b5993b729fb05b4ae58719f5b70ccc7e56837835bc047a4f251101dfe2a87139bbad1a8b63018d98bb2ee4fe9e8adece5174a6c35a38 SHA512 b05aad11ff98e78954b4a731144bcc64959ca18a01c64a1f407af75c33124b82a654ccd1b84c4fa880598307127e90b78a3e83936bce1cf53ccf5855ebea92f9 diff --git a/app-text/wgetpaste/files/wgetpaste-2.33-tests.patch b/app-text/wgetpaste/files/wgetpaste-2.33-tests.patch new file mode 100644 index 000000000000..41d0bece7962 --- /dev/null +++ b/app-text/wgetpaste/files/wgetpaste-2.33-tests.patch @@ -0,0 +1,83 @@ +https://github.com/zlin/wgetpaste/pull/38 + +From 3470bbe651c2264a7f985f3b86f67a6ff6d0c587 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Tue, 22 Nov 2022 01:29:16 +0000 +Subject: [PATCH 1/3] test: respect TMPDIR in mktemp (pass --tmpdir) + +Signed-off-by: Sam James <sam@gentoo.org> +--- a/test/test.sh ++++ b/test/test.sh +@@ -7,7 +7,7 @@ + # Don't assume the test is being run from the same directory as the script + TEST_DIR="$(dirname "$0")" + TEST_FILE="$TEST_DIR/test.txt" +-DL_DIR="$(mktemp -q -d /tmp/wgetpaste_test.XXXXX)" ++DL_DIR="$(mktemp -q --tmpdir -d wgetpaste_test.XXXXX)" + # Services to hard skip + # Pre-declare as map to maintain type even if empty + # key -> value := service -> reason +--- a/test/test_ansi.sh ++++ b/test/test_ansi.sh +@@ -9,7 +9,7 @@ + TEST_DIR="$(dirname "$0")" + ANSI_FILE="$TEST_DIR/red.txt" + NOANSI_FILE="$TEST_DIR/red_no_ansi.txt" +-DL_DIR="$(mktemp -q -d /tmp/wgetpaste_test_ansi.XXXXX)" ++DL_DIR="$(mktemp -q --tmpdir -d wgetpaste_test_ansi.XXXXX)" + # Services to hard skip + # Pre-declare as map to maintain type even if empty + # key -> value := service -> reason + +From 0c3cc1a5286c95a5bcd6408035f6c230350c1565 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Tue, 22 Nov 2022 01:29:40 +0000 +Subject: [PATCH 2/3] test: use portable bash shebang + +Signed-off-by: Sam James <sam@gentoo.org> +--- a/test/test.sh ++++ b/test/test.sh +@@ -1,4 +1,4 @@ +-#! /bin/bash ++#!/usr/bin/env bash + + # wgetpaste test script + # Exit code: number of mismatched downloads or 1 for general failure +--- a/test/test_ansi.sh ++++ b/test/test_ansi.sh +@@ -1,4 +1,4 @@ +-#! /bin/bash ++#!/usr/bin/env bash + + # wgetpaste test script (stripping ANSI codes) + # Based on test/test.sh + +From 8d1cf7a8d0ce9ff21a8e1dc66169b04e4f8fc852 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Tue, 22 Nov 2022 01:29:55 +0000 +Subject: [PATCH 3/3] test: normalise copyright header + +Signed-off-by: Sam James <sam@gentoo.org> +--- a/test/test.sh ++++ b/test/test.sh +@@ -2,7 +2,7 @@ + + # wgetpaste test script + # Exit code: number of mismatched downloads or 1 for general failure +-# Copyright (C) 2021 xxc3nsoredxx ++# Copyright (C) 2022 Oskari Pirhonen <xxc3ncoredxx@gmail.com> + + # Don't assume the test is being run from the same directory as the script + TEST_DIR="$(dirname "$0")" +--- a/test/test_ansi.sh ++++ b/test/test_ansi.sh +@@ -3,7 +3,7 @@ + # wgetpaste test script (stripping ANSI codes) + # Based on test/test.sh + # Exit code: number of mismatched downloads or 1 for general failure +-# Copyright (C) 2022 Oskari Pirhonen <xxc3ncoredxx@gmail.com> ++# Copyright (C) 2022 Oskari Pirhonen <xxc3ncoredxx@gmail.com> + + # Don't assume the test is being run from the same directory as the script + TEST_DIR="$(dirname "$0")" + diff --git a/app-text/wgetpaste/wgetpaste-2.33.ebuild b/app-text/wgetpaste/wgetpaste-2.33.ebuild new file mode 100644 index 000000000000..f6662506f9ae --- /dev/null +++ b/app-text/wgetpaste/wgetpaste-2.33.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Command-line interface to various pastebins" +HOMEPAGE="https://wgetpaste.zlin.dk/" +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 ~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 +) + +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 +} |