Contents of /branches/R11-unstable/core/bc/bc-1.06-r14.smage2
Parent Directory | Revision Log
Revision 24916 -
(show annotations)
(download)
Tue Nov 25 02:37:55 2014 UTC (9 years, 10 months ago) by niro
File size: 1182 byte(s)
Tue Nov 25 02:37:55 2014 UTC (9 years, 10 months ago) by niro
File size: 1182 byte(s)
-release branches/R11-unstable
1 | # $Id$ |
2 | |
3 | PNAME="bc" |
4 | PVER="1.06" |
5 | PBUILD="r14" |
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 | >= sys-libs/readline-6.3" |
14 | |
15 | SDEPEND=">= sys-dev/flex-2.5.35" |
16 | |
17 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
18 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
19 | |
20 | sminclude mtools |
21 | |
22 | SRC_URI=( |
23 | gnu://${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/${SRCFILE} |
25 | mirror://${PNAME}/${PNAME}-${PVER}-info-fix.diff |
26 | mirror://${PNAME}/${PNAME}-${PVER}-readline42.diff |
27 | ) |
28 | |
29 | UP2DATE="updatecmd_gnu ${PNAME} gz" |
30 | |
31 | src_prepare() |
32 | { |
33 | munpack ${SRCFILE} || die |
34 | cd ${SRCDIR} |
35 | |
36 | # fix info pages |
37 | mpatch ${PNAME}-${PVER}-info-fix.diff || die |
38 | |
39 | # allows build with readline-4.2 |
40 | mpatch ${PNAME}-${PVER}-readline42.diff || die |
41 | |
42 | # fix build with newer flex |
43 | sed -i 's:flex -I8:flex -I:g' configure || die |
44 | } |
45 | |
46 | src_compile() |
47 | { |
48 | cd ${SRCDIR} |
49 | |
50 | mconfigure --with-readline || die |
51 | mmake || die |
52 | } |
53 | |
54 | src_install() |
55 | { |
56 | cd ${SRCDIR} |
57 | |
58 | # bins |
59 | minstallexec bc/bc || die |
60 | minstallexec dc/dc || die |
61 | |
62 | # infos pages |
63 | minstallinfo doc/*.info || die |
64 | |
65 | # man pages |
66 | minstallman doc/*.1 || die |
67 | |
68 | # docs |
69 | minstalldocs AUTHORS FAQ NEWS README ChangeLog |
70 | } |