Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/darwin-miscutils: ChangeLog darwin-miscutils-4-r1.ebuild darwin-miscutils-6.ebuild metadata.xml darwin-miscutils-5-r1.ebuild
Date: Sun, 21 Jun 2009 13:31:39
Message-Id: E1MIN8y-0006iL-OW@stork.gentoo.org
1 grobian 09/06/21 13:31:36
2
3 Added: ChangeLog darwin-miscutils-4-r1.ebuild
4 darwin-miscutils-6.ebuild metadata.xml
5 darwin-miscutils-5-r1.ebuild
6 Log:
7 Add sys-apps/darwin-miscutils from Gentoo Prefix tree
8 (Portage version: 2.1.6.13/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.1 sys-apps/darwin-miscutils/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/darwin-miscutils/ChangeLog?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/darwin-miscutils/ChangeLog?rev=1.1&content-type=text/plain
15
16 Index: ChangeLog
17 ===================================================================
18 # ChangeLog for sys-apps/darwin-miscutils
19 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
20 # $Header: /var/cvsroot/gentoo-x86/sys-apps/darwin-miscutils/ChangeLog,v 1.1 2009/06/21 13:31:36 grobian Exp $
21
22 *darwin-miscutils-6 (19 Jun 2008)
23
24 19 Jun 2008; Fabian Groffen <grobian@g.o>
25 +darwin-miscutils-6.ebuild:
26 Version bump based on the sources of OSX 10.5.3
27
28 *darwin-miscutils-5-r1 (02 Feb 2008)
29 *darwin-miscutils-4-r1 (02 Feb 2008)
30
31 02 Feb 2008; Fabian Groffen <grobian@g.o>
32 -darwin-miscutils-4.ebuild, +darwin-miscutils-4-r1.ebuild,
33 -darwin-miscutils-5.ebuild, +darwin-miscutils-5-r1.ebuild:
34 No longer install rpcgen, since this tool is tightly associated to the OS it
35 runs on. In short, the Leopard version breaks on Tiger and vice versa.
36
37 *darwin-miscutils-4 (14 Oct 2007)
38
39 14 Oct 2007; Fabian Groffen <grobian@g.o>
40 -darwin-miscutils-3.ebuild, +darwin-miscutils-4.ebuild:
41 Add some tools of developer_cmds, to have rpcgen and unifdef
42
43 *darwin-miscutils-3 (17 Aug 2007)
44
45 17 Aug 2007; Elias Pipping <pipping@g.o>
46 -darwin-miscutils-2.ebuild, +darwin-miscutils-3.ebuild:
47 update to use latest version of shell_cmds, update header, fix typo
48
49 *darwin-miscutils-2 (15 Dec 2006)
50
51 15 Dec 2006; Fabian Groffen <grobian@g.o>
52 +darwin-miscutils-2.ebuild, -darwin-miscutils-18.ebuild:
53 New version with extra utilities from shell_cmds: alias apply getopt
54 hostname jot kill killall lastcomm renice script shlock su time w
55 whereis. Changed version scheme to be Gentoo specific, as this package
56 is a selection of programs missing in coreutils. findutils, etc.
57
58 9 Nov 2006; Fabian Groffen <grobian@g.o> :
59
60 Initial import of darwin-miscutils, a package with the tools found in
61 Darwin: cal, calendar, leave, lock, units.
62
63
64
65
66 1.1 sys-apps/darwin-miscutils/darwin-miscutils-4-r1.ebuild
67
68 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/darwin-miscutils/darwin-miscutils-4-r1.ebuild?rev=1.1&view=markup
69 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/darwin-miscutils/darwin-miscutils-4-r1.ebuild?rev=1.1&content-type=text/plain
70
71 Index: darwin-miscutils-4-r1.ebuild
72 ===================================================================
73 # Copyright 1999-2009 Gentoo Foundation
74 # Distributed under the terms of the GNU General Public License v2
75 # $Header: /var/cvsroot/gentoo-x86/sys-apps/darwin-miscutils/darwin-miscutils-4-r1.ebuild,v 1.1 2009/06/21 13:31:36 grobian Exp $
76
77 inherit toolchain-funcs
78
79 MISC_VER=18
80 SHELL_VER=81
81 DEV_VER=39
82
83 DESCRIPTION="Miscellaneous commands used on Darwin/Mac OS X systems"
84 HOMEPAGE="http://www.opensource.apple.com/"
85 SRC_URI="http://www.opensource.apple.com/darwinsource/tarballs/other/misc_cmds-${MISC_VER}.tar.gz
86 http://www.opensource.apple.com/darwinsource/tarballs/other/shell_cmds-${SHELL_VER}.tar.gz
87 http://www.opensource.apple.com/darwinsource/tarballs/other/developer_cmds-${DEV_VER}.tar.gz"
88
89 LICENSE="BSD"
90 SLOT="0"
91 KEYWORDS="~ppc-macos ~x86-macos"
92 IUSE=""
93
94 DEPEND=""
95 RDEPEND=""
96
97 S=${WORKDIR}
98
99 src_compile() {
100 local TS=${S}/misc_cmds-${MISC_VER}
101 # tsort is provided by coreutils
102 for t in cal leave lock units calendar; do
103 cd "${TS}/${t}"
104 echo "in ${TS}/${t}:"
105 echo "$(tc-getCC) -o ${t}" *.c
106 $(tc-getCC) -o ${t} *.c || die "failed to compile $t"
107 done
108
109 TS=${S}/shell_cmds-${SHELL_VER}
110 # only pick those tools not provided by coreutils, findutils
111 for t in \
112 alias apply getopt hostname jot kill killall \
113 lastcomm renice script shlock time whereis;
114 do
115 echo "in ${TS}/${t}:"
116 echo "$(tc-getCC) -o ${t} ${t}.c"
117 cd "${TS}/${t}"
118 $(tc-getCC) -o ${t} ${t}.c || die "failed to compile $t"
119 done
120 cd "${TS}/su"
121 echo "in ${TS}/su:"
122 echo "$(tc-getCC) -lpam -o su su.c"
123 $(tc-getCC) -lpam -o su su.c || die "failed to compile su"
124 cd "${TS}/w"
125 echo "in ${TS}/w:"
126 echo "$(tc-getCC) -DSUCKAGE -lresolv -o w w.c pr_time.c proc_compare.c"
127 $(tc-getCC) -DSUCKAGE -lresolv -o w w.c pr_time.c proc_compare.c \
128 || die "failed to compile w"
129
130 TS=${S}/developer_cmds-${DEV_VER}
131 # only pick those tools that do not conflict (no ctags and indent)
132 # do not install lorder, mkdep and vgrind as they are a non-prefix-aware
133 # shell scripts
134 # don't install rpcgen, as it is heavily related to the OS it runs
135 # on (and this is the Tiger version)
136 for t in asa error hexdump unifdef what ; do
137 echo "in ${TS}/${t}:"
138 echo "$(tc-getCC) -o ${t}" *.c
139 cd "${TS}/${t}"
140 sed -i -e '/^__FBSDID/d' *.c
141 $(tc-getCC) -o ${t} *.c || die "failed to compile $t"
142 done
143 }
144
145 src_install() {
146 local ED=${ED-${D}}
147
148 mkdir -p "${ED}"/bin
149 mkdir -p "${ED}"/usr/bin
150
151 local TS=${S}/misc_cmds-${MISC_VER}
152 for t in cal leave lock units calendar ; do
153 cp "${TS}/${t}/${t}" "${ED}"/usr/bin/
154 doman "${TS}/${t}/${t}.1"
155 done
156
157 TS=${S}/shell_cmds-${SHELL_VER}
158 for t in \
159 alias apply getopt jot killall lastcomm \
160 renice script shlock su time w whereis;
161 do
162 cp "${TS}/${t}/${t}" "${ED}"/usr/bin/
163 [[ -f "${TS}/${t}/${t}.1" ]] && doman "${TS}/${t}/${t}.1"
164 [[ -f "${TS}/${t}/${t}.8" ]] && doman "${TS}/${t}/${t}.8"
165 done
166 cp "${TS}/w/w" "${ED}"/usr/bin/uptime
167 doman "${TS}/w/uptime.1"
168 for t in hostname kill; do
169 cp "${TS}/${t}/${t}" "${ED}"/bin/
170 doman "${TS}/${t}/${t}.1"
171 done
172
173 TS=${S}/developer_cmds-${DEV_VER}
174 for t in asa error hexdump unifdef what ; do
175 cp "${TS}/${t}/${t}" "${ED}"/usr/bin/
176 doman "${TS}/${t}/${t}.1"
177 done
178 }
179
180
181
182 1.1 sys-apps/darwin-miscutils/darwin-miscutils-6.ebuild
183
184 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/darwin-miscutils/darwin-miscutils-6.ebuild?rev=1.1&view=markup
185 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/darwin-miscutils/darwin-miscutils-6.ebuild?rev=1.1&content-type=text/plain
186
187 Index: darwin-miscutils-6.ebuild
188 ===================================================================
189 # Copyright 1999-2009 Gentoo Foundation
190 # Distributed under the terms of the GNU General Public License v2
191 # $Header: /var/cvsroot/gentoo-x86/sys-apps/darwin-miscutils/darwin-miscutils-6.ebuild,v 1.1 2009/06/21 13:31:36 grobian Exp $
192
193 inherit toolchain-funcs eutils
194
195 MISC_VER=23
196 SHELL_VER=118
197 DEV_VER=49
198
199 DESCRIPTION="Miscellaneous commands used on Darwin/Mac OS X systems"
200 HOMEPAGE="http://www.opensource.apple.com/"
201 SRC_URI="http://www.opensource.apple.com/darwinsource/tarballs/other/misc_cmds-${MISC_VER}.tar.gz
202 http://www.opensource.apple.com/darwinsource/tarballs/other/shell_cmds-${SHELL_VER}.tar.gz
203 http://www.opensource.apple.com/darwinsource/tarballs/other/developer_cmds-${DEV_VER}.tar.gz"
204
205 LICENSE="BSD"
206 SLOT="0"
207 KEYWORDS="~ppc-macos ~x64-macos ~x86-macos"
208 IUSE=""
209
210 S=${WORKDIR}
211
212 src_unpack() {
213 unpack ${A}
214 cd "${S}"
215 epatch "${FILESDIR}"/${PN}-5-w.patch
216 epatch "${FILESDIR}"/${PN}-5-stdlib.patch
217 cd "${S}"/developer_cmds-${DEV_VER}
218 epatch "${FILESDIR}"/${PN}-5-error.patch
219 }
220
221 src_compile() {
222 local TS=${S}/misc_cmds-${MISC_VER}
223 # tsort is provided by coreutils
224 for t in leave units calendar; do
225 cd "${TS}/${t}"
226 echo "in ${TS}/${t}:"
227 echo "$(tc-getCC) -o ${t}" *.c
228 $(tc-getCC) -o ${t} *.c || die "failed to compile $t"
229 done
230 # compile cal separately
231 cd "${TS}/ncal"
232 echo "in ${TS}/ncal:"
233 local flags
234 flags[0]=-I.
235 flags[1]=-D__FBSDID=__RCSID
236 flags[2]=-Wsystem-headers
237 echo "$(tc-getCC) ${flags[@]} -c calendar.c"
238 $(tc-getCC) ${flags[@]} -c calendar.c || die "failed to compile cal"
239 echo "$(tc-getCC) ${flags[@]} -c easter.c"
240 $(tc-getCC) ${flags[@]} -c easter.c || die "failed to compile cal"
241 echo "$(tc-getCC) ${flags[@]} -c ncal.c"
242 $(tc-getCC) ${flags[@]} -c ncal.c || die "failed to compile cal"
243 echo "$(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o"
244 $(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o || die "failed to compile cal"
245
246 TS=${S}/shell_cmds-${SHELL_VER}
247 # only pick those tools not provided by coreutils, findutils
248 for t in \
249 alias apply getopt hostname jot kill \
250 lastcomm renice shlock time whereis;
251 do
252 echo "in ${TS}/${t}:"
253 echo "$(tc-getCC) -o ${t} ${t}.c"
254 cd "${TS}/${t}"
255 $(tc-getCC) -o ${t} ${t}.c || die "failed to compile $t"
256 done
257 # script and killall need additonal flags
258 for t in \
259 killall script
260 do
261 echo "in ${TS}/${t}:"
262 echo "$(tc-getCC) -D__FBSDID=__RCSID -o ${t} ${t}.c"
263 cd "${TS}/${t}"
264 $(tc-getCC) -D__FBSDID=__RCSID -o ${t} ${t}.c || die "failed to compile $t"
265 done
266 cd "${TS}/su"
267 echo "in ${TS}/su:"
268 echo "$(tc-getCC) -lpam -o su su.c"
269 $(tc-getCC) -lpam -o su su.c || die "failed to compile su"
270 cd "${TS}/w"
271 echo "in ${TS}/w:"
272 echo "$(tc-getCC) -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c"
273 $(tc-getCC) -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c \
274 || die "failed to compile w"
275
276 TS=${S}/developer_cmds-${DEV_VER}
277 # only pick those tools that do not conflict (no ctags and indent)
278 # do not install lorder, mkdep and vgrind as they are a non-prefix-aware
279 # shell scripts
280 # don't install rpcgen, as it is heavily related to the OS it runs
281 # on (and this is the Leopard version)
282 for t in asa error hexdump unifdef what ; do
283 echo "in ${TS}/${t}:"
284 cd "${TS}/${t}"
285 sed -i -e '/^__FBSDID/d' *.c
286 echo "$(tc-getCC) -o ${t}" *.c
287 $(tc-getCC) -o ${t} *.c || die "failed to compile $t"
288 done
289 }
290
291 src_install() {
292 local ED=${ED-${D}}
293
294 mkdir -p "${ED}"/bin
295 mkdir -p "${ED}"/usr/bin
296
297 local TS=${S}/misc_cmds-${MISC_VER}
298 for t in leave units calendar ; do
299 cp "${TS}/${t}/${t}" "${ED}"/usr/bin/
300 doman "${TS}/${t}/${t}.1"
301 done
302 # copy cal separately
303 cp "${TS}/ncal/cal" "${ED}"/usr/bin/
304 dosym /usr/bin/cal /usr/bin/ncal
305 doman "${TS}/ncal/ncal.1"
306 dosym /usr/share/man/man1/ncal.1 /usr/share/man/man1/cal.1
307
308 TS=${S}/shell_cmds-${SHELL_VER}
309 for t in \
310 alias apply getopt jot killall lastcomm \
311 renice script shlock su time w whereis;
312 do
313 cp "${TS}/${t}/${t}" "${ED}"/usr/bin/
314 [[ -f "${TS}/${t}/${t}.1" ]] && doman "${TS}/${t}/${t}.1"
315 [[ -f "${TS}/${t}/${t}.8" ]] && doman "${TS}/${t}/${t}.8"
316 done
317 cp "${TS}/w/w" "${ED}"/usr/bin/uptime
318 doman "${TS}/w/uptime.1"
319 for t in hostname kill; do
320 cp "${TS}/${t}/${t}" "${ED}"/bin/
321 doman "${TS}/${t}/${t}.1"
322 done
323
324 TS=${S}/developer_cmds-${DEV_VER}
325 for t in asa error hexdump unifdef what ; do
326 cp "${TS}/${t}/${t}" "${ED}"/usr/bin/
327 doman "${TS}/${t}/${t}.1"
328 done
329 }
330
331
332
333 1.1 sys-apps/darwin-miscutils/metadata.xml
334
335 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/darwin-miscutils/metadata.xml?rev=1.1&view=markup
336 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/darwin-miscutils/metadata.xml?rev=1.1&content-type=text/plain
337
338 Index: metadata.xml
339 ===================================================================
340 <?xml version="1.0" encoding="UTF-8"?>
341 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
342 <pkgmetadata>
343 <herd>apple</herd>
344 </pkgmetadata>
345
346
347
348 1.1 sys-apps/darwin-miscutils/darwin-miscutils-5-r1.ebuild
349
350 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/darwin-miscutils/darwin-miscutils-5-r1.ebuild?rev=1.1&view=markup
351 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/darwin-miscutils/darwin-miscutils-5-r1.ebuild?rev=1.1&content-type=text/plain
352
353 Index: darwin-miscutils-5-r1.ebuild
354 ===================================================================
355 # Copyright 1999-2009 Gentoo Foundation
356 # Distributed under the terms of the GNU General Public License v2
357 # $Header: /var/cvsroot/gentoo-x86/sys-apps/darwin-miscutils/darwin-miscutils-5-r1.ebuild,v 1.1 2009/06/21 13:31:36 grobian Exp $
358
359 inherit toolchain-funcs eutils
360
361 MISC_VER=23
362 SHELL_VER=118
363 DEV_VER=48
364
365 DESCRIPTION="Miscellaneous commands used on Darwin/Mac OS X systems"
366 HOMEPAGE="http://www.opensource.apple.com/"
367 SRC_URI="http://www.opensource.apple.com/darwinsource/tarballs/other/misc_cmds-${MISC_VER}.tar.gz
368 http://www.opensource.apple.com/darwinsource/tarballs/other/shell_cmds-${SHELL_VER}.tar.gz
369 http://www.opensource.apple.com/darwinsource/tarballs/other/developer_cmds-${DEV_VER}.tar.gz"
370
371 LICENSE="BSD"
372 SLOT="0"
373 KEYWORDS="~ppc-macos ~x86-macos"
374 IUSE=""
375
376 DEPEND=""
377 RDEPEND=""
378
379 S=${WORKDIR}
380
381 src_unpack() {
382 unpack ${A}
383 cd "${S}"
384 epatch "${FILESDIR}"/${P}-w.patch
385 epatch "${FILESDIR}"/${P}-error.patch
386 epatch "${FILESDIR}"/${P}-stdlib.patch
387 }
388
389 src_compile() {
390 local TS=${S}/misc_cmds-${MISC_VER}
391 # tsort is provided by coreutils
392 for t in leave units calendar; do
393 cd "${TS}/${t}"
394 echo "in ${TS}/${t}:"
395 echo "$(tc-getCC) -o ${t}" *.c
396 $(tc-getCC) -o ${t} *.c || die "failed to compile $t"
397 done
398 # compile cal separately
399 cd "${TS}/ncal"
400 echo "in ${TS}/ncal:"
401 local flags
402 flags[0]=-I.
403 flags[1]=-D__FBSDID=__RCSID
404 flags[2]=-Wsystem-headers
405 echo "$(tc-getCC) ${flags[@]} -c calendar.c"
406 $(tc-getCC) ${flags[@]} -c calendar.c || die "failed to compile cal"
407 echo "$(tc-getCC) ${flags[@]} -c easter.c"
408 $(tc-getCC) ${flags[@]} -c easter.c || die "failed to compile cal"
409 echo "$(tc-getCC) ${flags[@]} -c ncal.c"
410 $(tc-getCC) ${flags[@]} -c ncal.c || die "failed to compile cal"
411 echo "$(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o"
412 $(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o || die "failed to compile cal"
413
414 TS=${S}/shell_cmds-${SHELL_VER}
415 # only pick those tools not provided by coreutils, findutils
416 for t in \
417 alias apply getopt hostname jot kill \
418 lastcomm renice shlock time whereis;
419 do
420 echo "in ${TS}/${t}:"
421 echo "$(tc-getCC) -o ${t} ${t}.c"
422 cd "${TS}/${t}"
423 $(tc-getCC) -o ${t} ${t}.c || die "failed to compile $t"
424 done
425 # script and killall need additonal flags
426 for t in \
427 killall script
428 do
429 echo "in ${TS}/${t}:"
430 echo "$(tc-getCC) -D__FBSDID=__RCSID -o ${t} ${t}.c"
431 cd "${TS}/${t}"
432 $(tc-getCC) -D__FBSDID=__RCSID -o ${t} ${t}.c || die "failed to compile $t"
433 done
434 cd "${TS}/su"
435 echo "in ${TS}/su:"
436 echo "$(tc-getCC) -lpam -o su su.c"
437 $(tc-getCC) -lpam -o su su.c || die "failed to compile su"
438 cd "${TS}/w"
439 echo "in ${TS}/w:"
440 echo "$(tc-getCC) -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c"
441 $(tc-getCC) -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c \
442 || die "failed to compile w"
443
444 TS=${S}/developer_cmds-${DEV_VER}
445 # only pick those tools that do not conflict (no ctags and indent)
446 # do not install lorder, mkdep and vgrind as they are a non-prefix-aware
447 # shell scripts
448 # don't install rpcgen, as it is heavily related to the OS it runs
449 # on (and this is the Leopard version)
450 for t in asa error hexdump unifdef what ; do
451 echo "in ${TS}/${t}:"
452 cd "${TS}/${t}"
453 sed -i -e '/^__FBSDID/d' *.c
454 echo "$(tc-getCC) -o ${t}" *.c
455 $(tc-getCC) -o ${t} *.c || die "failed to compile $t"
456 done
457 }
458
459 src_install() {
460 local ED=${ED-${D}}
461
462 mkdir -p "${ED}"/bin
463 mkdir -p "${ED}"/usr/bin
464
465 local TS=${S}/misc_cmds-${MISC_VER}
466 for t in leave units calendar ; do
467 cp "${TS}/${t}/${t}" "${ED}"/usr/bin/
468 doman "${TS}/${t}/${t}.1"
469 done
470 # copy cal separately
471 cp "${TS}/ncal/cal" "${ED}"/usr/bin/
472 dosym /usr/bin/cal /usr/bin/ncal
473 doman "${TS}/ncal/ncal.1"
474 dosym /usr/share/man/man1/ncal.1 /usr/share/man/man1/cal.1
475
476 TS=${S}/shell_cmds-${SHELL_VER}
477 for t in \
478 alias apply getopt jot killall lastcomm \
479 renice script shlock su time w whereis;
480 do
481 cp "${TS}/${t}/${t}" "${ED}"/usr/bin/
482 [[ -f "${TS}/${t}/${t}.1" ]] && doman "${TS}/${t}/${t}.1"
483 [[ -f "${TS}/${t}/${t}.8" ]] && doman "${TS}/${t}/${t}.8"
484 done
485 cp "${TS}/w/w" "${ED}"/usr/bin/uptime
486 doman "${TS}/w/uptime.1"
487 for t in hostname kill; do
488 cp "${TS}/${t}/${t}" "${ED}"/bin/
489 doman "${TS}/${t}/${t}.1"
490 done
491
492 TS=${S}/developer_cmds-${DEV_VER}
493 for t in asa error hexdump unifdef what ; do
494 cp "${TS}/${t}/${t}" "${ED}"/usr/bin/
495 doman "${TS}/${t}/${t}.1"
496 done
497 }