* [gentoo-commits] gentoo-x86 commit in dev-lang/dmd-bin: ChangeLog dmd-bin-2.008-r1.ebuild dmd-bin-2.008.ebuild
@ 2008-01-18 16:11 Anant Narayanan (anant)
0 siblings, 0 replies; only message in thread
From: Anant Narayanan (anant) @ 2008-01-18 16:11 UTC (permalink / raw
To: gentoo-commits
anant 08/01/18 16:11:26
Modified: ChangeLog
Added: dmd-bin-2.008-r1.ebuild
Removed: dmd-bin-2.008.ebuild
Log:
Cleanup ebuild.
(Portage version: 2.1.4)
Revision Changes Path
1.14 dev-lang/dmd-bin/ChangeLog
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/dmd-bin/ChangeLog?rev=1.14&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/dmd-bin/ChangeLog?rev=1.14&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/dmd-bin/ChangeLog?r1=1.13&r2=1.14
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-lang/dmd-bin/ChangeLog,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- ChangeLog 24 Dec 2007 20:08:28 -0000 1.13
+++ ChangeLog 18 Jan 2008 16:11:25 -0000 1.14
@@ -1,6 +1,13 @@
# ChangeLog for dev-lang/dmd-bin
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/dmd-bin/ChangeLog,v 1.13 2007/12/24 20:08:28 anant Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/dmd-bin/ChangeLog,v 1.14 2008/01/18 16:11:25 anant Exp $
+
+*dmd-bin-2.008-r1 (18 Jan 2008)
+
+ 18 Jan 2008; <anant@gentoo.org> -dmd-bin-2.008.ebuild,
+ +dmd-bin-2.008-r1.ebuild:
+ Cleanup ebuild, and install only what's neccessary. Fixes bugs #206346 and
+ #203350
*dmd-bin-2.008 (24 Dec 2007)
1.1 dev-lang/dmd-bin/dmd-bin-2.008-r1.ebuild
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/dmd-bin/dmd-bin-2.008-r1.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/dmd-bin/dmd-bin-2.008-r1.ebuild?rev=1.1&content-type=text/plain
Index: dmd-bin-2.008-r1.ebuild
===================================================================
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/dmd-bin/dmd-bin-2.008-r1.ebuild,v 1.1 2008/01/18 16:11:25 anant Exp $
inherit eutils
MY_P=${P/-bin/}
MY_P=${MY_P/-/.}
DESCRIPTION="Digital Mars D Compiler"
HOMEPAGE="http://www.digitalmars.com/d/"
SRC_URI="http://ftp.digitalmars.com/${MY_P}.zip"
LICENSE="DMD"
RESTRICT="mirror strip"
SLOT="0"
KEYWORDS="~x86"
LOC="/opt/dmd"
S="${WORKDIR}"
DEPEND="sys-apps/findutils"
RDEPEND="amd64? ( app-emulation/emul-linux-x86-compat )
x86? ( sys-libs/libstdc++-v3 )"
src_unpack() {
unpack "${A}"
# Cleanup line endings
cd "${S}/dmd"
edos2unix `find . -name '*.c' -type f`
edos2unix `find . -name '*.d' -type f`
edos2unix `find . -name '*.ddoc' -type f`
edos2unix `find . -name '*.h' -type f`
edos2unix `find . -name '*.mak' -type f`
edos2unix `find . -name '*.txt' -type f`
edos2unix `find samples -name '*.html' -type f`
edos2unix src/phobos/linux.mak src/phobos/internal/gc/linux.mak
# Fix permissions and clean up
fperms guo=r `find . -type f`
fperms guo=rx `find . -type d`
fperms guo=rx bin/dmd bin/dumpobj bin/obj2asm bin/rdmd
}
src_compile() {
# Don't use teh bundled library since on gentoo we do teh compile
cd "${S}/dmd/src/phobos"
sed -i -e "s:DMD=.*:DMD=${S}/dmd/bin/dmd:" linux.mak internal/gc/linux.mak
# Can't use emake, customized build system
make -f linux.mak
cp obj/release/libphobos2.a "${S}/dmd/lib"
# Clean up
make -f linux.mak clean
}
src_install() {
cd "${S}/dmd"
# Setup dmd.conf
cat <<END > "bin/dmd.conf"
[Environment]
DFLAGS=-I/opt/dmd/src/phobos -L-L/opt/dmd/lib
END
insinto /etc
doins bin/dmd.conf
# Man pages
doman man/man1/dmd.1
doman man/man1/dumpobj.1
doman man/man1/obj2asm.1
# Documentation
dohtml "html/d/*" "html/d/phobos/*"
# Install
exeinto /opt/dmd/bin
doexe bin/dmd
doexe bin/dumpobj
doexe bin/obj2asm
doexe bin/rdmd
insinto /opt/dmd/lib
doins lib/libphobos2.a
insinto /opt/dmd/samples
doins "samples/d/*"
# Phobos and DMD source
mv src "${D}/opt/dmd/"
# Set PATH
doenvd "${FILESDIR}/25dmd"
}
pkg_postinst () {
ewarn "You may need to run: "
ewarn "env-update && source /etc/profile "
ewarn "to be able to use the compiler immediately. "
einfo " "
einfo "The bundled samples and sources may be found in "
einfo "/opt/dmd/samples and /opt/dmd/src respectively. "
einfo " "
}
--
gentoo-commits@lists.gentoo.org mailing list
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-01-18 16:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-18 16:11 [gentoo-commits] gentoo-x86 commit in dev-lang/dmd-bin: ChangeLog dmd-bin-2.008-r1.ebuild dmd-bin-2.008.ebuild Anant Narayanan (anant)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox