# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit eutils DESCRIPTION="Autodesk EAGLE schematic and printed circuit board (PCB) layout editor" HOMEPAGE="http://www.autodesk.com/" SRC_URI="http://trial2.autodesk.com/NET17SWDLD/2017/EGLPRM/ESD/Autodesk_EAGLE_${PV}_English_Linux_64bit.tar.gz -> ${P}.tar.gz" # http://download.autodesk.com/us/FY17/Suites/LSA/en-US/lsa.html LICENSE="Autodesk" SLOT="0" KEYWORDS="~amd64 -*" IUSE="" QA_PREBUILT="opt/eagle/eagle opt/eagle/libexec/QtWebEngineProcess" RESTRICT="mirror bindist" # libQt5Positioning.so.5 RDEPEND=" sci-electronics/ngspice dev-qt/qtwebengine dev-qt/qtdeclarative dev-qt/qtgui dev-qt/qtwebchannel dev-qt/qtnetwork dev-qt/qtcore dev-qt/qtprintsupport dev-qt/qtxml dev-qt/qtsvg dev-qt/qtwidgets dev-qt/qtlocation media-libs/mesa " src_prepare() { rm -rf lib/ ngspice/ rm -rf plugins/ # libraries only? default } src_install() { local installdir="/opt/eagle" doman doc/eagle.1 rm doc/eagle.1 insinto ${installdir} doins -r . fperms 0755 ${installdir}/eagle ${installdir}/libexec/QtWebEngineProcess # echo -e "ROOTPATH=${installdir}\nPRELINK_PATH_MASK=${installdir}" > "${S}/90${P}" # doenvd "${S}/90${P}" newicon bin/${PN}-logo.png ${PF}-logo.png make_wrapper ${PN} "${EROOT}opt/${PN}/eagle" "${EROOT}opt/${PN}" "${EROOT}opt/${PN}/lib" make_desktop_entry ${PN} "EAGLE PCB Designer" ${PF}-logo "Development;Electronics" } pkg_postinst() { # elog "Run \`env-update && source /etc/profile\` from within \${ROOT}" # elog "now to set up the correct paths." elog "NOTE: x11-drivers/xf86-video-nouveau may cause sporadic crashes during the login procedure" elog "Enable software rendering in libGL by setting LIBGL_ALWAYS_SOFTWARE to 1" elog "export LIBGL_ALWAYS_SOFTWARE=1; eagle" }