# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # Thanks to the original author's code, slis@gentoo.org's code, because the original code is outdated, this ebuild has been modified portably EAPI="7" PYTHON_COMPAT=( python3_10 ) inherit autotools eutils flag-o-matic multilib python-single-r1 git-r3 DESCRIPTION="LinuxCNC " HOMEPAGE="http://linuxcnc.org/" #SRC_URI="mirror://sourceforge/gentoocnc/distfiles/${P}.tar.gz" #SRC_URI="https://github.com/LinuxCNC/linuxcnc/archive/2.7.zip" EGIT_REPO_URI="https://github.com/LinuxCNC/linuxcnc.git https://gitclone.com/github.com/LinuxCNC/linuxcnc.git" S="${WORKDIR}"/linuxcnc-9999/src LICENSE="LGPL-3" SLOT="linuxcnc-9999" KEYWORDS="~amd64 ~x86" IUSE="+python +uspace +X +gtk -rt gstreamer modbus simulator usb" # TODO: add shmdrv use flag # --disable-python uses python anyways and fails so python is a required use flag REQUIRED_USE=" python python? ( ${PYTHON_REQUIRED_USE} ) rt? ( !simulator ) " DEPEND="dev-lang/tcl dev-lang/tk dev-tcltk/tkimg dev-tcltk/tclx dev-libs/boost[python] modbus? ( "${envd}" <<-EOF LDPATH="${EPREFIX}/usr/$(get_libdir)/linuxcnc" EOF doenvd "${envd}" insinto "/usr/share/linuxcnc/" doins Makefile.inc insinto "/etc/linuxcnc/" doins "../scripts/rtapi.conf" insinto "/usr/bin/" doins "../scripts/rip-environment" doicon "../linuxcncicon.png" make_desktop_entry linuxcnc LinuxCNC linuxcnc 'Science;Robotics' } pkg_postinst() { elog "The compiled software may not be redistributed due to use of packages with incompatible licenses." elog "Opening machine configuration files from older Versions can crash the application as it cannot load old named modules, e.g. probe_parport.so not found" elog "This is not a Gentoo- or build related error. It looks like linuxcnc 2.8 will have some kind of converter for them." elog "If you created them with stepconf. You can just open the stepconf file and create them new. Don't forget to backup any manual changes (e.g. backlash!) from the .hal and .ini files and make them again." }