mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-30 02:30:58 +02:00
semgrep-0.36.0.ebuild
This commit is contained in:
parent
ed7a72136b
commit
ff78456aec
5 changed files with 69 additions and 1 deletions
|
|
@ -1 +1,2 @@
|
|||
DIST semgrep-0.28.0.tar.gz 70004 BLAKE2B 5676cea47f6c257e245771956629423355749e7619a5524d7c777698c9ed7a86e067607f80d5dcbf02eeadfbe04f132e7899bec337ed51995f204d369f3215e8 SHA512 2d03aa214b9f704ddf2a1141b490ca5eb1b0a5f712384e1075da3e667388d94808ed19fc91d3f10e174807455241ff58979ebca1f66e47bd373a9b1301188556
|
||||
DIST semgrep-0.36.0.tar.gz 73513 BLAKE2B fc4b9e8a1a9d277ec0392b20af385a5291718a3a5bca9fd48183289a05bb22d808e833bf84ef93fe59cdfd04289f45b57868a940c3f9433a0fe01b478ae9e644 SHA512 290d17c7ef5dc052cc0d189fc64bc39244741391504f9143c851a04a968a08054a11ddd407c7a1d3136068dac33b545a48f39477049b5aed2a2baeff0a45389e
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ RDEPEND=">=dev-python/attrs-19.3.0[${PYTHON_USEDEP}]
|
|||
>=dev-python/colorama-0.4.3[${PYTHON_USEDEP}]
|
||||
~dev-python/junit-xml-1.9[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.22.0[${PYTHON_USEDEP}]
|
||||
~dev-python/ruamel-yaml-0.16.10[${PYTHON_USEDEP}]
|
||||
=dev-python/ruamel-yaml-0.16*[${PYTHON_USEDEP}]
|
||||
>=dev-python/tqdm-4.46.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/packaging-20.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/jsonschema-3.2.0[${PYTHON_USEDEP}]
|
||||
|
|
@ -31,6 +31,7 @@ RDEPEND=">=dev-python/attrs-19.3.0[${PYTHON_USEDEP}]
|
|||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare(){
|
||||
sed -i "s|ruamel.yaml==|ruamel.yaml>=|g" setup.py
|
||||
rm -r tests
|
||||
eapply_user
|
||||
}
|
||||
41
dev-python/semgrep/semgrep-0.36.0.ebuild
Normal file
41
dev-python/semgrep/semgrep-0.36.0.ebuild
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
# Copyright 1999-2020 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} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Lightweight static analysis for many languages"
|
||||
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"
|
||||
|
||||
# exact version of ruamel.yaml because of unstable API
|
||||
RDEPEND=">=dev-python/attrs-19.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/colorama-0.4.3[${PYTHON_USEDEP}]
|
||||
~dev-python/junit-xml-1.9[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.22.0[${PYTHON_USEDEP}]
|
||||
=dev-python/ruamel-yaml-0.16*[${PYTHON_USEDEP}]
|
||||
>=dev-python/tqdm-4.46.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/packaging-20.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/jsonschema-3.2.0[${PYTHON_USEDEP}]
|
||||
|
||||
dev-python/wheel[${PYTHON_USEDEP}]
|
||||
dev-util/semgrep-core-bin"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_prepare(){
|
||||
sed -i "s|ruamel.yaml==|ruamel.yaml>=|g" setup.py
|
||||
rm -r tests
|
||||
eapply_user
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
export SEMGREP_SKIP_BIN=true
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
|
@ -1 +1,2 @@
|
|||
DIST semgrep-core-bin-0.28.0.zip 91718026 BLAKE2B a0fc679ad0d82c3913d466e6465e7c70478a80fa0c56e536f5ecfd3316c3f4aee3f92c1f93d6001d4fd223650d0c534606a74685703b84764a6e885344fad1c4 SHA512 d917498b1d44911dad5c75f0947af575599134aa78b3e09dbc67edd103978cfc252947d38dca2a0ef0ffb5ea4c362a9020db65f3e45511410af9bc791e429a72
|
||||
DIST semgrep-core-bin-0.36.0.zip 50700881 BLAKE2B b74b036772986cd6e761cf7b1d6e14261a4888fdc9d187353c8fe782a368f18ab96b2b28185c532f8d62d53f8b0876418ac266764cdf8ea42980daf5f8f4158b SHA512 129a9e688e1810e5c5ccda5f4f19aa060a17a74b62768c11eef2cd85d066f37a919b73f6e54bb42cb9714ad839e0bb145fad76e5eece12fb7d9cd990cf54ead0
|
||||
|
|
|
|||
24
dev-util/semgrep-core-bin/semgrep-core-bin-0.36.0.ebuild
Normal file
24
dev-util/semgrep-core-bin/semgrep-core-bin-0.36.0.ebuild
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
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"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/semgrep-${PV}.data"
|
||||
|
||||
src_install(){
|
||||
dobin purelib/semgrep/bin/{semgrep-core,spacegrep}
|
||||
}
|
||||
Loading…
Reference in a new issue