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