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.5.0.ebuild
Date: Mon, 20 Apr 2009 17:09:32
Message-Id: E1Lvwzq-0007uE-4x@stork.gentoo.org
1 nixphoeni 09/04/20 17:09:30
2
3 Modified: ChangeLog
4 Added: eagle-5.5.0.ebuild
5 Log:
6 Version bump, bug #266191
7 (Portage version: 2.1.6.11/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.23 sci-electronics/eagle/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/eagle/ChangeLog?rev=1.23&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/eagle/ChangeLog?rev=1.23&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/eagle/ChangeLog?r1=1.22&r2=1.23
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-electronics/eagle/ChangeLog,v
19 retrieving revision 1.22
20 retrieving revision 1.23
21 diff -u -r1.22 -r1.23
22 --- ChangeLog 15 Mar 2009 18:08:59 -0000 1.22
23 +++ ChangeLog 20 Apr 2009 17:09:30 -0000 1.23
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sci-electronics/eagle
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-electronics/eagle/ChangeLog,v 1.22 2009/03/15 18:08:59 maekke Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/eagle/ChangeLog,v 1.23 2009/04/20 17:09:30 nixphoeni Exp $
29 +
30 +*eagle-5.5.0 (20 Apr 2009)
31 +
32 + 20 Apr 2009; Joe Sapp <nixphoeni@g.o> +eagle-5.5.0.ebuild:
33 + Version bump, bug #266191
34
35 15 Mar 2009; Markus Meier <maekke@g.o> eagle-5.4.0.ebuild:
36 amd64/x86 stable, bug #262278
37
38
39
40 1.1 sci-electronics/eagle/eagle-5.5.0.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/eagle/eagle-5.5.0.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-electronics/eagle/eagle-5.5.0.ebuild?rev=1.1&content-type=text/plain
44
45 Index: eagle-5.5.0.ebuild
46 ===================================================================
47 # Copyright 1999-2009 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.5.0.ebuild,v 1.1 2009/04/20 17:09:30 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/pub/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
73 # Append ${PV} since that's what upstream installs to
74 INSTALLDIR="/opt/eagle-${PV}"
75 case "${LINGUAS}" in
76 *de*)
77 MY_LANG="de";;
78 *)
79 MY_LANG="en";;
80 esac
81 # Mandatory documentation being installed
82 DOCS="README_${MY_LANG} UPDATE_${MY_LANG} library_${MY_LANG}.txt"
83
84 src_unpack() {
85
86 # Extract the built-in .tar.bz2 file starting at __DATA__
87 sed -e '1,/^__DATA__$/d' "${DISTDIR}/${A}" | tar xj || die "unpacking failed"
88
89 }
90
91 src_install() {
92
93 cd "${S}"
94 dodir ${INSTALLDIR}
95 # Copy all to INSTALLDIR
96 cp -r . "${D}"/${INSTALLDIR}
97
98 # Install wrapper (suppressing leading tabs)
99 # see bug #188368 or http://www.cadsoft.de/faq.htm#17040701
100 exeinto /usr/bin
101 newexe "${FILESDIR}/eagle_wrapper_script" eagle
102 # Finally, append the path of the eagle binary respecting INSTALLDIR and any
103 # arguments passed to the script (thanks Denilson)
104 echo "${INSTALLDIR}/bin/eagle" '"$@"' >> "${D}/usr/bin/eagle"
105
106 # Install the documentation
107 cd doc
108 dodoc ${DOCS}
109 doman eagle.1
110 # Install extra documentation if requested
111 use doc && dodoc elektro-tutorial.pdf manual_${MY_LANG}.pdf tutorial_${MY_LANG}.pdf
112 # Remove docs left in INSTALLDIR
113 rm -rf "${D}${INSTALLDIR}/doc"
114 cd ..
115
116 echo -e "ROOTPATH=${INSTALLDIR}/bin\nPRELINK_PATH_MASK=${INSTALLDIR}" > "${S}/90eagle"
117 doenvd "${S}/90eagle"
118
119 # Create desktop entry
120 doicon bin/${PN}icon50.png
121 make_desktop_entry "${ROOT}/usr/bin/eagle" ${PN} ${PN}icon50.png "Graphics;Electronics"
122
123 }
124
125 pkg_postinst() {
126
127 elog "Run \`env-update && source /etc/profile\` from within \${ROOT}"
128 elog "now to set up the correct paths."
129 elog "You must first run eagle as root to invoke product registration."
130 echo
131 ewarn "Due to some necessary changes in the data structure, once you edit"
132 ewarn "a file with version 5.x you will no longer be able to edit it"
133 ewarn "with versions prior to 5.0!"
134 ewarn
135 ewarn "Please read /usr/share/doc/${PF}/UPDATE_${MY_LANG} if you are upgrading from 4.xx."
136
137 }