From a9116f73d7800b55eba52dfe8b104a3f846efd87 Mon Sep 17 00:00:00 2001 From: blshkv Date: Sat, 9 Jan 2021 11:55:25 +0800 Subject: [PATCH] libsast-1.3.6.ebuild with deps --- dev-python/libsast/Manifest | 1 + dev-python/libsast/libsast-1.3.1.ebuild | 6 ++-- dev-python/libsast/libsast-1.3.6.ebuild | 28 +++++++++++++++++++ dev-python/semgrep/semgrep-0.28.0-r1.ebuild | 4 +-- dev-python/semgrep/semgrep-0.36.0.ebuild | 6 ++-- .../semgrep-core-bin-0.36.0.ebuild | 5 ++-- 6 files changed, 39 insertions(+), 11 deletions(-) create mode 100644 dev-python/libsast/libsast-1.3.6.ebuild diff --git a/dev-python/libsast/Manifest b/dev-python/libsast/Manifest index e8681ebef..b86ba18a4 100644 --- a/dev-python/libsast/Manifest +++ b/dev-python/libsast/Manifest @@ -1 +1,2 @@ DIST libsast-1.3.1.tar.gz 35053 BLAKE2B db862bc4536ca4cb84ab80859ed19dfbe0e666d17c5d477ba3d9bb18005fb3b717a33295131fde69de8388cc305765e4accd9a5d4160050bd820c6f669a53802 SHA512 3cf70b4314c2ddd093848eb5d9ab3d570d47ae39f3806906ed17119ba5a30c9e4b329e1744aabe5f94a94e86e168b06b79933ae6282e72d2f61b23faeaac5980 +DIST libsast-1.3.6.tar.gz 34461 BLAKE2B e328bf6b427c3f86e9251c0806faedf508f64b46ea138d609e068d748febda35d7d22ff15c6b5fdd7ae60b9675281b3779f3e523a317223455616bf696a1aeef SHA512 4f3b4d34fcaf1b7e91bef5e95b1201fb800d091c3b6d2610429eb0bf902cc1de4a483d018ae0413bd3f23b11bdda188a342312b654b2e300c6ef08a6e23f6662 diff --git a/dev-python/libsast/libsast-1.3.1.ebuild b/dev-python/libsast/libsast-1.3.1.ebuild index cfea29c45..079d59d53 100644 --- a/dev-python/libsast/libsast-1.3.1.ebuild +++ b/dev-python/libsast/libsast-1.3.1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_COMPAT=( python3_{7..9} ) inherit distutils-r1 @@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" LICENSE="" SLOT="0" -KEYWORDS="amd64 x86" +KEYWORDS="amd64" IUSE="test" RDEPEND=">=dev-python/requests-2.22.0[${PYTHON_USEDEP}] diff --git a/dev-python/libsast/libsast-1.3.6.ebuild b/dev-python/libsast/libsast-1.3.6.ebuild new file mode 100644 index 000000000..3e82f5659 --- /dev/null +++ b/dev-python/libsast/libsast-1.3.6.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{7..9} ) + +inherit distutils-r1 + +DESCRIPTION="A generic SAST core built on top of semgrep and regex" +HOMEPAGE="https://github.com/ajinabraham/libsast/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="" +SLOT="0" +KEYWORDS="amd64" +IUSE="test" + +RDEPEND=">=dev-python/requests-2.22.0[${PYTHON_USEDEP}] + >=dev-python/pyyaml-5.3[${PYTHON_USEDEP}] + >=dev-python/semgrep-0.35.0[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND}" + +src_prepare(){ + sed -i "s|semgrep==|semgrep>=|g" setup.py + eapply_user +} diff --git a/dev-python/semgrep/semgrep-0.28.0-r1.ebuild b/dev-python/semgrep/semgrep-0.28.0-r1.ebuild index 59507b019..f407dbefa 100644 --- a/dev-python/semgrep/semgrep-0.28.0-r1.ebuild +++ b/dev-python/semgrep/semgrep-0.28.0-r1.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 DISTUTILS_USE_SETUPTOOLS=rdepend -PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_COMPAT=( python3_{7..9} ) inherit distutils-r1 diff --git a/dev-python/semgrep/semgrep-0.36.0.ebuild b/dev-python/semgrep/semgrep-0.36.0.ebuild index 015fecc21..921d99c81 100644 --- a/dev-python/semgrep/semgrep-0.36.0.ebuild +++ b/dev-python/semgrep/semgrep-0.36.0.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 DISTUTILS_USE_SETUPTOOLS=rdepend -PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_COMPAT=( python3_{7..9} ) inherit distutils-r1 @@ -13,7 +13,7 @@ HOMEPAGE="https://github.com/returntocorp/semgrep" SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" LICENSE="LGPL-2" SLOT="0" -KEYWORDS="amd64 x86" +KEYWORDS="amd64" # exact version of ruamel.yaml because of unstable API RDEPEND=">=dev-python/attrs-19.3.0[${PYTHON_USEDEP}] diff --git a/dev-util/semgrep-core-bin/semgrep-core-bin-0.36.0.ebuild b/dev-util/semgrep-core-bin/semgrep-core-bin-0.36.0.ebuild index f82d93c8b..5db1ff289 100644 --- a/dev-util/semgrep-core-bin/semgrep-core-bin-0.36.0.ebuild +++ b/dev-util/semgrep-core-bin/semgrep-core-bin-0.36.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -7,12 +7,11 @@ DESCRIPTION="Lightweight static analysis for many languages" HOMEPAGE="https://github.com/returntocorp/semgrep" #SRC_URI="https://files.pythonhosted.org/packages/3.6/f/frida/frida-12.0.3-py3.6-linux-x86_64.egg" - SRC_URI="https://files.pythonhosted.org/packages/51/94/d6ce8e42588aeb3f4cde5e477a5254fa2a9127f2d67652ce2bf45328c1a1/semgrep-0.36.0-cp36.cp37.cp38.py36.py37.py38-none-any.whl -> ${P}.zip" LICENSE="LGPL-2" SLOT="0" -KEYWORDS="amd64 x86" +KEYWORDS="amd64" RDEPEND="" DEPEND="${RDEPEND}"