1 |
anant 07/11/03 21:48:10 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: dmd-bin-1.023.ebuild |
5 |
Log: |
6 |
bump to 1.023, closes #197919 |
7 |
(Portage version: 2.1.3.16) |
8 |
|
9 |
Revision Changes Path |
10 |
1.12 dev-lang/dmd-bin/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/dmd-bin/ChangeLog?rev=1.12&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/dmd-bin/ChangeLog?rev=1.12&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/dmd-bin/ChangeLog?r1=1.11&r2=1.12 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/dmd-bin/ChangeLog,v |
19 |
retrieving revision 1.11 |
20 |
retrieving revision 1.12 |
21 |
diff -u -r1.11 -r1.12 |
22 |
--- ChangeLog 8 Oct 2007 06:01:46 -0000 1.11 |
23 |
+++ ChangeLog 3 Nov 2007 21:48:10 -0000 1.12 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for dev-lang/dmd-bin |
26 |
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/dmd-bin/ChangeLog,v 1.11 2007/10/08 06:01:46 anant Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/dmd-bin/ChangeLog,v 1.12 2007/11/03 21:48:10 anant Exp $ |
29 |
+ |
30 |
+*dmd-bin-1.023 (03 Nov 2007) |
31 |
+ |
32 |
+ 03 Nov 2007; Anant Narayanan <anant@g.o> +dmd-bin-1.023.ebuild: |
33 |
+ bump to 1.023, closes #197919 |
34 |
|
35 |
08 Oct 2007; Anant Narayanan <anant@g.o> dmd-bin-1.022.ebuild: |
36 |
QA fixes (quoting) |
37 |
|
38 |
|
39 |
|
40 |
1.1 dev-lang/dmd-bin/dmd-bin-1.023.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/dmd-bin/dmd-bin-1.023.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/dmd-bin/dmd-bin-1.023.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: dmd-bin-1.023.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2007 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/dmd-bin/dmd-bin-1.023.ebuild,v 1.1 2007/11/03 21:48:10 anant Exp $ |
50 |
|
51 |
inherit eutils |
52 |
|
53 |
MY_P=${P/-bin/} |
54 |
MY_P=${MY_P/-/.} |
55 |
|
56 |
DESCRIPTION="Digital Mars D Compiler" |
57 |
HOMEPAGE="http://www.digitalmars.com/d/" |
58 |
SRC_URI="http://ftp.digitalmars.com/${MY_P}.zip" |
59 |
|
60 |
LICENSE="DMD" |
61 |
RESTRICT="mirror strip" |
62 |
SLOT="0" |
63 |
KEYWORDS="~x86" |
64 |
|
65 |
LOC="/opt/dmd" |
66 |
S="${WORKDIR}" |
67 |
|
68 |
DEPEND="sys-apps/findutils" |
69 |
RDEPEND="amd64? ( app-emulation/emul-linux-x86-compat ) |
70 |
x86? ( sys-libs/libstdc++-v3 )" |
71 |
|
72 |
src_unpack() { |
73 |
unpack "${A}" |
74 |
|
75 |
# Remove unneccessary files |
76 |
mv "${S}/dmd/lib/libphobos.a" "${S}/dmd" |
77 |
rm -r "${S}/dmd/lib" |
78 |
mkdir "${S}/dmd/lib" |
79 |
mv "${S}/dmd/libphobos.a" "${S}/dmd/lib" |
80 |
|
81 |
rm -r "${S}/dm" |
82 |
rm "${S}/dmd/bin/*.dll" "${S}/dmd/bin/*.exe" "${S}/dmd/bin/readme.txt" |
83 |
rm "${S}/dmd/bin/sc.ini" "${S}/dmd/bin/windbg.hlp" |
84 |
|
85 |
# Cleanup line endings |
86 |
cd "${S}/dmd" |
87 |
edos2unix `find . -name '*.c' -type f` |
88 |
edos2unix `find . -name '*.d' -type f` |
89 |
edos2unix `find . -name '*.ddoc' -type f` |
90 |
edos2unix `find . -name '*.h' -type f` |
91 |
edos2unix `find . -name '*.mak' -type f` |
92 |
edos2unix `find . -name '*.txt' -type f` |
93 |
edos2unix `find samples -name '*.html' -type f` |
94 |
|
95 |
# Fix permissions |
96 |
fperms guo=r `find . -type f` |
97 |
fperms guo=rx `find . -type d` |
98 |
fperms guo=rx bin/dmd bin/dumpobj bin/obj2asm bin/rdmd |
99 |
} |
100 |
|
101 |
src_compile() { |
102 |
cd "${S}/dmd/src/phobos" |
103 |
sed -i -e "s:DMD=.*:DMD=${S}/dmd/bin/dmd -I${S}/dmd/src/phobos -L${S}/dmd/lib/libphobos.a:" linux.mak internal/gc/linux.mak |
104 |
# Can't use emake, customized build system |
105 |
edos2unix linux.mak internal/gc/linux.mak |
106 |
make -f linux.mak |
107 |
cp libphobos.a "${S}/dmd/lib" |
108 |
|
109 |
# Clean up |
110 |
make -f linux.mak clean |
111 |
rm internal/gc/*.o |
112 |
} |
113 |
|
114 |
src_install() { |
115 |
cd "${S}/dmd" |
116 |
|
117 |
# Broken dmd.conf |
118 |
# http://d.puremagic.com/issues/show_bug.cgi?id=278 |
119 |
mv bin/dmd bin/dmd.bin |
120 |
cat <<END > "bin/dmd" |
121 |
#!/bin/sh |
122 |
${LOC}/bin/dmd.bin -I${LOC}/src/phobos -L${LOC}/lib/libphobos.a \$* |
123 |
END |
124 |
fperms guo=rx bin/dmd bin/dmd.bin |
125 |
|
126 |
# Man pages |
127 |
doman man/man1/dmd.1 |
128 |
doman man/man1/dumpobj.1 |
129 |
doman man/man1/obj2asm.1 |
130 |
rm -r man |
131 |
|
132 |
# Install |
133 |
mkdir "${D}/opt" |
134 |
mv "${S}/dmd" "${D}/opt/dmd" |
135 |
|
136 |
# Set PATH |
137 |
doenvd "${FILESDIR}/25dmd" |
138 |
} |
139 |
|
140 |
pkg_postinst () { |
141 |
ewarn "The DMD Configuration file has been disabled, " |
142 |
ewarn "and will be re-enabled when: " |
143 |
ewarn " " |
144 |
ewarn "http://d.puremagic.com/issues/show_bug.cgi?id=278" |
145 |
ewarn " " |
146 |
ewarn "has been fixed. Meanwhile, please supply all your" |
147 |
ewarn "configuration options in the /opt/dmd/bin/dmd " |
148 |
ewarn "shell script. " |
149 |
ewarn " " |
150 |
ewarn "You may need to run: " |
151 |
ewarn " " |
152 |
ewarn "env-update && source /etc/profile " |
153 |
ewarn " " |
154 |
ewarn "to be able to use the compiler immediately. " |
155 |
ewarn " " |
156 |
} |
157 |
|
158 |
|
159 |
|
160 |
-- |
161 |
gentoo-commits@g.o mailing list |