Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-embedded/sdcc: sdcc-2.9.0.ebuild ChangeLog sdcc-9999.ebuild
Date: Fri, 08 Oct 2010 10:03:08
Message-Id: 20101008093845.13A1620054@flycatcher.gentoo.org
1 vapier 10/10/08 09:38:45
2
3 Modified: ChangeLog
4 Added: sdcc-2.9.0.ebuild sdcc-9999.ebuild
5 Log:
6 Version bump #270621 by Karl Hiramoto. Merge & clean up the sdcc-svn package and fix #251876 #255659 by Diego E. Pettenò in the process.
7
8 (Portage version: 2.2_rc86/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.43 dev-embedded/sdcc/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-embedded/sdcc/ChangeLog?rev=1.43&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-embedded/sdcc/ChangeLog?rev=1.43&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-embedded/sdcc/ChangeLog?r1=1.42&r2=1.43
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-embedded/sdcc/ChangeLog,v
20 retrieving revision 1.42
21 retrieving revision 1.43
22 diff -u -r1.42 -r1.43
23 --- ChangeLog 10 Aug 2009 08:11:49 -0000 1.42
24 +++ ChangeLog 8 Oct 2010 09:38:44 -0000 1.43
25 @@ -1,6 +1,16 @@
26 # ChangeLog for dev-embedded/sdcc
27 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-embedded/sdcc/ChangeLog,v 1.42 2009/08/10 08:11:49 ssuominen Exp $
29 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/sdcc/ChangeLog,v 1.43 2010/10/08 09:38:44 vapier Exp $
31 +
32 +*sdcc-9999 (08 Oct 2010)
33 +*sdcc-2.9.0 (08 Oct 2010)
34 +
35 + 08 Oct 2010; Mike Frysinger <vapier@g.o> +sdcc-2.9.0.ebuild,
36 + +files/sdcc-2.9.0-build.patch, +files/sdcc-2.9.0-gcc44.patch,
37 + +files/sdcc-2.9.0-getline.patch, +files/sdcc-2.9.0-headers.patch,
38 + +sdcc-9999.ebuild, +files/sdcc-9999-build.patch:
39 + Version bump #270621 by Karl Hiramoto. Merge & clean up the sdcc-svn
40 + package and fix #251876 #255659 by Diego E. Pettenò in the process.
41
42 10 Aug 2009; Samuli Suominen <ssuominen@g.o> sdcc-2.8.0.ebuild,
43 +files/sdcc-2.8.0-gcc44.patch:
44
45
46
47 1.1 dev-embedded/sdcc/sdcc-2.9.0.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-embedded/sdcc/sdcc-2.9.0.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-embedded/sdcc/sdcc-2.9.0.ebuild?rev=1.1&content-type=text/plain
51
52 Index: sdcc-2.9.0.ebuild
53 ===================================================================
54 # Copyright 1999-2010 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/dev-embedded/sdcc/sdcc-2.9.0.ebuild,v 1.1 2010/10/08 09:38:44 vapier Exp $
57
58 EAPI="2"
59
60 inherit eutils
61
62 if [[ ${PV} == "9999" ]] ; then
63 ESVN_REPO_URI="https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc"
64 inherit subversion autotools
65 docs_compile() { return 0; }
66 else
67 SRC_URI="mirror://sourceforge/sdcc/${PN}-src-${PV}.tar.bz2
68 doc? ( mirror://sourceforge/sdcc/${PN}-doc-${PV}.tar.bz2 )"
69 KEYWORDS="~amd64 ~ppc ~x86"
70 docs_compile() { return 1; }
71 fi
72
73 DESCRIPTION="Small device C compiler (for various microprocessors)"
74 HOMEPAGE="http://sdcc.sourceforge.net/"
75
76 LICENSE="GPL-2"
77 SLOT="0"
78 IUSE="+boehm-gc doc"
79 RESTRICT="strip"
80
81 RDEPEND="sys-libs/ncurses
82 sys-libs/readline
83 >=dev-embedded/gputils-0.13.7
84 boehm-gc? ( dev-libs/boehm-gc )
85 !dev-embedded/sdcc-svn"
86 DEPEND="${RDEPEND}"
87 if docs_compile ; then
88 DEPEND+="
89 doc? (
90 >=app-office/lyx-1.3.4
91 dev-tex/latex2html
92 )"
93 fi
94
95 S=${WORKDIR}/${PN}
96
97 src_prepare() {
98 # Fix conflicting variable names between Gentoo and sdcc
99 find \
100 '(' -name 'Makefile*.in' -o -name configure ')' \
101 -exec sed -r -i \
102 -e 's:\<(PORTDIR|ARCH)\>:SDCC\1:g' \
103 {} + || die
104
105 epatch "${FILESDIR}"/${P}-gcc44.patch
106 epatch "${FILESDIR}"/${P}-getline.patch
107 epatch "${FILESDIR}"/${P}-headers.patch
108 epatch "${FILESDIR}"/${P}-build.patch
109
110 # We'll install doc manually
111 sed -i -e '/SDCC_DOC/d' Makefile.in || die
112 sed -i -e 's/all install-doc/all/' as/Makefile.in || die
113 sed -i -e 's/ doc//' sim/ucsim/packages_in.mk || die
114
115 [[ ${PV} == "9999" ]] && eautoreconf
116 }
117
118 src_configure() {
119 ac_cv_prog_STRIP=true \
120 econf \
121 $(use_enable boehm-gc libgc) \
122 $(docs_compile && use_enable doc || echo --disable-doc)
123 }
124
125 fsrc_compile() {
126 emake || die
127 if docs_compile && use doc ; then
128 cd doc
129 local d
130 for d in cdbfileformat sdccman test_suite_spec ; do
131 lyx -e html ${d} || die
132 done
133 fi
134 }
135
136 src_install() {
137 emake DESTDIR="${D}" install || die
138 dodoc doc/*.txt doc/*/*.txt
139 find "${D}" -name .deps -exec rm -rf {} +
140
141 if use doc ; then
142 docs_compile || cd "${WORKDIR}"/doc
143 dohtml -r *
144 fi
145
146 # a bunch of archives (*.a) are built & installed by gputils
147 # for PIC processors, but they do not work with standard `ar`
148 # & `scanelf` utils and they're not for the host.
149 env RESTRICT="" prepstrip "${D%/}"/usr/bin
150 }
151
152
153
154 1.1 dev-embedded/sdcc/sdcc-9999.ebuild
155
156 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-embedded/sdcc/sdcc-9999.ebuild?rev=1.1&view=markup
157 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-embedded/sdcc/sdcc-9999.ebuild?rev=1.1&content-type=text/plain
158
159 Index: sdcc-9999.ebuild
160 ===================================================================
161 # Copyright 1999-2010 Gentoo Foundation
162 # Distributed under the terms of the GNU General Public License v2
163 # $Header: /var/cvsroot/gentoo-x86/dev-embedded/sdcc/sdcc-9999.ebuild,v 1.1 2010/10/08 09:38:44 vapier Exp $
164
165 EAPI="2"
166
167 inherit eutils
168
169 if [[ ${PV} == "9999" ]] ; then
170 ESVN_REPO_URI="https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc"
171 inherit subversion autotools
172 docs_compile() { return 0; }
173 else
174 SRC_URI="mirror://sourceforge/sdcc/${PN}-src-${PV}.tar.bz2
175 doc? ( mirror://sourceforge/sdcc/${PN}-doc-${PV}.tar.bz2 )"
176 KEYWORDS="~amd64 ~ppc ~x86"
177 docs_compile() { return 1; }
178 fi
179
180 DESCRIPTION="Small device C compiler (for various microprocessors)"
181 HOMEPAGE="http://sdcc.sourceforge.net/"
182
183 LICENSE="GPL-2"
184 SLOT="0"
185 IUSE="+boehm-gc doc"
186 RESTRICT="strip"
187
188 RDEPEND="sys-libs/ncurses
189 sys-libs/readline
190 >=dev-embedded/gputils-0.13.7
191 boehm-gc? ( dev-libs/boehm-gc )
192 !dev-embedded/sdcc-svn"
193 DEPEND="${RDEPEND}"
194 if docs_compile ; then
195 DEPEND+="
196 doc? (
197 >=app-office/lyx-1.3.4
198 dev-tex/latex2html
199 )"
200 fi
201
202 S=${WORKDIR}/${PN}
203
204 src_prepare() {
205 # Fix conflicting variable names between Gentoo and sdcc
206 find \
207 '(' -name 'Makefile*.in' -o -name configure ')' \
208 -exec sed -r -i \
209 -e 's:\<(PORTDIR|ARCH)\>:SDCC\1:g' \
210 {} + || die
211
212 epatch "${FILESDIR}"/${P}-build.patch
213
214 # We'll install doc manually
215 sed -i -e '/SDCC_DOC/d' Makefile.in || die
216 sed -i -e 's/ doc//' sim/ucsim/packages_in.mk || die
217
218 [[ ${PV} == "9999" ]] && eautoreconf
219
220 # workaround parallel build issues with lyx
221 mkdir -p "${HOME}"/.lyx
222 }
223
224 src_configure() {
225 ac_cv_prog_STRIP=true \
226 econf \
227 $(use_enable boehm-gc libgc) \
228 $(docs_compile && use_enable doc || echo --disable-doc)
229 }
230
231 src_install() {
232 emake DESTDIR="${D}" install || die
233 dodoc doc/*.txt doc/*/*.txt
234 find "${D}" -name .deps -exec rm -rf {} +
235
236 if use doc ; then
237 docs_compile || cd "${WORKDIR}"/doc
238 dohtml -r *
239 fi
240
241 # a bunch of archives (*.a) are built & installed by gputils
242 # for PIC processors, but they do not work with standard `ar`
243 # & `scanelf` utils and they're not for the host.
244 env RESTRICT="" prepstrip "${D%/}"/usr/bin
245 }