# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sci-electronics/eagle/eagle-5.6.0.ebuild,v 1.7 2010/03/09 12:22:43 abcd Exp $ inherit eutils DESCRIPTION="CadSoft EAGLE schematic and printed circuit board (PCB) layout editor" HOMEPAGE="http://www.cadsoft.de" KEYWORDS="amd64 x86" IUSE="linguas_de doc" LICENSE="cadsoft" RESTRICT="strip" SLOT="0" # Cadsoft has used the suffix "_p" in the past which we translate to "r" MY_PV=${PV/_p/r} SRC_URI="ftp://ftp.cadsoft.de/pub/program/${PV%\.[0-9]}/${PN}-lin-${MY_PV}.run" RDEPEND="sys-libs/glibc x11-libs/libXext x11-libs/libX11 x11-libs/libXau x11-libs/libXdmcp x86? ( > "${D}/usr/bin/eagle" # Install the documentation cd doc dodoc ${DOCS} doman eagle.1 # Install extra documentation if requested use doc && dodoc elektro-tutorial.pdf manual_${MY_LANG}.pdf tutorial_${MY_LANG}.pdf # Remove docs left in INSTALLDIR rm -rf "${D}${INSTALLDIR}/doc" cd .. echo -e "ROOTPATH=${INSTALLDIR}/bin\nPRELINK_PATH_MASK=${INSTALLDIR}" > "${S}/90eagle" doenvd "${S}/90eagle" # Create desktop entry doicon bin/${PN}icon50.png make_desktop_entry "${ROOT}/usr/bin/eagle" ${PN} ${PN}icon50 "Graphics;Electronics" } pkg_postinst() { elog "Run \`env-update && source /etc/profile\` from within \${ROOT}" elog "now to set up the correct paths." elog "You must first run eagle as root to invoke product registration." echo ewarn "Due to some necessary changes in the data structure, once you edit" ewarn "a file with version 5.x you will no longer be able to edit it" ewarn "with versions prior to 5.0!" ewarn ewarn "Please read /usr/share/doc/${PF}/UPDATE_${MY_LANG} if you are upgrading from 4.xx." }