1 |
grobian 11/04/02 15:36:37 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: darwin-miscutils-8.ebuild |
5 |
Log: |
6 |
Bump to Snow Leopard version 10.6.3 |
7 |
|
8 |
(Portage version: 2.2.01.18213-prefix/cvs/Darwin powerpc) |
9 |
|
10 |
Revision Changes Path |
11 |
1.7 sys-apps/darwin-miscutils/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/darwin-miscutils/ChangeLog?rev=1.7&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/darwin-miscutils/ChangeLog?rev=1.7&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/darwin-miscutils/ChangeLog?r1=1.6&r2=1.7 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/darwin-miscutils/ChangeLog,v |
20 |
retrieving revision 1.6 |
21 |
retrieving revision 1.7 |
22 |
diff -u -r1.6 -r1.7 |
23 |
--- ChangeLog 5 Mar 2010 18:04:28 -0000 1.6 |
24 |
+++ ChangeLog 2 Apr 2011 15:36:37 -0000 1.7 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for sys-apps/darwin-miscutils |
27 |
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/darwin-miscutils/ChangeLog,v 1.6 2010/03/05 18:04:28 grobian Exp $ |
29 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/darwin-miscutils/ChangeLog,v 1.7 2011/04/02 15:36:37 grobian Exp $ |
31 |
+ |
32 |
+*darwin-miscutils-8 (02 Apr 2011) |
33 |
+ |
34 |
+ 02 Apr 2011; Fabian Groffen <grobian@g.o> +darwin-miscutils-8.ebuild: |
35 |
+ Bump to Snow Leopard version 10.6.3 |
36 |
|
37 |
05 Mar 2010; Fabian Groffen <grobian@g.o> |
38 |
darwin-miscutils-4-r1.ebuild, darwin-miscutils-5-r1.ebuild, |
39 |
|
40 |
|
41 |
|
42 |
1.1 sys-apps/darwin-miscutils/darwin-miscutils-8.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/darwin-miscutils/darwin-miscutils-8.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/darwin-miscutils/darwin-miscutils-8.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: darwin-miscutils-8.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/sys-apps/darwin-miscutils/darwin-miscutils-8.ebuild,v 1.1 2011/04/02 15:36:37 grobian Exp $ |
52 |
|
53 |
EAPI="3" |
54 |
|
55 |
inherit toolchain-funcs eutils |
56 |
|
57 |
MISC_VER=27 |
58 |
SHELL_VER=149 |
59 |
DEV_VER=53.1 |
60 |
|
61 |
DESCRIPTION="Miscellaneous commands used on Darwin/Mac OS X systems, Snow Leopard 10.6.3" |
62 |
HOMEPAGE="http://www.opensource.apple.com/" |
63 |
SRC_URI="http://www.opensource.apple.com/darwinsource/tarballs/other/misc_cmds-${MISC_VER}.tar.gz |
64 |
http://www.opensource.apple.com/darwinsource/tarballs/other/shell_cmds-${SHELL_VER}.tar.gz |
65 |
http://www.opensource.apple.com/darwinsource/tarballs/other/developer_cmds-${DEV_VER}.tar.gz" |
66 |
|
67 |
LICENSE="BSD" |
68 |
SLOT="0" |
69 |
KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" |
70 |
IUSE="" |
71 |
|
72 |
S=${WORKDIR} |
73 |
|
74 |
src_prepare() { |
75 |
cd "${S}"/shell_cmds-${SHELL_VER} |
76 |
epatch "${FILESDIR}"/${PN}-6-w64.patch |
77 |
} |
78 |
|
79 |
src_compile() { |
80 |
local flags=( |
81 |
${CFLAGS} |
82 |
-I. |
83 |
-D__FBSDID=__RCSID |
84 |
-Wsystem-headers |
85 |
-Du_int=uint32_t |
86 |
-include stdint.h |
87 |
${LDFLAGS} |
88 |
) |
89 |
|
90 |
local TS=${S}/misc_cmds-${MISC_VER} |
91 |
# tsort is provided by coreutils |
92 |
for t in leave units calendar; do |
93 |
cd "${TS}/${t}" |
94 |
echo "in ${TS}/${t}:" |
95 |
echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c |
96 |
$(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t" |
97 |
done |
98 |
# compile cal separately |
99 |
cd "${TS}/ncal" |
100 |
echo "in ${TS}/ncal:" |
101 |
echo "$(tc-getCC) ${flags[@]} -c calendar.c" |
102 |
$(tc-getCC) ${flags[@]} -c calendar.c || die "failed to compile cal" |
103 |
echo "$(tc-getCC) ${flags[@]} -c easter.c" |
104 |
$(tc-getCC) ${flags[@]} -c easter.c || die "failed to compile cal" |
105 |
echo "$(tc-getCC) ${flags[@]} -c ncal.c" |
106 |
$(tc-getCC) ${flags[@]} -c ncal.c || die "failed to compile cal" |
107 |
echo "$(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o" |
108 |
$(tc-getCC) ${flags[@]} -o cal calendar.o easter.o ncal.o || die "failed to compile cal" |
109 |
|
110 |
TS=${S}/shell_cmds-${SHELL_VER} |
111 |
# only pick those tools not provided by coreutils, findutils |
112 |
for t in \ |
113 |
alias apply getopt hostname jot kill killall \ |
114 |
lastcomm renice script shlock time whereis; |
115 |
do |
116 |
echo "in ${TS}/${t}:" |
117 |
echo "$(tc-getCC) ${flags[@]} -o ${t} ${t}.c" |
118 |
cd "${TS}/${t}" |
119 |
$(tc-getCC) ${flags[@]} -o ${t} ${t}.c || die "failed to compile $t" |
120 |
done |
121 |
cd "${TS}/w" |
122 |
sed -i -e '/#include <libutil.h>/d' w.c || die |
123 |
echo "in ${TS}/w:" |
124 |
echo "$(tc-getCC) ${flags[@]} -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c" |
125 |
$(tc-getCC) ${flags[@]} -DHAVE_UTMPX=1 -lresolv -o w w.c pr_time.c proc_compare.c \ |
126 |
|| die "failed to compile w" |
127 |
|
128 |
TS=${S}/developer_cmds-${DEV_VER} |
129 |
# only pick those tools that do not conflict (no ctags and indent) |
130 |
# do not install lorder, mkdep and vgrind as they are a non-prefix-aware |
131 |
# shell scripts |
132 |
# don't install rpcgen, as it is heavily related to the OS it runs |
133 |
# on (and this is the Snow Leopard version) |
134 |
for t in asa hexdump unifdef what ; do |
135 |
echo "in ${TS}/${t}:" |
136 |
cd "${TS}/${t}" || die |
137 |
echo "$(tc-getCC) ${flags[@]} -o ${t}" *.c |
138 |
$(tc-getCC) ${flags[@]} -o ${t} *.c || die "failed to compile $t" |
139 |
done |
140 |
} |
141 |
|
142 |
src_install() { |
143 |
mkdir -p "${ED}"/bin |
144 |
mkdir -p "${ED}"/usr/bin |
145 |
|
146 |
local TS=${S}/misc_cmds-${MISC_VER} |
147 |
for t in leave units calendar ; do |
148 |
cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ |
149 |
doman "${TS}/${t}/${t}.1" |
150 |
done |
151 |
# copy cal separately |
152 |
cp "${TS}/ncal/cal" "${ED}"/usr/bin/ |
153 |
dosym /usr/bin/cal /usr/bin/ncal |
154 |
doman "${TS}/ncal/ncal.1" |
155 |
dosym /usr/share/man/man1/ncal.1 /usr/share/man/man1/cal.1 |
156 |
|
157 |
TS=${S}/shell_cmds-${SHELL_VER} |
158 |
for t in \ |
159 |
alias apply getopt jot killall lastcomm \ |
160 |
renice script shlock 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 hexdump unifdef what ; do |
175 |
cp "${TS}/${t}/${t}" "${ED}"/usr/bin/ |
176 |
doman "${TS}/${t}/${t}.1" |
177 |
done |
178 |
} |