Magellan Linux

Contents of /smage/trunk/core/bc/bc-1.06-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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