Magellan Linux

Annotation of /smage/branches/alx-0_6_0/extras/bc/bc-1.06-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6792 - (hide annotations) (download)
Wed Jul 22 07:21:59 2015 UTC (8 years, 9 months ago) by niro
File size: 1168 byte(s)
auto added: ver bump to 1.06-r1
1 niro 6792 # $Id$
2    
3     PNAME="bc"
4     PVER="1.06"
5     PBUILD="r1"
6    
7     PCATEGORIE="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 alx
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     }