1 |
On 21:47 Sun 07 Oct , Anant Narayanan (anant) wrote: |
2 |
> 1.1 dev-lang/dmd-bin/dmd-bin-1.022.ebuild |
3 |
> |
4 |
> file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/dmd-bin/dmd-bin-1.022.ebuild?rev=1.1&view=markup |
5 |
> plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/dmd-bin/dmd-bin-1.022.ebuild?rev=1.1&content-type=text/plain |
6 |
|
7 |
> # Remove unneccessary files |
8 |
> mv ${S}/dmd/lib/libphobos.a ${S}/dmd |
9 |
> rm -r ${S}/dmd/lib |
10 |
> mkdir ${S}/dmd/lib |
11 |
> mv ${S}/dmd/libphobos.a ${S}/dmd/lib |
12 |
> |
13 |
> rm -r ${S}/dm |
14 |
> rm ${S}/dmd/bin/*.dll ${S}/dmd/bin/*.exe ${S}/dmd/bin/readme.txt |
15 |
> rm ${S}/dmd/bin/sc.ini ${S}/dmd/bin/windbg.hlp |
16 |
> |
17 |
> # Cleanup line endings |
18 |
> cd ${S}/dmd |
19 |
|
20 |
> src_compile() { |
21 |
> cd ${S}/dmd/src/phobos |
22 |
> 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 |
23 |
> edos2unix linux.mak internal/gc/linux.mak |
24 |
> make -f linux.mak |
25 |
> cp libphobos.a ${S}/dmd/lib |
26 |
> |
27 |
> # Clean up |
28 |
> make -f linux.mak clean |
29 |
> rm internal/gc/*.o |
30 |
> } |
31 |
> |
32 |
> src_install() { |
33 |
> cd ${S}/dmd |
34 |
|
35 |
Quote variables that can have spaces in them: D, S, T, WORKDIR, |
36 |
FILESDIR, DESTDIR, ROOT. The latest portage release now contains a |
37 |
repoman supporting this, so that's no longer an excuse. |
38 |
|
39 |
If emake doesn't work, please add a comment to that effect. |
40 |
|
41 |
Thanks, |
42 |
Donnie |
43 |
-- |
44 |
gentoo-dev@g.o mailing list |