Gentoo Archives: gentoo-commits

From: "Anant Narayanan (anant)" <anant@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/dmd-bin: ChangeLog dmd-bin-2.008.ebuild dmd-bin-1.023.ebuild dmd-bin-1.022.ebuild
Date: Mon, 24 Dec 2007 20:08:34
Message-Id: E1J6tbA-0001A4-Ib@stork.gentoo.org
1 anant 07/12/24 20:08:28
2
3 Modified: ChangeLog
4 Added: dmd-bin-2.008.ebuild
5 Removed: dmd-bin-1.023.ebuild dmd-bin-1.022.ebuild
6 Log:
7 Bump to version 2
8 (Portage version: 2.1.4_rc9)
9
10 Revision Changes Path
11 1.13 dev-lang/dmd-bin/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/dmd-bin/ChangeLog?rev=1.13&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/dmd-bin/ChangeLog?rev=1.13&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/dmd-bin/ChangeLog?r1=1.12&r2=1.13
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/dmd-bin/ChangeLog,v
20 retrieving revision 1.12
21 retrieving revision 1.13
22 diff -u -r1.12 -r1.13
23 --- ChangeLog 3 Nov 2007 21:48:10 -0000 1.12
24 +++ ChangeLog 24 Dec 2007 20:08:28 -0000 1.13
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-lang/dmd-bin
27 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/dmd-bin/ChangeLog,v 1.12 2007/11/03 21:48:10 anant Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/dmd-bin/ChangeLog,v 1.13 2007/12/24 20:08:28 anant Exp $
30 +
31 +*dmd-bin-2.008 (24 Dec 2007)
32 +
33 + 24 Dec 2007; <anant@g.o> -dmd-bin-1.022.ebuild,
34 + -dmd-bin-1.023.ebuild, +dmd-bin-2.008.ebuild:
35 + Bump to version 2, still keeping 1.016 from (yet to be stabled) 1.x series
36
37 *dmd-bin-1.023 (03 Nov 2007)
38
39
40
41
42 1.1 dev-lang/dmd-bin/dmd-bin-2.008.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/dmd-bin/dmd-bin-2.008.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/dmd-bin/dmd-bin-2.008.ebuild?rev=1.1&content-type=text/plain
46
47 Index: dmd-bin-2.008.ebuild
48 ===================================================================
49 # Copyright 1999-2007 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-lang/dmd-bin/dmd-bin-2.008.ebuild,v 1.1 2007/12/24 20:08:28 anant Exp $
52
53 inherit eutils
54
55 MY_P=${P/-bin/}
56 MY_P=${MY_P/-/.}
57
58 DESCRIPTION="Digital Mars D Compiler"
59 HOMEPAGE="http://www.digitalmars.com/d/"
60 SRC_URI="http://ftp.digitalmars.com/${MY_P}.zip"
61
62 LICENSE="DMD"
63 RESTRICT="mirror strip"
64 SLOT="0"
65 KEYWORDS="~x86"
66
67 LOC="/opt/dmd"
68 S="${WORKDIR}"
69
70 DEPEND="sys-apps/findutils"
71 RDEPEND="amd64? ( app-emulation/emul-linux-x86-compat )
72 x86? ( sys-libs/libstdc++-v3 )"
73
74 src_unpack() {
75 unpack "${A}"
76
77 # Remove unneccessary files
78 rm -r "${S}/dmd/lib"
79 rm -r "${S}/dm"
80 rm dmd/license.txt dmd/readme
81
82 # Cleanup line endings
83 cd "${S}/dmd"
84 edos2unix `find . -name '*.c' -type f`
85 edos2unix `find . -name '*.d' -type f`
86 edos2unix `find . -name '*.ddoc' -type f`
87 edos2unix `find . -name '*.h' -type f`
88 edos2unix `find . -name '*.mak' -type f`
89 edos2unix `find . -name '*.txt' -type f`
90 edos2unix `find samples -name '*.html' -type f`
91 edos2unix src/phobos/linux.mak src/phobos/internal/gc/linux.mak
92
93 # Fix permissions and clean up
94 fperms guo=r `find . -type f`
95 fperms guo=rx `find . -type d`
96 fperms guo=rx bin/dmd bin/dumpobj bin/obj2asm bin/rdmd
97 mv bin/{dmd,dumpobj,obj2asm,rdmd} .
98 rm -r bin/
99 mkdir bin
100 mkdir lib
101 mv ./{dmd,dumpobj,obj2asm,rdmd} bin/
102 }
103
104 src_compile() {
105 # Don't use teh bundled library since on gentoo we do teh compile
106 cd "${S}/dmd/src/phobos"
107 sed -i -e "s:DMD=.*:DMD=${S}/dmd/bin/dmd:" linux.mak internal/gc/linux.mak
108 # Can't use emake, customized build system
109 make -f linux.mak
110 cp obj/release/libphobos2.a "${S}/dmd/lib"
111
112 # Clean up
113 make -f linux.mak clean
114 }
115
116 src_install() {
117 cd "${S}/dmd"
118
119 # Setup dmd.conf
120 cat <<END > "bin/dmd.conf"
121 [Environment]
122 DFLAGS=-I/opt/dmd/src/phobos -L-L/opt/dmd/lib
123 END
124 insinto /etc
125 doins bin/dmd.conf
126 rm bin/dmd.conf
127
128 # Man pages
129 doman man/man1/dmd.1
130 doman man/man1/dumpobj.1
131 doman man/man1/obj2asm.1
132 rm -r man
133
134 # Documentation
135 dohtml html/d/* html/d/phobos/*
136 rm -r html
137
138 # Install
139 mkdir "${D}/opt"
140 mv "${S}/dmd" "${D}/opt/dmd"
141
142 # Set PATH
143 doenvd "${FILESDIR}/25dmd"
144 }
145
146 pkg_postinst () {
147 ewarn "You may need to run: "
148 ewarn "env-update && source /etc/profile "
149 ewarn "to be able to use the compiler immediately. "
150 einfo " "
151 einfo "The bundled sources and samples may be found in "
152 einfo "/opt/dmd/src and /opt/dmd/samples respectively. "
153 einfo " "
154 }
155
156
157
158 --
159 gentoo-commits@g.o mailing list