Magellan Linux

Contents of /branches/magellan-next/core/bc/bc-1.06-r11.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7099 - (show annotations) (download)
Tue Sep 28 20:07:27 2010 UTC (13 years, 7 months ago) by niro
File size: 1257 byte(s)
auto added: ver bump to 1.06-r11
1 # $Id: bc-1.06-r10.smage2 3615 2009-10-27 13:55:58Z niro $
2
3 PNAME="bc"
4 PVER="1.06"
5 PBUILD="r11"
6
7 PCATEGORIE="sys-dev"
8 STATE="unstable"
9
10 DESCRIPTION="bc is an arbitrary precision numeric processing language."
11 HOMEPAGE="http://www.gnu.org/software/bc/"
12
13 DEPEND=">= sys-libs/ncurses-5.7
14 >= sys-libs/readline-6.1"
15
16 SDEPEND=">= sys-dev/flex-2.5.35"
17
18 SRCFILE="${PNAME}-${PVER}.tar.gz"
19 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20
21 sminclude mtools
22
23 SRC_URI=(
24 gnu://${PNAME}/${SRCFILE}
25 mirror://${PNAME}/${SRCFILE}
26 mirror://${PNAME}/${PNAME}-${PVER}-info-fix.diff
27 mirror://${PNAME}/${PNAME}-${PVER}-readline42.diff
28 )
29
30 UP2DATE="updatecmd_gnu ${PNAME} gz"
31
32 src_prepare()
33 {
34 munpack ${SRCFILE} || die
35 cd ${SRCDIR}
36
37 # fix info pages
38 mpatch ${PNAME}-${PVER}-info-fix.diff || die
39
40 # allows build with readline-4.2
41 mpatch ${PNAME}-${PVER}-readline42.diff || die
42
43 # fix build with newer flex
44 sed -i 's:flex -I8:flex -I:g' configure || die
45 }
46
47 src_compile()
48 {
49 cd ${SRCDIR}
50
51 mconfigure --with-readline || die
52 mmake || die
53 }
54
55 src_install()
56 {
57 cd ${SRCDIR}
58
59 # bins
60 minstallexec bc/bc || die
61 minstallexec dc/dc || die
62
63 # infos pages
64 minstallinfo doc/*.info || die
65
66 # man pages
67 minstallman doc/*.1 || die
68
69 # docs
70 minstalldocs AUTHORS FAQ NEWS README ChangeLog
71 }