diff options
author | Michael Weber <xmw@gentoo.org> | 2012-07-05 09:06:21 +0000 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2012-07-05 09:06:21 +0000 |
commit | 6d82faf68e70b9bb5bc2931e7e9b87488cd4d654 (patch) | |
tree | fa9869e10901d4b776e6e8f82f42727ae40c877d /sci-electronics/eagle | |
parent | Silence repoman by updating header from 2009 to 2012 (diff) | |
download | gentoo-2-6d82faf68e70b9bb5bc2931e7e9b87488cd4d654.tar.gz gentoo-2-6d82faf68e70b9bb5bc2931e7e9b87488cd4d654.tar.bz2 gentoo-2-6d82faf68e70b9bb5bc2931e7e9b87488cd4d654.zip |
Version bump (thanks idl0r, bug 397491), PMASKED until the libpng14 issue gets solved.
(Portage version: 2.1.11.4/cvs/Linux x86_64)
Diffstat (limited to 'sci-electronics/eagle')
-rw-r--r-- | sci-electronics/eagle/ChangeLog | 11 | ||||
-rw-r--r-- | sci-electronics/eagle/eagle-6.2.0.ebuild | 104 |
2 files changed, 112 insertions, 3 deletions
diff --git a/sci-electronics/eagle/ChangeLog b/sci-electronics/eagle/ChangeLog index 51af05bde5fe..1e5b7b9b8547 100644 --- a/sci-electronics/eagle/ChangeLog +++ b/sci-electronics/eagle/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sci-electronics/eagle -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-electronics/eagle/ChangeLog,v 1.51 2011/08/08 19:18:22 hwoarang Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/eagle/ChangeLog,v 1.52 2012/07/05 09:06:21 xmw Exp $ + +*eagle-6.2.0 (05 Jul 2012) + + 05 Jul 2012; Michael Weber <xmw@gentoo.org> +eagle-6.2.0.ebuild: + Version bump (thanks idl0r, bug 397491), PMASKED until the libpng14 issue gets + solved. 08 Aug 2011; Markos Chandras <hwoarang@gentoo.org> eagle-5.11.0.ebuild: Stable on amd64 wrt bug #377643 @@ -221,4 +227,3 @@ +eagle-4.16_p1.ebuild: Initial commit. Thanks to Michael Ihde for the initial ebuild submission. This closes bug #37217. - diff --git a/sci-electronics/eagle/eagle-6.2.0.ebuild b/sci-electronics/eagle/eagle-6.2.0.ebuild new file mode 100644 index 000000000000..d8d23a5acca5 --- /dev/null +++ b/sci-electronics/eagle/eagle-6.2.0.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/eagle/eagle-6.2.0.ebuild,v 1.1 2012/07/05 09:06:21 xmw Exp $ + +EAPI="4" + +inherit eutils + +DESCRIPTION="CadSoft EAGLE schematic and printed circuit board (PCB) layout editor" +HOMEPAGE="http://www.cadsoft.de" +SRC_URI="ftp://ftp.cadsoft.de/${PN}/program/${PV%\.[0-9]}/${PN}-lin-${PV}.run" + +LICENSE="cadsoft" +SLOT="0" +KEYWORDS="" +IUSE="doc linguas_de linguas_zh" + +RESTRICT="strip" + +QA_PREBUILT="opt/eagle-${PV}/bin/eagle" + +RDEPEND="sys-libs/glibc + x86? ( + sys-libs/zlib + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXrender + x11-libs/libXrandr + x11-libs/libXcursor + x11-libs/libXi + media-libs/freetype + media-libs/fontconfig + dev-libs/openssl + virtual/jpeg + ) + amd64? ( + app-emulation/emul-linux-x86-baselibs + app-emulation/emul-linux-x86-xlibs + )" + +# Append ${PV} since that's what upstream installs to +case "${LINGUAS}" in + *de*) + MY_LANG="de";; + *) + MY_LANG="en";; +esac + +src_unpack() { + # Extract the built-in .tar.bz2 file starting at __DATA__ + sed -e '1,/^__DATA__$/d' "${DISTDIR}/${A}" | tar xj || die "unpacking failed" +} + +src_install() { + local installdir="/opt/eagle-${PV}" + + # Set MY_LANG for this function only since UPDATE_zh and README_zh + # don't exist + [[ ${LINGUAS} == *zh* ]] && MY_INST_LANG="zh" || MY_INST_LANG="${MY_LANG}" + + insinto $installdir + doins -r . + + fperms 0755 ${installdir}/bin/eagle + + # Install wrapper (suppressing leading tabs) + # see bug #188368 or http://www.cadsoftusa.com/training/faq/#3 + exeinto /opt/bin + newexe "${FILESDIR}/eagle_wrapper_script" eagle + # Finally, append the path of the eagle binary respecting $installdir and any + # arguments passed to the script (thanks Denilson) + echo "${installdir}/bin/eagle" '"$@"' >> "${D}/opt/bin/eagle" + + # Install the documentation + cd doc + dodoc README_${MY_LANG} UPDATE_${MY_LANG} library_${MY_LANG}.txt + doman eagle.1 + # Install extra documentation if requested + if use doc; then + dodoc {connect-device-split-symbol-${MY_INST_LANG},elektro-tutorial,manual_${MY_INST_LANG},tutorial_${MY_INST_LANG}}.pdf + fi + # Remove docs left in $installdir + rm -rf "${D}${installdir}/doc" + cd "${S}" + + echo -e "ROOTPATH=${installdir}/bin\nPRELINK_PATH_MASK=${installdir}" > "${S}/90eagle-${PV}" + doenvd "${S}/90eagle-${PV}" + + # Create desktop entry + newicon bin/${PN}icon50.png ${PF}-icon50.png + make_desktop_entry "${ROOT}/usr/bin/eagle-${PV}" "CadSoft EAGLE Layout Editor" ${PF}-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 6.x you will no longer be able to edit it" + ewarn "with versions prior to 6.0!" + ewarn + ewarn "Please read /usr/share/doc/${PF}/UPDATE_${MY_LANG} if you are upgrading from 5.xx/4.xx." +} |