pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-black: Added ALTERNATIVES.



Module Name:	pkgsrc-wip
Committed By:	Aleksej Lebedev <root%zta.lk@localhost>
Pushed By:	zhtw
Date:		Wed Nov 6 16:36:02 2019 +0100
Changeset:	2c4768f099705e720647f7f59d2d4b4b6d30aa00

Modified Files:
	py-black/Makefile
Added Files:
	py-black/ALTERNATIVES

Log Message:
py-black: Added ALTERNATIVES.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=2c4768f099705e720647f7f59d2d4b4b6d30aa00

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-black/ALTERNATIVES | 2 ++
 py-black/Makefile     | 5 +++++
 2 files changed, 7 insertions(+)

diffs:
diff --git a/py-black/ALTERNATIVES b/py-black/ALTERNATIVES
new file mode 100644
index 0000000000..c994889dc1
--- /dev/null
+++ b/py-black/ALTERNATIVES
@@ -0,0 +1,2 @@
+bin/black @PREFIX@/bin/black-@PYVERSSUFFIX@
+bin/blackd @PREFIX@/bin/blackd-@PYVERSSUFFIX@
diff --git a/py-black/Makefile b/py-black/Makefile
index 10241f765b..b251469d58 100644
--- a/py-black/Makefile
+++ b/py-black/Makefile
@@ -24,5 +24,10 @@ DEPENDS+=	${PYPKGPREFIX}-regex:../../textproc/py-regex
 #DEPENDS+=	${PYPKGPREFIX}-aiohttp>=3.3.2:../../www/py-aiohttp
 #DEPENDS+=	${PYPKGPREFIX}-aiohttp-cors:../../www/py-aiohttp-cors # not in pkgsrc yet
 
+post-install:
+	cd ${DESTDIR}${PREFIX}/bin && for b in black blackd; \
+          do ${MV} $$b $$b-${PYVERSSUFFIX}; \
+        done
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index