From nobody Wed Aug 24 15:00:08 2022 X-Original-To: dev-commits-ports-all@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 4MCTm86pzhz4bLs4; Wed, 24 Aug 2022 15:00:08 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MCTm86BqDz42cT; Wed, 24 Aug 2022 15:00:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661353208; 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=ejkHfAFxyBbUoJY9jpdFOppbGofjtNWuZ0EAhDEstiI=; b=fbq6ZYKAbBEwuN+pxKRzttPscOMbSXduvaj7ZjfA/tPQOb2pSDLXGsZ/n6l4bc7P5PX099 SJSnE9MCvJJ/8k1s7W7uT05O53MXmf5Jw/HIUyk4N6Zlht6VQsy1CvSeBT0x7dtKU+bCyk tedlG9gp1YjWe0Th16hBqoFeRJmwPOrJmK3S0u/r9QpKw/+XCekuwKk1yrhWSJAZxD+1eF /t/Uv9kx5haXlBlHgLxK7CBbvu0Kpv05+GtIja6tp6LPvd1p3oVIx0C/3z4369X6XknFGL xJUOhJQzxc39afGsVbaK8SA/qdKwUzWcqRK4ItwTaDyKKusHtrJYYjGBADOOGQ== 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 4MCTm857phz1CHk; Wed, 24 Aug 2022 15:00:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 27OF08dl091688; Wed, 24 Aug 2022 15:00:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27OF08bv091680; Wed, 24 Aug 2022 15:00:08 GMT (envelope-from git) Date: Wed, 24 Aug 2022 15:00:08 GMT Message-Id: <202208241500.27OF08bv091680@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jimmy Olgeni Subject: git: 213314f0c381 - main - devel/pyenv: add port. List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: olgeni X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 213314f0c381f828c8efbc82dda64a7abe311efa Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661353208; 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=ejkHfAFxyBbUoJY9jpdFOppbGofjtNWuZ0EAhDEstiI=; b=W4do9b69v1NZN+8NvKa951S42+kLj7BoOIFKLJHRP5uR81sOoJU2UHTermdqq3jXLaNqR7 n2hNmjI94XSqfr/uT4r/mvzp0McdreVA8MdzsQI5eEhbIUV/4NuF2vAl8oJWdbuCZDihvQ tnTTYq/FDk0iV8nGgHjRKt61tYnVPfHTt77HloY3eAwnoJFZojvfiLbwNx4ne2yKA5/TQm 7LzS0z+AztMtDsJujZXMKfMSTbptuTG6wAbV/+6VeqcprsPphxbth8rMwzTonSJVm3jE8W vGmX829sxQnflJgrB8ugSBqiZe6tQkkv+zvp2DPR3COds2HcYWWCNPCOioU5Lw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661353208; a=rsa-sha256; cv=none; b=bIXTpMx4wmBfGHTU1V+D1gLPTcgyHBRCPiQmfkXE2t8Moj7URLnGURkkAmNE6VSU47AguC I8+jBcDLxSiF53N6UiUlha5GA5gRTf5t7mB5Jb4zODYYyY6HleVu34bm5/WAv78UfCmyks Qw5G0i59vs30yzgZ9BV4J12F48gUG7h8l+mSbCdcMVNIFYy4wsM0s0qBnAiwCzx0sjOZj6 oZ/O0UwKekSFxZJidiZ0BN/Q700O7WOzigbEoblbwFIce/Psye0tu7oaL+9f7uZEnpIvF1 PD9wvH8MeejbCFk3wAiA/1wZ7GkgI5/T1HVAFHe4sl4XH3w+DJZqa+N+VwplIQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by olgeni: URL: https://cgit.FreeBSD.org/ports/commit/?id=213314f0c381f828c8efbc82dda64a7abe311efa commit 213314f0c381f828c8efbc82dda64a7abe311efa Author: Jimmy Olgeni AuthorDate: 2022-08-24 14:53:32 +0000 Commit: Jimmy Olgeni CommitDate: 2022-08-24 14:58:41 +0000 devel/pyenv: add port. pyenv lets you easily switch between multiple versions of Python. Port structure is the same as devel/rbenv, as pyenv is actually derived from rbenv. --- devel/Makefile | 1 + devel/pyenv/Makefile | 45 ++ devel/pyenv/distinfo | 3 + devel/pyenv/files/patch-libexec_pyenv | 11 + devel/pyenv/pkg-descr | 9 + devel/pyenv/pkg-message | 10 + devel/pyenv/pkg-plist | 883 ++++++++++++++++++++++++++++++++++ 7 files changed, 962 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 0f15a40d7ac6..4b1da483e81c 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5572,6 +5572,7 @@ SUBDIR += pycount SUBDIR += pydbus-common SUBDIR += pydio-packr + SUBDIR += pyenv SUBDIR += pygobject3-common SUBDIR += pylint SUBDIR += pyobfuscate diff --git a/devel/pyenv/Makefile b/devel/pyenv/Makefile new file mode 100644 index 000000000000..81b3ba76ee05 --- /dev/null +++ b/devel/pyenv/Makefile @@ -0,0 +1,45 @@ +PORTNAME= pyenv +PORTVERSION= 2.3.3 +DISTVERSIONPREFIX= v +CATEGORIES= devel python + +MAINTAINER= olgeni@FreeBSD.org +COMMENT= Manage multiple versions of Python + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= bash:shells/bash + +USES= cpe shebangfix + +USE_GITHUB= yes + +NO_BUILD= yes + +REINPLACE_ARGS= -i '' + +CPE_VENDOR= pyenv_project + +SHEBANG_FILES= plugins/python-build/scripts/add_miniconda.py + +post-patch: + @${REINPLACE_CMD} -e "s|\$${root}/completions|${DATADIR}/completions|g" \ + ${WRKSRC}/libexec/pyenv-init + +do-install: + CC="${CC}" ${WRKSRC}/src/${CONFIGURE_CMD} + ${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C ${WRKSRC}/src + ( ${INSTALL_SCRIPT} ${WRKSRC}/libexec/* ${STAGEDIR}${PREFIX}/libexec/ ) + @${LN} -sf ../libexec/pyenv ${STAGEDIR}${PREFIX}/bin/pyenv + @${MKDIR} ${STAGEDIR}${DATADIR}/completions + ( cd ${WRKSRC}/completions && ${COPYTREE_BIN} . ${STAGEDIR}${DATADIR}/completions ) + @${MKDIR} ${STAGEDIR}${PREFIX}/etc/pyenv.d + ( cd ${WRKSRC}/pyenv.d && ${COPYTREE_BIN} . ${STAGEDIR}${PREFIX}/etc/pyenv.d ) + @${MKDIR} ${STAGEDIR}${PREFIX}/libexec/pyenv-plugins + ( cd ${WRKSRC}/plugins && ${COPYTREE_BIN} . ${STAGEDIR}${PREFIX}/libexec/pyenv-plugins ) + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/pyenv-realpath.dylib + +.include diff --git a/devel/pyenv/distinfo b/devel/pyenv/distinfo new file mode 100644 index 000000000000..a10653fdf6cc --- /dev/null +++ b/devel/pyenv/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1661344117 +SHA256 (pyenv-pyenv-v2.3.3_GH0.tar.gz) = 2a6093c922d2a420b5ae45143ab973b0a85ee486c408cb487188b64edadfab35 +SIZE (pyenv-pyenv-v2.3.3_GH0.tar.gz) = 713202 diff --git a/devel/pyenv/files/patch-libexec_pyenv b/devel/pyenv/files/patch-libexec_pyenv new file mode 100644 index 000000000000..bb1203781445 --- /dev/null +++ b/devel/pyenv/files/patch-libexec_pyenv @@ -0,0 +1,11 @@ +--- libexec/pyenv.orig 2022-08-24 14:27:14 UTC ++++ libexec/pyenv +@@ -77,7 +77,7 @@ export PYENV_DIR + shopt -s nullglob + + bin_path="$(abs_dirname "$0")" +-for plugin_bin in "${bin_path%/*}"/plugins/*/bin; do ++for plugin_bin in "${bin_path%/*}"/libexec/pyenv-plugins/*/bin; do + PATH="${plugin_bin}:${PATH}" + done + # PYENV_ROOT can be set to anything, so it may happen to be equal to the base path above, diff --git a/devel/pyenv/pkg-descr b/devel/pyenv/pkg-descr new file mode 100644 index 000000000000..b78e187bae85 --- /dev/null +++ b/devel/pyenv/pkg-descr @@ -0,0 +1,9 @@ +pyenv lets you easily switch between multiple versions of Python. + +It's simple, unobtrusive, and follows the UNIX tradition of +single-purpose tools that do one thing well. + +This project was forked from rbenv and ruby-build, and modified for +Python. + +WWW: https://github.com/pyenv/pyenv diff --git a/devel/pyenv/pkg-message b/devel/pyenv/pkg-message new file mode 100644 index 000000000000..be490e1fdc6e --- /dev/null +++ b/devel/pyenv/pkg-message @@ -0,0 +1,10 @@ +[ +{ type: install + message: <