On 21:47 Sun 07 Oct , Anant Narayanan (anant) wrote:
> 1.1 dev-lang/dmd-bin/dmd-bin-1.022.ebuild
>
> file :
> http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/dmd-bin/dmd-bin-1.022.ebuild?rev=1.1&view=markup
> 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
> # Remove unneccessary files
> mv ${S}/dmd/lib/libphobos.a ${S}/dmd
> rm -r ${S}/dmd/lib
> mkdir ${S}/dmd/lib
> mv ${S}/dmd/libphobos.a ${S}/dmd/lib
>
> rm -r ${S}/dm
> rm ${S}/dmd/bin/*.dll ${S}/dmd/bin/*.exe ${S}/dmd/bin/readme.txt
> rm ${S}/dmd/bin/sc.ini ${S}/dmd/bin/windbg.hlp
>
> # Cleanup line endings
> cd ${S}/dmd
> src_compile() {
> cd ${S}/dmd/src/phobos
> 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
> edos2unix linux.mak internal/gc/linux.mak
> make -f linux.mak
> cp libphobos.a ${S}/dmd/lib
>
> # Clean up
> make -f linux.mak clean
> rm internal/gc/*.o
> }
>
> src_install() {
> cd ${S}/dmd
Quote variables that can have spaces in them: D, S, T, WORKDIR,
FILESDIR, DESTDIR, ROOT. The latest portage release now contains a
repoman supporting this, so that's no longer an excuse.
If emake doesn't work, please add a comment to that effect.
Thanks,
Donnie
--
[EMAIL PROTECTED] mailing list