Files
gentoo/dev-python/pyjsparser/pyjsparser-2.7.1_p20190421.ebuild
Joshua Kinard 8dcdf55cfa dev-python/pyjsparser: Added ~mips to KEYWORDS
Bug: https://bugs.gentoo.org/831182
Signed-off-by: Joshua Kinard <kumba@gentoo.org>
Package-Manager: Portage-3.0.30, Repoman-3.0.3
2022-01-17 01:53:29 -05:00

37 lines
797 B
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_COMMIT="5465d037b30e334cb0997f2315ec1e451b8ad4c1"
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="Fast javascript parser based on esprima.js"
HOMEPAGE="
https://github.com/PiotrDabkowski/pyjsparser/
https://pypi.org/project/pyjsparser/
"
SRC_URI="https://github.com/PiotrDabkowski/${PN}/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
RESTRICT="!test? ( test )"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc x86"
IUSE="test"
BDEPEND="
test? (
dev-python/js2py
dev-python/pytest
)
"
S="${WORKDIR}/${PN}-${MY_COMMIT}"
python_test() {
"${EPYTHON}" ./test_runner.py || die "tests failed with ${EPYTHON}"
}