tkurbad-overlay/dev-python/engineering-notation/engineering-notation-9999.ebuild
2022-05-03 22:31:22 +02:00

41 lines
887 B
Bash

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
MY_PN="engineering_notation"
MY_P="${MY_PN}-${PV}"
inherit distutils-r1
DESCRIPTION="Easy engineering notation using python"
HOMEPAGE="https://github.com/yaqwsx/KiKit"
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/slightlynybbled/${MY_PN}.git"
KEYWORDS=""
inherit git-r3
else
KEYWORDS="~amd64 ~x86"
SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz"
fi
LICENSE="MIT"
SLOT="0"
IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="dev-python/flake8[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
src_prepare() {
sed "s@engineering_notation/version.py@$S/$MY_PN/version.py@" \
-i "${S}/setup.py" || die
default
}