From nobody Fri Dec 30 10:54:12 2022 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 4Nk2FJ4ZqMz2kvxB; Fri, 30 Dec 2022 10:54:12 +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 4Nk2FJ4Bp7z3lmM; Fri, 30 Dec 2022 10:54:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672397652; 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=d9z/cRChRi20uNc76pnwNUwORM25kN0wzmAoaiFKS7A=; b=Q3jz53MYnLVkMatqJeAkFN/5Bil2kocWcSNETO513trphM0CsOphgjJj4D2Vr0ye1MiRPc yH644FIeSaQrV+tMYQsz66AK8bcNFXye1PqlBD0MxesEyiJgMTYu8zSM3dj4GAPCTxB7It 38epQrZyxrDcLANoTV3NUuVGPARSTGjNqTvkUEMyKPzETtYvGDyVNLj/S2JN4We4nPuwNr kUxsGLHKAU1rCtCNBvasll0wKrTqn3Y5zHeljfTwfF7Fyiu6ogCfDbE60oR6IRepbDr66e HADkUaTOJxUZkABH45mTokJoM6uyG7tLjuTBHZGk1lXQcaMSLfuLPoUxkxortw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672397652; 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=d9z/cRChRi20uNc76pnwNUwORM25kN0wzmAoaiFKS7A=; b=EUOKTbr35NHTTgYOptvM/h++l8AuX+iUTfs9jDlPAHRZDAvDCtivVhrf67BMTIk96Ehq72 owRaU7OJrawiTOzRkO4LqSBzZQ/MCTrOfjpYjwtNhtXL0a5uc+mO7hWkwvLafPgB+U5f2Q ZChJBp5cLL6ut3bcAyTwZLnt7lkRYVsFfeo/Rn+r+R4FdSuy6bvrkYWYXojmraXJXEpxr6 MSFffS5npyoIlmKrpV9mvcD5f4IHnC9THfxF05rUQ6CyxI8E9hPjg5tsbgKludKk+ZPn+L j3+DhiANWDvj+qKB996Mez4GaYjUWXgXKJbFNx6UAvXfQi8T01QWwHgIw51aBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672397652; a=rsa-sha256; cv=none; b=oR8iErem4zydSp2j8XlwI3fsT8HzWWAlaEeDkKXxj8LGQUsbcvvrWxZim8o5ujPYL3NVOK zUB7LXH2bU+PGz6JO/PiXTgZGiz1znrei9WxrqYAaaQqk1I4Q3qSGcbEdOCMFeoGTXt6to JinMFUpxU2dLn24rH22dChTGyiLWg675fsqTcBfd7464Kp2u9RTfCR7nPTYP64P7D7Qvtf bHbmKdJxKzZrfMrjvEdxytbbf0d5zwH2EbjzLT8h5W4SHj5zFEFocqKyEWrGUaSFoa67T2 4boVK0VdxSeEV02zxGHiu3x40oWpyTQOoHY1ofJ3Vx1gdFkNQcTCwIzHhLO0mQ== 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 4Nk2FJ3CVPz15KR; Fri, 30 Dec 2022 10:54:12 +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 2BUAsCZ6072965; Fri, 30 Dec 2022 10:54:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BUAsCWl072964; Fri, 30 Dec 2022 10:54:12 GMT (envelope-from git) Date: Fri, 30 Dec 2022 10:54:12 GMT Message-Id: <202212301054.2BUAsCWl072964@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 892b6309d13e - main - devel/py-libcst: Fix 429a0d0dc0f16ebc757a488dd143f390075bed95 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: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 892b6309d13e2c71b4328e96e566f41323e6619a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=892b6309d13e2c71b4328e96e566f41323e6619a commit 892b6309d13e2c71b4328e96e566f41323e6619a Author: Po-Chuan Hsieh AuthorDate: 2022-12-30 10:51:53 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-12-30 10:51:53 +0000 devel/py-libcst: Fix 429a0d0dc0f16ebc757a488dd143f390075bed95 - Sort BUILD_DEPENDS - Fix USES=python - Avoid using %% in Makefile - Add CONFLICTS_INSTALL - Use tab instead of space - Move CARGO_CRATES from Makefile to Makefile.crates - Strip shared library - Bump PORTREVISION for package change --- devel/py-libcst/Makefile | 131 +++++----------------------------------- devel/py-libcst/Makefile.crates | 109 +++++++++++++++++++++++++++++++++ 2 files changed, 123 insertions(+), 117 deletions(-) diff --git a/devel/py-libcst/Makefile b/devel/py-libcst/Makefile index ad09fba0f877..9da090ea2b7c 100644 --- a/devel/py-libcst/Makefile +++ b/devel/py-libcst/Makefile @@ -1,5 +1,6 @@ PORTNAME= libcst PORTVERSION= 0.4.9 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,131 +13,27 @@ WWW= https://github.com/Instagram/LibCST LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}setuptools-rust>=0:devel/py-setuptools-rust@${PY_FLAVOR} +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools-rust>=0:devel/py-setuptools-rust@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>=5.2:devel/py-yaml@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.7.4.2:devel/py-typing-extensions@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}typing-inspect>=0.4.0:devel/py-typing-inspect@${PY_FLAVOR} -USES= cargo python:3.6+ +USES= cargo python:3.7+ USE_PYTHON= autoplist concurrent distutils -PLIST_FILES= %%PYTHON_SITELIBDIR%%/libcst/native%%PYTHON_EXT_SUFFIX%%.so -BINARY_ALIAS= python3="${PYTHON_CMD}" +PLIST_FILES= ${PYTHON_SITELIBDIR}/libcst/native${PYTHON_EXT_SUFFIX}.so + +BINARY_ALIAS= python3=${PYTHON_CMD} + +CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}libcst03 CARGO_BUILD= no CARGO_INSTALL= no -CARGO_CARGOTOML= ${WRKSRC}/native/Cargo.toml -CARGO_CARGOLOCK= ${WRKSRC}/native/Cargo.lock -CARGO_TARGET_DIR= ${WRKSRC}/native -CARGO_CRATES= aho-corasick-0.7.18 \ - anes-0.1.6 \ - annotate-snippets-0.6.1 \ - atty-0.2.14 \ - autocfg-1.1.0 \ - bitflags-1.3.2 \ - bstr-0.2.17 \ - bumpalo-3.10.0 \ - cast-0.2.7 \ - cast-0.3.0 \ - cfg-if-1.0.0 \ - chic-1.2.2 \ - ciborium-0.2.0 \ - ciborium-io-0.2.0 \ - ciborium-ll-0.2.0 \ - clap-2.34.0 \ - clap-3.2.22 \ - clap_lex-0.2.4 \ - criterion-0.3.6 \ - criterion-0.4.0 \ - criterion-cycles-per-byte-0.1.2 \ - criterion-plot-0.4.4 \ - criterion-plot-0.5.0 \ - crossbeam-channel-0.5.5 \ - crossbeam-deque-0.8.1 \ - crossbeam-epoch-0.9.9 \ - crossbeam-utils-0.8.10 \ - csv-1.1.6 \ - csv-core-0.1.10 \ - difference-2.0.0 \ - either-1.6.1 \ - glob-0.3.0 \ - half-1.8.2 \ - hashbrown-0.12.3 \ - hermit-abi-0.1.19 \ - indexmap-1.9.1 \ - indoc-1.0.6 \ - instant-0.1.12 \ - itertools-0.10.5 \ - itoa-0.4.8 \ - itoa-1.0.2 \ - js-sys-0.3.58 \ - lazy_static-1.4.0 \ - libc-0.2.126 \ - lock_api-0.4.7 \ - log-0.4.17 \ - memchr-2.5.0 \ - memoffset-0.6.5 \ - num-traits-0.2.15 \ - num_cpus-1.13.1 \ - once_cell-1.16.0 \ - oorandom-11.1.3 \ - os_str_bytes-6.3.0 \ - parking_lot-0.11.2 \ - parking_lot_core-0.8.5 \ - paste-1.0.9 \ - peg-0.8.1 \ - peg-macros-0.8.1 \ - peg-runtime-0.8.1 \ - plotters-0.3.1 \ - plotters-backend-0.3.2 \ - plotters-svg-0.3.1 \ - proc-macro2-1.0.46 \ - pyo3-0.17.3 \ - pyo3-build-config-0.17.3 \ - pyo3-ffi-0.17.3 \ - pyo3-macros-0.17.3 \ - pyo3-macros-backend-0.17.3 \ - quote-1.0.21 \ - rayon-1.5.3 \ - rayon-core-1.9.3 \ - redox_syscall-0.2.13 \ - regex-1.7.0 \ - regex-automata-0.1.10 \ - regex-syntax-0.6.27 \ - rustc_version-0.4.0 \ - ryu-1.0.10 \ - same-file-1.0.6 \ - scopeguard-1.1.0 \ - semver-1.0.10 \ - serde-1.0.145 \ - serde_cbor-0.11.2 \ - serde_derive-1.0.145 \ - serde_json-1.0.81 \ - smallvec-1.8.1 \ - syn-1.0.103 \ - target-lexicon-0.12.4 \ - termcolor-1.1.3 \ - textwrap-0.11.0 \ - textwrap-0.15.1 \ - thiserror-1.0.37 \ - thiserror-impl-1.0.37 \ - tinytemplate-1.2.1 \ - toml-0.5.9 \ - trybuild-1.0.71 \ - unicode-ident-1.0.1 \ - unicode-width-0.1.9 \ - unindent-0.1.9 \ - walkdir-2.3.2 \ - wasm-bindgen-0.2.81 \ - wasm-bindgen-backend-0.2.81 \ - wasm-bindgen-macro-0.2.81 \ - wasm-bindgen-macro-support-0.2.81 \ - wasm-bindgen-shared-0.2.81 \ - web-sys-0.3.58 \ - winapi-0.3.9 \ - winapi-i686-pc-windows-gnu-0.4.0 \ - winapi-util-0.1.5 \ - winapi-x86_64-pc-windows-gnu-0.4.0 +CARGO_CARGOLOCK=${WRKSRC}/native/Cargo.lock +CARGO_CARGOTOML=${WRKSRC}/native/Cargo.toml + +post-install: + ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + .include diff --git a/devel/py-libcst/Makefile.crates b/devel/py-libcst/Makefile.crates new file mode 100644 index 000000000000..dda08cbe23ff --- /dev/null +++ b/devel/py-libcst/Makefile.crates @@ -0,0 +1,109 @@ +CARGO_CRATES= aho-corasick-0.7.18 \ + anes-0.1.6 \ + annotate-snippets-0.6.1 \ + atty-0.2.14 \ + autocfg-1.1.0 \ + bitflags-1.3.2 \ + bstr-0.2.17 \ + bumpalo-3.10.0 \ + cast-0.2.7 \ + cast-0.3.0 \ + cfg-if-1.0.0 \ + chic-1.2.2 \ + ciborium-0.2.0 \ + ciborium-io-0.2.0 \ + ciborium-ll-0.2.0 \ + clap-2.34.0 \ + clap-3.2.22 \ + clap_lex-0.2.4 \ + criterion-0.3.6 \ + criterion-0.4.0 \ + criterion-cycles-per-byte-0.1.2 \ + criterion-plot-0.4.4 \ + criterion-plot-0.5.0 \ + crossbeam-channel-0.5.5 \ + crossbeam-deque-0.8.1 \ + crossbeam-epoch-0.9.9 \ + crossbeam-utils-0.8.10 \ + csv-1.1.6 \ + csv-core-0.1.10 \ + difference-2.0.0 \ + either-1.6.1 \ + glob-0.3.0 \ + half-1.8.2 \ + hashbrown-0.12.3 \ + hermit-abi-0.1.19 \ + indexmap-1.9.1 \ + indoc-1.0.6 \ + instant-0.1.12 \ + itertools-0.10.5 \ + itoa-0.4.8 \ + itoa-1.0.2 \ + js-sys-0.3.58 \ + lazy_static-1.4.0 \ + libc-0.2.126 \ + lock_api-0.4.7 \ + log-0.4.17 \ + memchr-2.5.0 \ + memoffset-0.6.5 \ + num-traits-0.2.15 \ + num_cpus-1.13.1 \ + once_cell-1.16.0 \ + oorandom-11.1.3 \ + os_str_bytes-6.3.0 \ + parking_lot-0.11.2 \ + parking_lot_core-0.8.5 \ + paste-1.0.9 \ + peg-0.8.1 \ + peg-macros-0.8.1 \ + peg-runtime-0.8.1 \ + plotters-0.3.1 \ + plotters-backend-0.3.2 \ + plotters-svg-0.3.1 \ + proc-macro2-1.0.46 \ + pyo3-0.17.3 \ + pyo3-build-config-0.17.3 \ + pyo3-ffi-0.17.3 \ + pyo3-macros-0.17.3 \ + pyo3-macros-backend-0.17.3 \ + quote-1.0.21 \ + rayon-1.5.3 \ + rayon-core-1.9.3 \ + redox_syscall-0.2.13 \ + regex-1.7.0 \ + regex-automata-0.1.10 \ + regex-syntax-0.6.27 \ + rustc_version-0.4.0 \ + ryu-1.0.10 \ + same-file-1.0.6 \ + scopeguard-1.1.0 \ + semver-1.0.10 \ + serde-1.0.145 \ + serde_cbor-0.11.2 \ + serde_derive-1.0.145 \ + serde_json-1.0.81 \ + smallvec-1.8.1 \ + syn-1.0.103 \ + target-lexicon-0.12.4 \ + termcolor-1.1.3 \ + textwrap-0.11.0 \ + textwrap-0.15.1 \ + thiserror-1.0.37 \ + thiserror-impl-1.0.37 \ + tinytemplate-1.2.1 \ + toml-0.5.9 \ + trybuild-1.0.71 \ + unicode-ident-1.0.1 \ + unicode-width-0.1.9 \ + unindent-0.1.9 \ + walkdir-2.3.2 \ + wasm-bindgen-0.2.81 \ + wasm-bindgen-backend-0.2.81 \ + wasm-bindgen-macro-0.2.81 \ + wasm-bindgen-macro-support-0.2.81 \ + wasm-bindgen-shared-0.2.81 \ + web-sys-0.3.58 \ + winapi-0.3.9 \ + winapi-i686-pc-windows-gnu-0.4.0 \ + winapi-util-0.1.5 \ + winapi-x86_64-pc-windows-gnu-0.4.0