Contents of /branches/branch-xorg18/core/bc/bc-1.06-r10.smage2
Parent Directory | Revision Log
Revision 5192 -
(show annotations)
(download)
Tue Apr 6 21:54:10 2010 UTC (14 years, 5 months ago) by niro
File size: 1205 byte(s)
Tue Apr 6 21:54:10 2010 UTC (14 years, 5 months ago) by niro
File size: 1205 byte(s)
created branch 'branch-xorg18'
1 | # $Id$ |
2 | |
3 | PNAME="bc" |
4 | PVER="1.06" |
5 | PBUILD="r10" |
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.0" |
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 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |