From nobody Tue Aug 6 09:30:27 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WdShh0PrRz5T59C; Tue, 06 Aug 2024 09:30:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WdShg6s56z4Flg; Tue, 6 Aug 2024 09:30:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722936628; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qonlC8IZVN0hv9F5Xawwji6txZY4r24pA8u6/ND90tg=; b=gStpVQQcugk361GyBuC6kZ4q2xJfufDIa9fMvkERM3A6DtQd9F2b8gqDe9O6QSuVzcZNUK 9cQErZLzw6wY135luIpixUyjoW4GL/99pJ9DgJsFRvFWFHAAOHD2zLhc3Px5ty7m8rSxUK LE6kSKH5zImW/p4V1KzGoAYZ8IFDUISR2rJpehP73XLIKHIDj3M4dO1dYc8h0V8H03My7K Io/QQfGBMUzeRw6CGENYqTeiBprDOp3DlhPGmaldIkgIX8EzzagBoX/7H3v4H2DO7f9V2u XefgRPVU3sLfEzfv+nG0tBkFlOI9es/rS3ejwLoNt40OdMl90d0FT4vKdVUN0Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722936628; a=rsa-sha256; cv=none; b=Ib+Gf8iSR+J5BT1d6qQwGuKoy7kgkIdY1gZGxB0a9goLzc1A0Frm8jh8qCNRRNJu3gExyh l+KlL+inLTK0TiF+Rx3ZR/KQGzt9pAm3SmUdGI3SSXEmo6GxKBo99yEBYCY181yms1wbLg QyKvZFDG99wJQ7cEercXqge2yziz+p/pCWaqGhs9N0gCYoxPCkJNaLVavokZR9SorFwvGI kATkCSHgviSWnNT0KNtN60yt5wtIEKKz6mP7eHkwIUTHv7GlTJgHolbADeAEX5+jXIuy6Y fLVT7/p2fWho89o30H9NOhK6Be2iFbgCqmtyGVExweqrq1P6Wx1anVl2bac14w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722936628; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qonlC8IZVN0hv9F5Xawwji6txZY4r24pA8u6/ND90tg=; b=apzxFtZmkzn4difWvwP2iMbML6NTIG+s2yhtDKSSZ+L06+2GtHSsf196FhBtojjCOUQ/vc t4nSCqxzO6CEzSLBorvbmGao6uaBYM4Kn0zyDXGEQUp7aKhC5z7y+SfF2fl6SzrWxGDQQv pMqv+wDOZbVayOptvHZTimQMtwrKklya1HsYHFr1bFmLCunUNQzq5LwdRew9WNzrJuTBfm 3wbjoIU9PbkRSozwuK5jb3ldilqANlXGbHCOA2koOnzmFTiKzgtxLklojAqPEs1bG+qqmn 07PF09tuWwM2lfpBEgyzzLx1b3V/piLYzad9W7iO8HB57Y3HJcS135TPX/SGwA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WdShg6Mh7z1257; Tue, 6 Aug 2024 09:30:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4769URWf054639; Tue, 6 Aug 2024 09:30:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4769URN4054636; Tue, 6 Aug 2024 09:30:27 GMT (envelope-from git) Date: Tue, 6 Aug 2024 09:30:27 GMT Message-Id: <202408060930.4769URN4054636@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Nicola Vitale Subject: git: 0d52169e71c1 - main - deskutils/py-trash-cli: Add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: nivit X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0d52169e71c1554cefd4a789d851f6ba8687fbe6 Auto-Submitted: auto-generated The branch main has been updated by nivit: URL: https://cgit.FreeBSD.org/ports/commit/?id=0d52169e71c1554cefd4a789d851f6ba8687fbe6 commit 0d52169e71c1554cefd4a789d851f6ba8687fbe6 Author: Nicola Vitale AuthorDate: 2024-08-06 09:28:11 +0000 Commit: Nicola Vitale CommitDate: 2024-08-06 09:29:35 +0000 deskutils/py-trash-cli: Add new port trash-cli trashes files recording the original path, deletion date, and permissions. It uses the same trashcan used by KDE, GNOME, and XFCE, but you can invoke it from the command line (and scripts). It provides these commands: trash-put trash files and directories. trash-empty empty the trashcan(s). trash-list list trashed files. trash-restore restore a trashed file. trash-rm remove individual files from the trashcan. https://github.com/andreafrancia/trash-cli --- deskutils/Makefile | 1 + deskutils/py-trash-cli/Makefile | 35 +++++++++++++++++++++++++++++++++++ deskutils/py-trash-cli/distinfo | 3 +++ deskutils/py-trash-cli/pkg-descr | 11 +++++++++++ deskutils/py-trash-cli/pkg-plist | 10 ++++++++++ 5 files changed, 60 insertions(+) diff --git a/deskutils/Makefile b/deskutils/Makefile index ae3c94d653b2..d65da652af71 100644 --- a/deskutils/Makefile +++ b/deskutils/Makefile @@ -237,6 +237,7 @@ SUBDIR += py-taskw SUBDIR += py-term-background SUBDIR += py-todoman + SUBDIR += py-trash-cli SUBDIR += py-vdirsyncer SUBDIR += py-vobject SUBDIR += py-vorta diff --git a/deskutils/py-trash-cli/Makefile b/deskutils/py-trash-cli/Makefile new file mode 100644 index 000000000000..cbe914f8f109 --- /dev/null +++ b/deskutils/py-trash-cli/Makefile @@ -0,0 +1,35 @@ +PORTNAME= trash-cli +DISTVERSION= 0.24.5.26 +CATEGORIES= deskutils python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= trash_cli-${DISTVERSION} + +MAINTAINER= nivit@FreeBSD.org +COMMENT= Command line interface to the freedesktop.org trashcan +WWW= https://github.com/andreafrancia/trash-cli + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=63.1.0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}shtab>=1.7.1:devel/py-shtab@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0.44.0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psutil>=6.0.0:sysutils/py-psutil@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}six>=1.16.0:devel/py-six@${PY_FLAVOR} + +USES= python:3.9+ +USE_PYTHON= autoplist pep517 +TRASH_CMDS= trash-empty trash-list trash-restore trash-put trash + +post-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions + @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions +. for cmd in ${TRASH_CMDS} + @${SETENV} PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} \ + ${STAGEDIR}${PREFIX}/bin/${cmd} --print-completion bash > ${STAGEDIR}${PREFIX}/share/bash-completion/completions/${cmd} + @${SETENV} PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR} \ + ${STAGEDIR}${PREFIX}/bin/${cmd} --print-completion zsh > ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_${cmd} +. endfor + +.include diff --git a/deskutils/py-trash-cli/distinfo b/deskutils/py-trash-cli/distinfo new file mode 100644 index 000000000000..c3acab241317 --- /dev/null +++ b/deskutils/py-trash-cli/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1722931541 +SHA256 (trash_cli-0.24.5.26.tar.gz) = c721628e82c4be110b710d72b9d85c9595d8b524f4da241ad851a7479d0bdceb +SIZE (trash_cli-0.24.5.26.tar.gz) = 59726 diff --git a/deskutils/py-trash-cli/pkg-descr b/deskutils/py-trash-cli/pkg-descr new file mode 100644 index 000000000000..3cb6db871ffb --- /dev/null +++ b/deskutils/py-trash-cli/pkg-descr @@ -0,0 +1,11 @@ +trash-cli trashes files recording the original path, deletion date, and +permissions. It uses the same trashcan used by KDE, GNOME, and XFCE, but you +can invoke it from the command line (and scripts). + +It provides these commands: + +trash-put trash files and directories. +trash-empty empty the trashcan(s). +trash-list list trashed files. +trash-restore restore a trashed file. +trash-rm remove individual files from the trashcan. diff --git a/deskutils/py-trash-cli/pkg-plist b/deskutils/py-trash-cli/pkg-plist new file mode 100644 index 000000000000..fa13214fbaea --- /dev/null +++ b/deskutils/py-trash-cli/pkg-plist @@ -0,0 +1,10 @@ +share/bash-completion/completions/trash +share/bash-completion/completions/trash-empty +share/bash-completion/completions/trash-list +share/bash-completion/completions/trash-put +share/bash-completion/completions/trash-restore +share/zsh/site-functions/_trash +share/zsh/site-functions/_trash-empty +share/zsh/site-functions/_trash-list +share/zsh/site-functions/_trash-put +share/zsh/site-functions/_trash-restore