Gentoo Archives: gentoo-commits

From: "Joe Sapp (nixphoeni)" <nixphoeni@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-electronics/eagle: ChangeLog eagle-5.8.0.ebuild
Date: Sat, 24 Apr 2010 16:27:01
Message-Id: 20100424162659.4DDCB2C04C@corvid.gentoo.org
1 nixphoeni 10/04/24 16:26:59
2
3 Modified: ChangeLog
4 Added: eagle-5.8.0.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.1.8.3/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.34 sci-electronics/eagle/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/eagle/ChangeLog?rev=1.34&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/eagle/ChangeLog?rev=1.34&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/eagle/ChangeLog?r1=1.33&r2=1.34
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-electronics/eagle/ChangeLog,v
19 retrieving revision 1.33
20 retrieving revision 1.34
21 diff -u -r1.33 -r1.34
22 --- ChangeLog 9 Mar 2010 12:22:43 -0000 1.33
23 +++ ChangeLog 24 Apr 2010 16:26:59 -0000 1.34
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sci-electronics/eagle
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-electronics/eagle/ChangeLog,v 1.33 2010/03/09 12:22:43 abcd Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/eagle/ChangeLog,v 1.34 2010/04/24 16:26:59 nixphoeni Exp $
29 +
30 +*eagle-5.8.0 (24 Apr 2010)
31 +
32 + 24 Apr 2010; Joe Sapp <nixphoeni@g.o> +eagle-5.8.0.ebuild:
33 + Version bump
34
35 09 Mar 2010; Jonathan Callen <abcd@g.o> eagle-5.6.0.ebuild,
36 eagle-5.7.0.ebuild:
37
38
39
40 1.1 sci-electronics/eagle/eagle-5.8.0.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/eagle/eagle-5.8.0.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/eagle/eagle-5.8.0.ebuild?rev=1.1&content-type=text/plain
44
45 Index: eagle-5.8.0.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/sci-electronics/eagle/eagle-5.8.0.ebuild,v 1.1 2010/04/24 16:26:59 nixphoeni Exp $
50
51 inherit eutils
52
53 DESCRIPTION="CadSoft EAGLE schematic and printed circuit board (PCB) layout editor"
54 HOMEPAGE="http://www.cadsoft.de"
55
56 KEYWORDS="~amd64 ~x86"
57 IUSE="linguas_de doc"
58 LICENSE="cadsoft"
59 RESTRICT="strip"
60 SLOT="0"
61
62 # Cadsoft has used the suffix "_p" in the past which we translate to "r"
63 MY_PV=${PV/_p/r}
64
65 SRC_URI="ftp://ftp.cadsoft.de/eagle/program/${PV%\.[0-9]}/${PN}-lin-${MY_PV}.run"
66
67 RDEPEND="sys-libs/glibc
68 x11-libs/libXext
69 x11-libs/libX11
70 x11-libs/libXau
71 x11-libs/libXdmcp
72 x86? ( <media-libs/jpeg-7 )
73 amd64? ( app-emulation/emul-linux-x86-baselibs
74 app-emulation/emul-linux-x86-xlibs )"
75
76 # Append ${PV} since that's what upstream installs to
77 INSTALLDIR="/opt/eagle-${PV}"
78 case "${LINGUAS}" in
79 *de*)
80 MY_LANG="de";;
81 *)
82 MY_LANG="en";;
83 esac
84 # Mandatory documentation being installed
85 DOCS="README_${MY_LANG} UPDATE_${MY_LANG} library_${MY_LANG}.txt"
86
87 src_unpack() {
88
89 # Extract the built-in .tar.bz2 file starting at __DATA__
90 sed -e '1,/^__DATA__$/d' "${DISTDIR}/${A}" | tar xj || die "unpacking failed"
91
92 }
93
94 src_install() {
95
96 cd "${S}"
97 dodir ${INSTALLDIR}
98 # Copy all to INSTALLDIR
99 cp -r . "${D}"/${INSTALLDIR}
100
101 # Install wrapper (suppressing leading tabs)
102 # see bug #188368 or http://www.cadsoft.de/faq.htm#17040701
103 exeinto /usr/bin
104 newexe "${FILESDIR}/eagle_wrapper_script" eagle
105 # Finally, append the path of the eagle binary respecting INSTALLDIR and any
106 # arguments passed to the script (thanks Denilson)
107 echo "${INSTALLDIR}/bin/eagle" '"$@"' >> "${D}/usr/bin/eagle"
108
109 # Install the documentation
110 cd doc
111 dodoc ${DOCS}
112 doman eagle.1
113 # Install extra documentation if requested
114 use doc && dodoc elektro-tutorial.pdf manual_${MY_LANG}.pdf tutorial_${MY_LANG}.pdf
115 # Remove docs left in INSTALLDIR
116 rm -rf "${D}${INSTALLDIR}/doc"
117 cd ..
118
119 echo -e "ROOTPATH=${INSTALLDIR}/bin\nPRELINK_PATH_MASK=${INSTALLDIR}" > "${S}/90eagle"
120 doenvd "${S}/90eagle"
121
122 # Create desktop entry
123 doicon bin/${PN}icon50.png
124 make_desktop_entry "${ROOT}/usr/bin/eagle" ${PN} ${PN}icon50 "Graphics;Electronics"
125
126 }
127
128 pkg_postinst() {
129
130 elog "Run \`env-update && source /etc/profile\` from within \${ROOT}"
131 elog "now to set up the correct paths."
132 elog "You must first run eagle as root to invoke product registration."
133 echo
134 ewarn "Due to some necessary changes in the data structure, once you edit"
135 ewarn "a file with version 5.x you will no longer be able to edit it"
136 ewarn "with versions prior to 5.0!"
137 ewarn
138 ewarn "Please read /usr/share/doc/${PF}/UPDATE_${MY_LANG} if you are upgrading from 4.xx."
139
140 }