pkgsrc-WIP-changes archive

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

py-jupyter-console: Rename to versioned command name



Module Name:	pkgsrc-wip
Committed By:	Ryo ONODERA <ryoon%NetBSD.org@localhost>
Pushed By:	ryoon
Date:		Thu Dec 10 20:49:22 2020 +0900
Changeset:	c24df549ccc3e8d158152d59bd111e8f71e36181

Modified Files:
	py-jupyter-console/Makefile
	py-jupyter-console/PLIST
Added Files:
	py-jupyter-console/ALTERNATIVES

Log Message:
py-jupyter-console: Rename to versioned command name

And add a trailing slash to HOMEPAGE.

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

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

diffstat:
 py-jupyter-console/ALTERNATIVES | 1 +
 py-jupyter-console/Makefile     | 8 +++++++-
 py-jupyter-console/PLIST        | 2 +-
 3 files changed, 9 insertions(+), 2 deletions(-)

diffs:
diff --git a/py-jupyter-console/ALTERNATIVES b/py-jupyter-console/ALTERNATIVES
new file mode 100644
index 0000000000..3016b15764
--- /dev/null
+++ b/py-jupyter-console/ALTERNATIVES
@@ -0,0 +1 @@
+bin/jupyter-console @PREFIX@/bin/jupyter-console-@PYVERSSUFFIX@
diff --git a/py-jupyter-console/Makefile b/py-jupyter-console/Makefile
index 0627eacb0a..7e088c055c 100644
--- a/py-jupyter-console/Makefile
+++ b/py-jupyter-console/Makefile
@@ -6,7 +6,7 @@ CATEGORIES=	devel python
 MASTER_SITES=	${MASTER_SITE_PYPI:=j/jupyter_console/}
 
 MAINTAINER=	kamelderouiche%yahoo.com@localhost
-HOMEPAGE=	https://jupyter.org
+HOMEPAGE=	https://jupyter.org/
 COMMENT=	Jupyter terminal console
 LICENSE=	modified-bsd
 
@@ -18,5 +18,11 @@ DEPENDS+=	${PYPKGPREFIX}-pygments>=2.3.1:../../textproc/py-pygments
 
 USE_LANGUAGES=	# none
 
+post-install:
+.for name in console
+	cd ${DESTDIR}${PREFIX}/bin && \
+	${MV} jupyter-${name} jupyter-${name}-${PYVERSSUFFIX} || ${TRUE}
+.endfor
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/py-jupyter-console/PLIST b/py-jupyter-console/PLIST
index 6d4f564431..8be2665a32 100644
--- a/py-jupyter-console/PLIST
+++ b/py-jupyter-console/PLIST
@@ -1,5 +1,5 @@
 @comment $NetBSD$
-bin/jupyter-console
+bin/jupyter-console-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt


Home | Main Index | Thread Index | Old Index