Skip to content

Commit

Permalink
deskutils/py-send2trash: Convert to USE_PYTHON=pep517
Browse files Browse the repository at this point in the history
- Bump PORTREVISION for package change
  • Loading branch information
sunpoet committed Jun 5, 2023
1 parent 33bcfb1 commit e76fa7f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 5 additions & 4 deletions deskutils/py-send2trash/Makefile
@@ -1,5 +1,6 @@
PORTNAME= send2trash
PORTVERSION= 1.8.2
PORTREVISION= 1
CATEGORIES= deskutils python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand All @@ -11,12 +12,12 @@ WWW= https://github.com/arsenetar/send2trash

LICENSE= BSD3CLAUSE

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=40.6.0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}

USES= dos2unix python:3.6+
USE_PYTHON= autoplist concurrent distutils
USE_PYTHON= autoplist concurrent pep517

NO_ARCH= yes

post-patch:
@${PRINTF} "from setuptools import setup\n\nsetup()\n" > ${WRKSRC}/setup.py

.include <bsd.port.mk>
9 changes: 9 additions & 0 deletions deskutils/py-send2trash/files/patch-setup.cfg
@@ -0,0 +1,9 @@
--- setup.cfg.orig 2023-04-27 05:30:25 UTC
+++ setup.cfg
@@ -1,5 +1,5 @@
[metadata]
-name = Send2Trash
+name = send2trash
version = 1.8.2
url = https://github.com/arsenetar/send2trash
project_urls =

0 comments on commit e76fa7f

Please sign in to comment.