1 |
nixphoeni 11/02/21 23:24:08 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: eagle-5.11.0.ebuild |
5 |
Log: |
6 |
Version bump and added versions to pretty much everything that gets installed (for potential SLOTting later) |
7 |
|
8 |
(Portage version: 2.1.9.40/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.46 sci-electronics/eagle/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-electronics/eagle/ChangeLog?rev=1.46&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-electronics/eagle/ChangeLog?rev=1.46&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-electronics/eagle/ChangeLog?r1=1.45&r2=1.46 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-electronics/eagle/ChangeLog,v |
20 |
retrieving revision 1.45 |
21 |
retrieving revision 1.46 |
22 |
diff -u -r1.45 -r1.46 |
23 |
--- ChangeLog 21 Feb 2011 19:34:10 -0000 1.45 |
24 |
+++ ChangeLog 21 Feb 2011 23:24:08 -0000 1.46 |
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.45 2011/02/21 19:34:10 hwoarang Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/eagle/ChangeLog,v 1.46 2011/02/21 23:24:08 nixphoeni Exp $ |
30 |
+ |
31 |
+*eagle-5.11.0 (21 Feb 2011) |
32 |
+ |
33 |
+ 21 Feb 2011; Joe Sapp <nixphoeni@g.o> +eagle-5.11.0.ebuild: |
34 |
+ Version bump: added versions to pretty much everything that gets installed |
35 |
+ (for potential SLOTting later); made the desktop menu entry more descriptive |
36 |
|
37 |
21 Feb 2011; Markos Chandras <hwoarang@g.o> eagle-5.10.0-r1.ebuild: |
38 |
Stable on amd64 wrt bug #355863 |
39 |
|
40 |
|
41 |
|
42 |
1.1 sci-electronics/eagle/eagle-5.11.0.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-electronics/eagle/eagle-5.11.0.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-electronics/eagle/eagle-5.11.0.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: eagle-5.11.0.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2011 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/sci-electronics/eagle/eagle-5.11.0.ebuild,v 1.1 2011/02/21 23:24:08 nixphoeni Exp $ |
52 |
|
53 |
EAPI="1" |
54 |
|
55 |
inherit eutils |
56 |
|
57 |
DESCRIPTION="CadSoft EAGLE schematic and printed circuit board (PCB) layout editor" |
58 |
HOMEPAGE="http://www.cadsoft.de" |
59 |
|
60 |
KEYWORDS="~amd64 ~x86" |
61 |
IUSE="doc linguas_de linguas_zh" |
62 |
LICENSE="cadsoft" |
63 |
RESTRICT="strip test" |
64 |
SLOT="0" |
65 |
|
66 |
SRC_URI="ftp://ftp.cadsoft.de/eagle/program/${PV%\.[0-9]}/${PN}-lin-${PV}.run" |
67 |
|
68 |
QA_DT_HASH="opt/eagle-${PV}/bin/eagle" |
69 |
|
70 |
RDEPEND="sys-libs/glibc |
71 |
x11-libs/libXext |
72 |
x11-libs/libX11 |
73 |
x11-libs/libXau |
74 |
x11-libs/libXdmcp |
75 |
x86? ( media-libs/jpeg:62 |
76 |
media-libs/libpng:1.2 |
77 |
=dev-libs/openssl-0.9.8* ) |
78 |
amd64? ( app-emulation/emul-linux-x86-baselibs |
79 |
app-emulation/emul-linux-x86-xlibs )" |
80 |
|
81 |
# Append ${PV} since that's what upstream installs to |
82 |
INSTALLDIR="/opt/eagle-${PV}" |
83 |
case "${LINGUAS}" in |
84 |
*de*) |
85 |
MY_LANG="de";; |
86 |
*) |
87 |
MY_LANG="en";; |
88 |
esac |
89 |
# Mandatory documentation being installed |
90 |
DOCS="README_${MY_LANG} UPDATE_${MY_LANG} library_${MY_LANG}.txt" |
91 |
|
92 |
src_unpack() { |
93 |
|
94 |
# Extract the built-in .tar.bz2 file starting at __DATA__ |
95 |
sed -e '1,/^__DATA__$/d' "${DISTDIR}/${A}" | tar xj || die "unpacking failed" |
96 |
|
97 |
} |
98 |
|
99 |
src_install() { |
100 |
|
101 |
# Set MY_LANG for this function only since UPDATE_zh and README_zh |
102 |
# don't exist |
103 |
[[ ${LINGUAS} == *zh* ]] && MY_INST_LANG="zh" || MY_INST_LANG="${MY_LANG}" |
104 |
|
105 |
cd "${S}" |
106 |
dodir ${INSTALLDIR} |
107 |
# Copy all to INSTALLDIR |
108 |
cp -r . "${D}"/${INSTALLDIR} |
109 |
|
110 |
# Install wrapper (suppressing leading tabs) |
111 |
# see bug #188368 or http://www.cadsoft.de/faq.htm#17040701 |
112 |
exeinto /usr/bin |
113 |
newexe "${FILESDIR}/eagle_wrapper_script" eagle-${PV} |
114 |
dosym eagle-${PV} /usr/bin/eagle |
115 |
# Finally, append the path of the eagle binary respecting INSTALLDIR and any |
116 |
# arguments passed to the script (thanks Denilson) |
117 |
echo "${INSTALLDIR}/bin/eagle" '"$@"' >> "${D}/usr/bin/eagle-${PV}" |
118 |
|
119 |
# Install the documentation |
120 |
cd doc |
121 |
dodoc ${DOCS} |
122 |
doman eagle.1 |
123 |
# Install extra documentation if requested |
124 |
use doc && dodoc elektro-tutorial.pdf manual_${MY_INST_LANG}.pdf tutorial_${MY_INST_LANG}.pdf |
125 |
# Remove docs left in INSTALLDIR |
126 |
rm -rf "${D}${INSTALLDIR}/doc" |
127 |
cd .. |
128 |
|
129 |
echo -e "ROOTPATH=${INSTALLDIR}/bin\nPRELINK_PATH_MASK=${INSTALLDIR}" > "${S}/90eagle-${PV}" |
130 |
doenvd "${S}/90eagle-${PV}" |
131 |
|
132 |
# Create desktop entry |
133 |
mv bin/${PN}icon50.png bin/${PF}-icon50.png |
134 |
doicon bin/${PF}-icon50.png |
135 |
make_desktop_entry "${ROOT}/usr/bin/eagle-${PV}" "CadSoft EAGLE Layout Editor" ${PF}-icon50 "Graphics;Electronics" |
136 |
|
137 |
} |
138 |
|
139 |
pkg_postinst() { |
140 |
|
141 |
elog "Run \`env-update && source /etc/profile\` from within \${ROOT}" |
142 |
elog "now to set up the correct paths." |
143 |
elog "You must first run eagle as root to invoke product registration." |
144 |
echo |
145 |
ewarn "Due to some necessary changes in the data structure, once you edit" |
146 |
ewarn "a file with version 5.x you will no longer be able to edit it" |
147 |
ewarn "with versions prior to 5.0!" |
148 |
ewarn |
149 |
ewarn "Please read /usr/share/doc/${PF}/UPDATE_${MY_LANG} if you are upgrading from 4.xx." |
150 |
|
151 |
} |