tkurbad-overlay/dev-python/pcbdraw/pcbdraw-1.1.2.ebuild

68 lines
1.6 KiB
Bash
Raw Normal View History

2023-04-22 17:47:17 +02:00
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=8
2023-07-03 11:36:29 +02:00
PYTHON_COMPAT=( python3_{9..12} )
DISTUTILS_SINGLE_IMPL=1
2023-04-22 17:47:17 +02:00
2023-07-03 11:36:29 +02:00
inherit distutils-r1
2023-04-22 17:47:17 +02:00
MY_PN="PcbDraw"
DESCRIPTION="Convert your KiCAD board into a nicely looking 2D drawing"
HOMEPAGE="https://github.com/yaqwsx/KiKit"
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/yaqwsx/${PN}.git"
KEYWORDS=""
inherit git-r3
else
KEYWORDS="~amd64 ~x86"
SRC_URI="https://github.com/yaqwsx/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
2023-07-03 11:36:29 +02:00
S="${WORKDIR}/${MY_PN}-${PV}"
2023-04-22 17:47:17 +02:00
fi
LICENSE="MIT"
SLOT="0"
IUSE=""
2023-07-03 11:36:29 +02:00
RESTRICT="test"
2023-04-22 17:47:17 +02:00
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
2023-09-26 15:58:30 +02:00
RDEPEND="dev-python/engineering-notation[${PYTHON_SINGLE_USEDEP}]
$(python_gen_cond_dep '
2023-04-22 17:47:17 +02:00
dev-python/click[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]
dev-python/markdown2[${PYTHON_USEDEP}]
>=dev-python/mistune-2.0.2[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/pcbnewtransition[${PYTHON_SINGLE_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
dev-python/pybars3[${PYTHON_USEDEP}]
dev-python/pyvirtualdisplay[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
2023-07-03 11:58:49 +02:00
~dev-python/svgpathtools-1.6.1[${PYTHON_USEDEP}]
2023-04-22 17:47:17 +02:00
dev-python/wand[${PYTHON_USEDEP}]
sci-electronics/kicad[${PYTHON_SINGLE_USEDEP}]
')
"
DEPEND="${RDEPEND}
$(python_gen_cond_dep '
dev-python/versioneer[${PYTHON_USEDEP}]
')
"
src_compile() {
true;
}
src_install() {
python_domodule ${PN}
python_doscript ${FILESDIR}/pcbdraw
dodoc -r doc
dodoc LICENSE README.md
}