tkurbad-overlay/sci-electronics/flatcam/flatcam-9999.ebuild

71 lines
1.4 KiB
Bash
Raw Normal View History

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
2020-10-12 09:27:26 +02:00
EAPI=7
PYTHON_COMPAT=( python3_{6,7} )
2017-10-31 15:16:11 +01:00
inherit distutils-r1 git-r3 gnome2-utils
DESCRIPTION="Free and Open-source PCB CAM.."
HOMEPAGE="http://flatcam.org"
2017-10-31 15:16:11 +01:00
if [[ "${PV}" == "9999" ]] ; then
inherit git-r3
EGIT_REPO_URI="https://bitbucket.org/jpcgt/${PN}.git"
KEYWORDS=""
SRC_URI=""
else
SRC_URI="https://bitbucket.org/jpcgt/flatcam/downloads/FlatCAM-${PV}.zip -> ${P}.zip"
KEYWORDS="amd64 x86"
fi
LICENSE="MIT"
SLOT="0"
2017-10-31 15:16:11 +01:00
IUSE="+doc"
2017-10-31 15:16:11 +01:00
RDEPEND="
2020-10-12 09:27:26 +02:00
>=dev-python/matplotlib-1.3.1[${PYTHON_USEDEP},qt5]
>=dev-python/numpy-1.8[${PYTHON_USEDEP}]
dev-python/PyQt5[${PYTHON_USEDEP}]
dev-python/simplejson[${PYTHON_USEDEP}]
dev-python/svg-path[${PYTHON_USEDEP}]
2017-10-31 15:16:11 +01:00
sci-libs/Rtree
sci-libs/scipy
>=sci-libs/Shapely-1.3
"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
${RDEPEND}"
2017-10-31 15:16:11 +01:00
src_compile() {
distutils-r1_src_install
if use doc ; then
cd "${S}"/doc
emake html
fi
}
src_install() {
distutils-r1_src_install
insinto /usr/share/applications
doins "${S}"/flatcam.desktop
local size
for size in 16 24 32 48 128 256; do
dosym ../../../../${PN}/${PN}_icon${size}.png \
/usr/share/icons/hicolor/${size}x${size}/apps/flatcam.png
done
use doc && dodoc -r "${S}"/doc/build/html
}
pkg_postrm() {
gnome2_icon_cache_update
}
pkg_postinst() {
gnome2_icon_cache_update
}