tkurbad-overlay/dev-python/engineering-notation/engineering-notation-0.8.0.ebuild
2023-04-22 17:47:17 +02:00

42 lines
922 B
Bash

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
MY_PN="engineering_notation"
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="https://github.com/slightlynybbled/${MY_PN}/archive/refs/tags/v${PV}.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}"
S="${WORKDIR}/${MY_PN}-${PV}"
src_prepare() {
sed "s@engineering_notation/version.py@$S/$MY_PN/version.py@" \
-i "${S}/setup.py" || die
default
}