/[gentoo-x86]/sci-electronics/eagle/eagle-6.6.0.ebuild
Gentoo

Contents of /sci-electronics/eagle/eagle-6.6.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Jul 11 22:20:49 2015 UTC (2 years, 7 months ago) by idl0r
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -1 lines
Version bump. Add new license for 7.3.0. Add RESTRICT="mirror bindist" due to license restrictions, thanks to Ulrich Müller <ulm@gentoo.org>! Cleanup. Also fixes bug 545064.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key B427ABC8)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-electronics/eagle/eagle-6.6.0.ebuild,v 1.3 2015/06/14 18:51:43 ulm Exp $
4
5 EAPI="5"
6
7 inherit eutils
8
9 DESCRIPTION="CadSoft EAGLE schematic and printed circuit board (PCB) layout editor"
10 HOMEPAGE="http://www.cadsoft.de"
11 SRC_URI="ftp://ftp.cadsoft.de/${PN}/program/${PV%\.[0-9]}/${PN}-lin-${PV}.run"
12
13 LICENSE="cadsoft"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86 -*"
16 IUSE="doc linguas_de linguas_zh"
17
18 QA_PREBUILT="opt/eagle/bin/eagle"
19 RESTRICT="mirror bindist"
20
21 RDEPEND="
22 sys-libs/glibc
23 || ( virtual/jpeg:62[abi_x86_32(-)] media-libs/jpeg:62[abi_x86_32(-)] )
24 >=media-libs/libpng-1.2.51:1.2[abi_x86_32(-)]
25 >=dev-libs/openssl-0.9.8z_p1-r2:0.9.8[abi_x86_32(-)]
26 >=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)]
27 >=media-libs/freetype-2.5.0.1[abi_x86_32(-)]
28 >=media-libs/fontconfig-2.10.92[abi_x86_32(-)]
29 x11-libs/libXext[abi_x86_32(-)]
30 x11-libs/libX11[abi_x86_32(-)]
31 >=x11-libs/libXrender-0.9.8[abi_x86_32(-)]
32 >=x11-libs/libXrandr-1.4.2[abi_x86_32(-)]
33 >=x11-libs/libXcursor-1.1.14[abi_x86_32(-)]
34 >=x11-libs/libXi-1.7.2[abi_x86_32(-)]
35 "
36
37 # Append ${PV} since that's what upstream installs to
38 case "${LINGUAS}" in
39 *de*)
40 MY_LANG="de";;
41 *)
42 MY_LANG="en";;
43 esac
44
45 src_unpack() {
46 # Extract the built-in .tar.bz2 file starting at __DATA__
47 sed -e '1,/^__DATA__$/d' "${DISTDIR}/${A}" | tar xj || die "unpacking failed"
48 }
49
50 src_install() {
51 local installdir="/opt/eagle"
52
53 # Set MY_LANG for this function only since UPDATE_zh and README_zh
54 # don't exist
55 [[ ${LINGUAS} == *zh* ]] && MY_INST_LANG="zh" || MY_INST_LANG="${MY_LANG}"
56
57 insinto $installdir
58 doins -r .
59
60 fperms 0755 ${installdir}/bin/eagle
61
62 # Install wrapper (suppressing leading tabs)
63 # see bug #188368 or http://www.cadsoftusa.com/training/faq/#3
64 exeinto /opt/bin
65 newexe "${FILESDIR}/eagle_wrapper_script" eagle
66 # Finally, append the path of the eagle binary respecting $installdir and any
67 # arguments passed to the script (thanks Denilson)
68 echo "${installdir}/bin/eagle" '"$@"' >> "${D}/opt/bin/eagle"
69
70 # Install the documentation
71 cd doc
72 dodoc README_${MY_LANG} UPDATE_${MY_LANG} library_${MY_LANG}.txt
73 doman eagle.1
74
75 # Install extra documentation if requested
76 if use doc; then
77 dodoc {connect-device-split-symbol-${MY_INST_LANG},elektro-tutorial,manual_${MY_INST_LANG},tutorial_${MY_INST_LANG},layer-setup_designrules}.pdf
78 fi
79 # Remove docs left in $installdir
80 rm -rf "${D}${installdir}/doc"
81 cd "${S}"
82
83 echo -e "ROOTPATH=${installdir}/bin\nPRELINK_PATH_MASK=${installdir}" > "${S}/90eagle-${PV}"
84 doenvd "${S}/90eagle-${PV}"
85
86 # Create desktop entry
87 newicon bin/${PN}icon50.png ${PF}-icon50.png
88 make_desktop_entry "${ROOT}/opt/bin/eagle" "CadSoft EAGLE Layout Editor" ${PF}-icon50 "Graphics;Electronics"
89 }
90
91 pkg_postinst() {
92 elog "Run \`env-update && source /etc/profile\` from within \${ROOT}"
93 elog "now to set up the correct paths."
94 elog "You must first run eagle as root to invoke product registration."
95 echo
96 ewarn "Due to some necessary changes in the data structure, once you edit"
97 ewarn "a file with version 6.x you will no longer be able to edit it"
98 ewarn "with versions prior to 6.0!"
99 ewarn
100 ewarn "Please read /usr/share/doc/${PF}/UPDATE_${MY_LANG} if you are upgrading from 5.xx/4.xx."
101 }

  ViewVC Help
Powered by ViewVC 1.1.20