Gentoo Archives: gentoo-commits

From: "Michael Weber (xmw)" <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-electronics/eagle: eagle-6.2.0.ebuild ChangeLog
Date: Thu, 05 Jul 2012 09:06:52
Message-Id: 20120705090621.C2A7A2004B@flycatcher.gentoo.org
1 xmw 12/07/05 09:06:21
2
3 Modified: ChangeLog
4 Added: eagle-6.2.0.ebuild
5 Log:
6 Version bump (thanks idl0r, bug 397491), PMASKED until the libpng14 issue gets solved.
7
8 (Portage version: 2.1.11.4/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.52 sci-electronics/eagle/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-electronics/eagle/ChangeLog?rev=1.52&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-electronics/eagle/ChangeLog?rev=1.52&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-electronics/eagle/ChangeLog?r1=1.51&r2=1.52
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-electronics/eagle/ChangeLog,v
20 retrieving revision 1.51
21 retrieving revision 1.52
22 diff -u -r1.51 -r1.52
23 --- ChangeLog 8 Aug 2011 19:18:22 -0000 1.51
24 +++ ChangeLog 5 Jul 2012 09:06:21 -0000 1.52
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sci-electronics/eagle
27 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-electronics/eagle/ChangeLog,v 1.51 2011/08/08 19:18:22 hwoarang Exp $
29 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/eagle/ChangeLog,v 1.52 2012/07/05 09:06:21 xmw Exp $
31 +
32 +*eagle-6.2.0 (05 Jul 2012)
33 +
34 + 05 Jul 2012; Michael Weber <xmw@g.o> +eagle-6.2.0.ebuild:
35 + Version bump (thanks idl0r, bug 397491), PMASKED until the libpng14 issue gets
36 + solved.
37
38 08 Aug 2011; Markos Chandras <hwoarang@g.o> eagle-5.11.0.ebuild:
39 Stable on amd64 wrt bug #377643
40 @@ -221,4 +227,3 @@
41 +eagle-4.16_p1.ebuild:
42 Initial commit. Thanks to Michael Ihde for the initial ebuild submission.
43 This closes bug #37217.
44 -
45
46
47
48 1.1 sci-electronics/eagle/eagle-6.2.0.ebuild
49
50 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-electronics/eagle/eagle-6.2.0.ebuild?rev=1.1&view=markup
51 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-electronics/eagle/eagle-6.2.0.ebuild?rev=1.1&content-type=text/plain
52
53 Index: eagle-6.2.0.ebuild
54 ===================================================================
55 # Copyright 1999-2012 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Header: /var/cvsroot/gentoo-x86/sci-electronics/eagle/eagle-6.2.0.ebuild,v 1.1 2012/07/05 09:06:21 xmw Exp $
58
59 EAPI="4"
60
61 inherit eutils
62
63 DESCRIPTION="CadSoft EAGLE schematic and printed circuit board (PCB) layout editor"
64 HOMEPAGE="http://www.cadsoft.de"
65 SRC_URI="ftp://ftp.cadsoft.de/${PN}/program/${PV%\.[0-9]}/${PN}-lin-${PV}.run"
66
67 LICENSE="cadsoft"
68 SLOT="0"
69 KEYWORDS=""
70 IUSE="doc linguas_de linguas_zh"
71
72 RESTRICT="strip"
73
74 QA_PREBUILT="opt/eagle-${PV}/bin/eagle"
75
76 RDEPEND="sys-libs/glibc
77 x86? (
78 sys-libs/zlib
79 x11-libs/libX11
80 x11-libs/libXext
81 x11-libs/libXrender
82 x11-libs/libXrandr
83 x11-libs/libXcursor
84 x11-libs/libXi
85 media-libs/freetype
86 media-libs/fontconfig
87 dev-libs/openssl
88 virtual/jpeg
89 )
90 amd64? (
91 app-emulation/emul-linux-x86-baselibs
92 app-emulation/emul-linux-x86-xlibs
93 )"
94
95 # Append ${PV} since that's what upstream installs to
96 case "${LINGUAS}" in
97 *de*)
98 MY_LANG="de";;
99 *)
100 MY_LANG="en";;
101 esac
102
103 src_unpack() {
104 # Extract the built-in .tar.bz2 file starting at __DATA__
105 sed -e '1,/^__DATA__$/d' "${DISTDIR}/${A}" | tar xj || die "unpacking failed"
106 }
107
108 src_install() {
109 local installdir="/opt/eagle-${PV}"
110
111 # Set MY_LANG for this function only since UPDATE_zh and README_zh
112 # don't exist
113 [[ ${LINGUAS} == *zh* ]] && MY_INST_LANG="zh" || MY_INST_LANG="${MY_LANG}"
114
115 insinto $installdir
116 doins -r .
117
118 fperms 0755 ${installdir}/bin/eagle
119
120 # Install wrapper (suppressing leading tabs)
121 # see bug #188368 or http://www.cadsoftusa.com/training/faq/#3
122 exeinto /opt/bin
123 newexe "${FILESDIR}/eagle_wrapper_script" eagle
124 # Finally, append the path of the eagle binary respecting $installdir and any
125 # arguments passed to the script (thanks Denilson)
126 echo "${installdir}/bin/eagle" '"$@"' >> "${D}/opt/bin/eagle"
127
128 # Install the documentation
129 cd doc
130 dodoc README_${MY_LANG} UPDATE_${MY_LANG} library_${MY_LANG}.txt
131 doman eagle.1
132 # Install extra documentation if requested
133 if use doc; then
134 dodoc {connect-device-split-symbol-${MY_INST_LANG},elektro-tutorial,manual_${MY_INST_LANG},tutorial_${MY_INST_LANG}}.pdf
135 fi
136 # Remove docs left in $installdir
137 rm -rf "${D}${installdir}/doc"
138 cd "${S}"
139
140 echo -e "ROOTPATH=${installdir}/bin\nPRELINK_PATH_MASK=${installdir}" > "${S}/90eagle-${PV}"
141 doenvd "${S}/90eagle-${PV}"
142
143 # Create desktop entry
144 newicon bin/${PN}icon50.png ${PF}-icon50.png
145 make_desktop_entry "${ROOT}/usr/bin/eagle-${PV}" "CadSoft EAGLE Layout Editor" ${PF}-icon50 "Graphics;Electronics"
146 }
147
148 pkg_postinst() {
149 elog "Run \`env-update && source /etc/profile\` from within \${ROOT}"
150 elog "now to set up the correct paths."
151 elog "You must first run eagle as root to invoke product registration."
152 echo
153 ewarn "Due to some necessary changes in the data structure, once you edit"
154 ewarn "a file with version 6.x you will no longer be able to edit it"
155 ewarn "with versions prior to 6.0!"
156 ewarn
157 ewarn "Please read /usr/share/doc/${PF}/UPDATE_${MY_LANG} if you are upgrading from 5.xx/4.xx."
158 }