From f70a1bfc721336d4fc7dfb711c2f518a6b18cf16 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 30 Sep 2020 17:27:54 +0100 Subject: gentoo resync : 30.09.2020 --- dev-python/pycparser/Manifest | 2 +- dev-python/pycparser/pycparser-2.20-r1.ebuild | 56 +++++++++++++++++++++++++++ dev-python/pycparser/pycparser-2.20.ebuild | 56 --------------------------- 3 files changed, 57 insertions(+), 57 deletions(-) create mode 100644 dev-python/pycparser/pycparser-2.20-r1.ebuild delete mode 100644 dev-python/pycparser/pycparser-2.20.ebuild (limited to 'dev-python/pycparser') diff --git a/dev-python/pycparser/Manifest b/dev-python/pycparser/Manifest index 95ca50842b38..1c506f7fc458 100644 --- a/dev-python/pycparser/Manifest +++ b/dev-python/pycparser/Manifest @@ -1,3 +1,3 @@ DIST pycparser-2.20.tar.gz 161330 BLAKE2B 9a114e4b73e6c3c495bd78c393957146ec425eb5b15d72266cbf424f15e8d2e2e6402ef36d60a9dff41b393aab80fe1356befd25549517f398e129836a76b037 SHA512 ff0853c9f981b43b4f2e879350715c07b02cf9dab223d4980d8fe0a3138c98041b5f848a9355ae4f1cb45e7f137c03a88843008e18d77af9250e0d9c55f5ca1b -EBUILD pycparser-2.20.ebuild 1683 BLAKE2B ad7cab4e547bcea5362f5de8d0207fef55b919b677d7297c37ad934980b2ac40bb7ea7d84f6909fdf4b73ecc7226534d73564a15ca642ce01a94dcefbfbff02a SHA512 5c92fbd01060822351c8b93026096499b587da471b2687c97213840e2285f6957de58114d4cc29b907a27339cf4b87715ca7b1b494b50f8ee2ebfdb7a4b02ae3 +EBUILD pycparser-2.20-r1.ebuild 1673 BLAKE2B f0424d312555273e3c2bdc98e22468eaebdec431d59aea646ecf0af11e489909aba2af4078351d2415828d11e0dad58f95296019903f3c4b6717b4a727734280 SHA512 a220f31f4dbaf1fa1151f05b37f715b034f09ad570c7fe5c313c9bc3753c0fbd99276c6fdbdb85b7eb75148a07e1eb1a301364bee5132ddd95e46a6db2ebe47e MISC metadata.xml 380 BLAKE2B b013fa2cb5c61b39b122c1c051ce40a8c002d4d4c6995ab78e0f3a35cec07d2f81cb5b05326ddac9c2526eb3ebcf90bc2660f588c4ebe5bacbd1a861fcf91985 SHA512 98ca8c63733123ae6a1d1c8b338d5f98a679b8f84b1e0abed8dc7fefa5549735a7f4de9a5851a26507a6169336fa46689616e46a49df0e9a52f6efb669eac865 diff --git a/dev-python/pycparser/pycparser-2.20-r1.ebuild b/dev-python/pycparser/pycparser-2.20-r1.ebuild new file mode 100644 index 000000000000..75845e89e7a3 --- /dev/null +++ b/dev-python/pycparser/pycparser-2.20-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="C parser and AST generator written in Python" +HOMEPAGE="https://github.com/eliben/pycparser" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +RDEPEND="dev-python/ply:=[${PYTHON_USEDEP}]" +BDEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +python_prepare_all() { + # remove the original files to guarantee their regen + rm pycparser/{c_ast,lextab,yacctab}.py || die + + # kill sys.path manipulations to force the tests to use built files + sed -i -e '/sys\.path/d' tests/*.py || die + + distutils-r1_python_prepare_all +} + +python_compile() { + distutils-r1_python_compile + + # note: tables built by py3.5+ are incompatible with older versions + # because of 100 group limit of 're' module -- just generate them + # separately optimized for each target instead + pushd "${BUILD_DIR}"/lib/pycparser > /dev/null || die + "${PYTHON}" _build_tables.py || die + popd > /dev/null || die +} + +python_test() { + # Skip tests if cpp is not in PATH + type -P cpp >/dev/null || return 0 + # change workdir to avoid '.' import + cd tests || die + "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}" +} + +python_install() { + distutils-r1_python_install + + # setup.py generates {c_ast,lextab,yacctab}.py with bytecode disabled. + python_optimize +} diff --git a/dev-python/pycparser/pycparser-2.20.ebuild b/dev-python/pycparser/pycparser-2.20.ebuild deleted file mode 100644 index 86f47ce182ea..000000000000 --- a/dev-python/pycparser/pycparser-2.20.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 ) - -inherit distutils-r1 - -DESCRIPTION="C parser and AST generator written in Python" -HOMEPAGE="https://github.com/eliben/pycparser" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" - -RDEPEND="dev-python/ply:=[${PYTHON_USEDEP}]" -BDEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}]" - -python_prepare_all() { - # remove the original files to guarantee their regen - rm pycparser/{c_ast,lextab,yacctab}.py || die - - # kill sys.path manipulations to force the tests to use built files - sed -i -e '/sys\.path/d' tests/*.py || die - - distutils-r1_python_prepare_all -} - -python_compile() { - distutils-r1_python_compile - - # note: tables built by py3.5+ are incompatible with older versions - # because of 100 group limit of 're' module -- just generate them - # separately optimized for each target instead - pushd "${BUILD_DIR}"/lib/pycparser > /dev/null || die - "${PYTHON}" _build_tables.py || die - popd > /dev/null || die -} - -python_test() { - # Skip tests if cpp is not in PATH - type -P cpp >/dev/null || return 0 - # change workdir to avoid '.' import - cd tests || die - "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}" -} - -python_install() { - distutils-r1_python_install - - # setup.py generates {c_ast,lextab,yacctab}.py with bytecode disabled. - python_optimize -} -- cgit v1.2.3