1 |
kumba 09/03/02 02:21:30 |
2 |
|
3 |
Modified: arcload-0.43-r1.ebuild ChangeLog |
4 |
Added: arcload-0.50-r1.ebuild |
5 |
Removed: arcload-0.50.ebuild |
6 |
Log: |
7 |
Make arcload cross-compilable by altering the Makefile targets, and quiet down gcc-4.x's warnings. Modified ebuild accordingly and fixed minor QA Issues. Changed mips keyword to unstable. |
8 |
(Portage version: 2.1.6.7/cvs/Linux mips64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.5 sys-boot/arcload/arcload-0.43-r1.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-boot/arcload/arcload-0.43-r1.ebuild?rev=1.5&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-boot/arcload/arcload-0.43-r1.ebuild?rev=1.5&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-boot/arcload/arcload-0.43-r1.ebuild?r1=1.4&r2=1.5 |
16 |
|
17 |
Index: arcload-0.43-r1.ebuild |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-boot/arcload/arcload-0.43-r1.ebuild,v |
20 |
retrieving revision 1.4 |
21 |
retrieving revision 1.5 |
22 |
diff -u -r1.4 -r1.5 |
23 |
--- arcload-0.43-r1.ebuild 15 Jul 2007 02:25:03 -0000 1.4 |
24 |
+++ arcload-0.43-r1.ebuild 2 Mar 2009 02:21:30 -0000 1.5 |
25 |
@@ -1,6 +1,6 @@ |
26 |
-# Copyright 1999-2007 Gentoo Foundation |
27 |
+# Copyright 1999-2009 Gentoo Foundation |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sys-boot/arcload/arcload-0.43-r1.ebuild,v 1.4 2007/07/15 02:25:03 mr_bones_ Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-boot/arcload/arcload-0.43-r1.ebuild,v 1.5 2009/03/02 02:21:30 kumba Exp $ |
31 |
|
32 |
inherit eutils toolchain-funcs |
33 |
|
34 |
@@ -9,9 +9,10 @@ |
35 |
SRC_URI="ftp://ftp.linux-mips.org/pub/linux/mips/people/skylark/${P}.tar.bz2" |
36 |
LICENSE="as-is" |
37 |
SLOT="0" |
38 |
-KEYWORDS="-* mips" |
39 |
+KEYWORDS="-* ~mips" |
40 |
IUSE="" |
41 |
DEPEND="sys-boot/dvhtool" |
42 |
+RDEPEND="" |
43 |
RESTRICT="strip" |
44 |
|
45 |
pkg_setup() { |
46 |
@@ -31,31 +32,30 @@ |
47 |
# Adds in detection support for the R14000, and |
48 |
# tweaks detectbaud() in loader/detect.c to return |
49 |
# a default of 9600bps when the function fails |
50 |
- epatch ${FILESDIR}/${P}-tweaks1.patch |
51 |
+ epatch "${FILESDIR}"/${P}-tweaks1.patch |
52 |
} |
53 |
|
54 |
src_compile() { |
55 |
echo -e "" |
56 |
einfo ">>> Building 32-bit version (sashARCS) for IP22/IP32 ..." |
57 |
- cd ${S} |
58 |
+ cd "${S}" |
59 |
make MODE=M32 clean || die |
60 |
make CC=$(tc-getCC) LD=$(tc-getLD) MODE=M32 || die |
61 |
- cp ${S}/arcload.ecoff ${WORKDIR}/sashARCS |
62 |
+ cp "${S}"/arcload.ecoff "${WORKDIR}"/sashARCS |
63 |
|
64 |
echo -e "" |
65 |
einfo ">>> Building 64-bit version (sash64) for IP27/IP28/IP30 ..." |
66 |
make MODE=M64 clean || die |
67 |
make CC=$(tc-getCC) LD=$(tc-getLD) MODE=M64 || die |
68 |
- cp ${S}/arcload ${WORKDIR}/sash64 |
69 |
+ cp $"{S}"/arcload "${WORKDIR}"/sash64 |
70 |
} |
71 |
|
72 |
src_install() { |
73 |
- cd ${S} |
74 |
dodir /usr/lib/arcload |
75 |
- cp ${WORKDIR}/sashARCS ${D}/usr/lib/arcload |
76 |
- cp ${WORKDIR}/sash64 ${D}/usr/lib/arcload |
77 |
- cp ${S}/arc.cf-bootcd ${D}/usr/lib/arcload/arc-bootcd.cf |
78 |
- cp ${S}/arc.cf-octane ${D}/usr/lib/arcload/arc-octane.cf |
79 |
+ cp "${WORKDIR}"/sashARCS "${D}"/usr/lib/arcload |
80 |
+ cp "${WORKDIR}"/sash64 "${D}"/usr/lib/arcload |
81 |
+ cp "${S}"/arc.cf-bootcd "${D}"/usr/lib/arcload/arc-bootcd.cf |
82 |
+ cp "${S}"/arc.cf-octane "${D}"/usr/lib/arcload/arc-octane.cf |
83 |
} |
84 |
|
85 |
pkg_postinst() { |
86 |
|
87 |
|
88 |
|
89 |
1.11 sys-boot/arcload/ChangeLog |
90 |
|
91 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-boot/arcload/ChangeLog?rev=1.11&view=markup |
92 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-boot/arcload/ChangeLog?rev=1.11&content-type=text/plain |
93 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-boot/arcload/ChangeLog?r1=1.10&r2=1.11 |
94 |
|
95 |
Index: ChangeLog |
96 |
=================================================================== |
97 |
RCS file: /var/cvsroot/gentoo-x86/sys-boot/arcload/ChangeLog,v |
98 |
retrieving revision 1.10 |
99 |
retrieving revision 1.11 |
100 |
diff -u -r1.10 -r1.11 |
101 |
--- ChangeLog 2 Jul 2007 15:29:42 -0000 1.10 |
102 |
+++ ChangeLog 2 Mar 2009 02:21:30 -0000 1.11 |
103 |
@@ -1,6 +1,16 @@ |
104 |
# ChangeLog for sys-boot/arcload |
105 |
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
106 |
-# $Header: /var/cvsroot/gentoo-x86/sys-boot/arcload/ChangeLog,v 1.10 2007/07/02 15:29:42 peper Exp $ |
107 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
108 |
+# $Header: /var/cvsroot/gentoo-x86/sys-boot/arcload/ChangeLog,v 1.11 2009/03/02 02:21:30 kumba Exp $ |
109 |
+ |
110 |
+ 02 Mar 2009; Joshua Kinard <kumba@g.o> |
111 |
+ +files/arcload-0.50-makefile-targets.patch, |
112 |
+ +files/arcload-0.50-shut-gcc4x-up.patch, arcload-0.43-r1.ebuild, |
113 |
+ -arcload-0.50.ebuild, +arcload-0.50-r1.ebuild: |
114 |
+ Make arcload cross-compilable by altering the Makefile targets, and quiet |
115 |
+ down gcc-4.x's warnings. Modified ebuild accordingly and fixed minor QA |
116 |
+ Issues. Changed mips keyword to unstable. |
117 |
+ |
118 |
+*arcload-0.50-r1 (02 Mar 2009) |
119 |
|
120 |
02 Jul 2007; Piotr JaroszyĆski <peper@g.o> arcload-0.43-r1.ebuild, |
121 |
arcload-0.50.ebuild: |
122 |
|
123 |
|
124 |
|
125 |
1.1 sys-boot/arcload/arcload-0.50-r1.ebuild |
126 |
|
127 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-boot/arcload/arcload-0.50-r1.ebuild?rev=1.1&view=markup |
128 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-boot/arcload/arcload-0.50-r1.ebuild?rev=1.1&content-type=text/plain |
129 |
|
130 |
Index: arcload-0.50-r1.ebuild |
131 |
=================================================================== |
132 |
# Copyright 1999-2009 Gentoo Foundation |
133 |
# Distributed under the terms of the GNU General Public License v2 |
134 |
# $Header: /var/cvsroot/gentoo-x86/sys-boot/arcload/arcload-0.50-r1.ebuild,v 1.1 2009/03/02 02:21:30 kumba Exp $ |
135 |
|
136 |
inherit eutils toolchain-funcs versionator |
137 |
|
138 |
# Hack until upstream renames from 0.5 to 0.50 |
139 |
MY_PV="${PV/50/5}" |
140 |
|
141 |
DESCRIPTION="ARCLoad - SGI Multi-bootloader. Able to bootload many different SGI Systems." |
142 |
HOMEPAGE="http://www.linux-mips.org/wiki/index.php/ARCLoad" |
143 |
SRC_URI="ftp://ftp.linux-mips.org/pub/linux/mips/people/skylark/${PN}-${MY_PV}.tar.bz2" |
144 |
LICENSE="as-is" |
145 |
SLOT="0" |
146 |
KEYWORDS="-* ~mips" |
147 |
IUSE="" |
148 |
DEPEND="sys-boot/dvhtool" |
149 |
RDEPEND="" |
150 |
RESTRICT="strip" |
151 |
S="${WORKDIR}/${PN}-${MY_PV}" |
152 |
|
153 |
pkg_setup() { |
154 |
# See if we're on a cobalt system |
155 |
if [ "${PROFILE_ARCH}" = "cobalt" ]; then |
156 |
echo -e "" |
157 |
eerror "This package is only intended for SGI systems. It will not work on any" |
158 |
eerror "other types of MIPS-based systems or any other architectures" |
159 |
echo -e "" |
160 |
die |
161 |
fi |
162 |
} |
163 |
|
164 |
src_unpack() { |
165 |
unpack ${A} |
166 |
cd "${S}" |
167 |
# For gcc-4.x, quiet down some of the warnings |
168 |
$(version_is_at_least "4.0" "$(gcc-version)") && \ |
169 |
epatch "${FILESDIR}"/${P}-shut-gcc4x-up.patch |
170 |
|
171 |
# Redefine the targets in the primary Makefile to give us |
172 |
# finer control over building the tools. This is for properly |
173 |
# cross-compiling arcload |
174 |
epatch "${FILESDIR}"/${P}-makefile-targets.patch |
175 |
} |
176 |
|
177 |
src_compile() { |
178 |
# Build the wreckoff tool first. It converts a 32bit MIPS ELF |
179 |
# into a relocatable ECOFF image. We call for BUILD_CC |
180 |
# on the offchance that we're cross-compiling. |
181 |
echo -e "" |
182 |
einfo ">>> Building the 'wreckoff' utility with $(tc-getBUILD_CC) ..." |
183 |
make CC=$(tc-getBUILD_CC) tools_clean tools || die |
184 |
|
185 |
# 32bit copy (sashARCS for IP22/IP32) |
186 |
echo -e "" |
187 |
einfo ">>> Building 32-bit version (sashARCS) for IP22/IP32 ..." |
188 |
cd "${S}" |
189 |
make MODE=M32 bootloader_clean || die |
190 |
make CC=$(tc-getCC) LD=$(tc-getLD) MODE=M32 bootloader || die |
191 |
cp "${S}"/arcload.ecoff "${WORKDIR}"/sashARCS |
192 |
|
193 |
# 64bit copy (sash64 for IP27/IP28/IP30) |
194 |
echo -e "" |
195 |
einfo ">>> Building 64-bit version (sash64) for IP27/IP28/IP30 ..." |
196 |
make MODE=M64 bootloader_clean || die |
197 |
make CC=$(tc-getCC) LD=$(tc-getLD) MODE=M64 bootloader || die |
198 |
cp "${S}"/arcload "${WORKDIR}"/sash64 |
199 |
} |
200 |
|
201 |
src_install() { |
202 |
dodir /usr/lib/arcload |
203 |
cp "${WORKDIR}"/sashARCS "${D}"/usr/lib/arcload |
204 |
cp "${WORKDIR}"/sash64 "${D}"/usr/lib/arcload |
205 |
cp "${S}"/arc.cf-bootcd "${D}"/usr/lib/arcload/arc-bootcd.cf |
206 |
cp "${S}"/arc.cf-octane "${D}"/usr/lib/arcload/arc-octane.cf |
207 |
} |
208 |
|
209 |
pkg_postinst() { |
210 |
echo -e "" |
211 |
einfo "ARCLoad binaries copied to: /usr/lib/arcload" |
212 |
echo -e "" |
213 |
einfo "Use of ARCLoad is relatively easy:" |
214 |
einfo "\t1) Determine which version you need" |
215 |
einfo "\t\tA) sashARCS for IP22/IP32" |
216 |
einfo "\t\tB) sash64 for IP27/IP28/IP30" |
217 |
einfo "\t2) Copy that to the volume header using 'dvhtool'" |
218 |
einfo "\t3) Edit /usr/lib/arcload/arc-*.cf to fit your specific system" |
219 |
einfo "\t (See ${HOMEPAGE} for" |
220 |
einfo "\t an explanation of the format of the config file)" |
221 |
einfo "\t4) Copy the config file to the volume header with 'dvhtool' as 'arc.cf'" |
222 |
einfo "\t5) Copy any kernels to the volume header that you want to be bootable" |
223 |
einfo "\t6) Reboot, and enjoy!" |
224 |
echo -e "" |
225 |
} |