2017-10-18 14:25:37 +02:00
|
|
|
# Copyright 1999-2017 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
EAPI=6
|
|
|
|
PYTHON_COMPAT=( python2_7 )
|
|
|
|
|
2017-10-31 15:16:11 +01:00
|
|
|
inherit distutils-r1 git-r3 gnome2-utils
|
2017-10-18 14:25:37 +02:00
|
|
|
|
|
|
|
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
|
2017-10-18 14:25:37 +02:00
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
2017-10-31 15:16:11 +01:00
|
|
|
IUSE="+doc"
|
2017-10-18 14:25:37 +02:00
|
|
|
|
2017-10-31 15:16:11 +01:00
|
|
|
RDEPEND="
|
2017-12-23 22:58:44 +01:00
|
|
|
>=dev-python/matplotlib-1.3.1[1t5]
|
2017-10-31 15:16:11 +01:00
|
|
|
>=dev-python/numpy-1.8
|
2017-12-23 22:58:44 +01:00
|
|
|
dev-python/PyQt5
|
2017-10-31 15:16:11 +01:00
|
|
|
dev-python/simplejson
|
|
|
|
dev-python/svg_path
|
|
|
|
sci-libs/Rtree
|
|
|
|
sci-libs/scipy
|
|
|
|
>=sci-libs/Shapely-1.3
|
|
|
|
"
|
2017-10-18 14:25:37 +02:00
|
|
|
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
|
|
|
|
}
|