diff --git a/app-text/wgetpaste/Manifest b/app-text/wgetpaste/Manifest index 1d552853b..e957693da 100644 --- a/app-text/wgetpaste/Manifest +++ b/app-text/wgetpaste/Manifest @@ -1 +1,2 @@ DIST wgetpaste-2.33.tar.xz 16408 BLAKE2B 78baebf4edb6e6340a73127099366d306359d02c0c1eab137822c56669da0609a5479940b4fb2accbc79978df091dcd34415876618e64aa556d1584f74773736 SHA512 9bf1f379316da372b4f69296b54f9a266dcf9fdaa2a8718165a2029571f4c2c0166304ffebeb2ec4657ea6f49087793f40d9da383f5da052bce0543c90ea13ab +DIST wgetpaste-2.34.tar.xz 16640 BLAKE2B 6bc71d74945b88774f866a8c1bb693d52b3d5d680a04e45ec29acfb6dd9d9de16433ed9d675db1d63705dac356e44c89d7af0e7b18a71089778bfa92833d95d3 SHA512 9f334299d0314e821d989c785aaae9e8e9c0e4972ced9330039f7e2ca1867528a2d4f090dd754ec72e8a9d7005d8f5154266cd0769627b1023d1199893cf4f8c diff --git a/app-text/wgetpaste/wgetpaste-2.34-r10.ebuild b/app-text/wgetpaste/wgetpaste-2.34-r10.ebuild new file mode 100644 index 000000000..1265de8ae --- /dev/null +++ b/app-text/wgetpaste/wgetpaste-2.34-r10.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# NOTE: This is a version of `app-text/wgetpaste-2.34::gentoo` with additional services + +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-add-paste-calculate.patch + "${FILESDIR}"/${PN}-2.33-add-paste-orgru.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 + insinto /etc/wgetpaste.d + newins "${FILESDIR}"/wgetpaste-config-services services.conf +} + +pkg_postinst() { + optfeature "ANSI (color code) stripping support" app-text/ansifilter + optfeature "xclip support" x11-misc/xclip +} diff --git a/profiles/default/package.mask b/profiles/default/package.mask index 514cff009..7ad2c5ad4 100644 --- a/profiles/default/package.mask +++ b/profiles/default/package.mask @@ -1,5 +1,5 @@ # mask portage wgetpaste ->=app-text/wgetpaste-2.34 +>=app-text/wgetpaste-2.35 # prevent automagic depends sys-libs/db:6.0