Contents of /trunk/core/readline/readline-5.2-r3.smage2
Parent Directory | Revision Log
Revision 87 -
(show annotations)
(download)
Tue Oct 14 09:20:53 2008 UTC (15 years, 11 months ago) by niro
File size: 2238 byte(s)
Tue Oct 14 09:20:53 2008 UTC (15 years, 11 months ago) by niro
File size: 2238 byte(s)
-fixed SRC_URI again
1 | # $Header: /magellan-cvs/smage/readline/readline-5.2-r2.smage2,v 1.1 2008/02/09 00:21:33 niro Exp $ |
2 | |
3 | PNAME="readline" |
4 | PVER="5.2" |
5 | PBUILD="r3" |
6 | |
7 | PATCH_LEVEL="12" |
8 | |
9 | PCATEGORIE="sys-libs" |
10 | STATE="unstable" |
11 | |
12 | DESCRIPTION="readline is a set of libraries that offers command-line editing and history capabilities." |
13 | HOMEPAGE="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html" |
14 | |
15 | DEPEND=">= sys-libs/ncurses-5.6 |
16 | >= app-shells/bash-3" |
17 | |
18 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
19 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
20 | |
21 | sminclude mtools multilib |
22 | |
23 | SRC_URI=( |
24 | gnu://${PNAME}/${SRCFILE} |
25 | ftp://ftp.cwru.edu/pub/bash/${SRCFILE} |
26 | mirror://${PNAME}/${SRCFILE} |
27 | mirror://${PNAME}/${PNAME}-5.0-parallel.patch |
28 | $(for ((i=1;i <= PATCH_LEVEL; i++)) |
29 | do |
30 | ver=00${i} |
31 | [[ ${i} -ge 10 ]] && ver=0${i} |
32 | [[ ${i} -ge 100 ]] && ver=${i} |
33 | echo "gnu://${PNAME}/${PNAME}-${PVER}-patches/${PNAME}${PVER/./}-${ver}" |
34 | echo "ftp://ftp.cwru.edu/pub/bash/${PNAME}-${PVER}-patches/${PNAME}${PVER/./}-${ver}" |
35 | echo "mirror://${PNAME}/${PNAME}${PVER/./}-${ver}" |
36 | done) |
37 | ) |
38 | |
39 | UP2DATE="updatecmd_gnu ${PNAME} gz" |
40 | |
41 | src_prepare() |
42 | { |
43 | munpack ${SRCFILE} || die |
44 | |
45 | # apply all upstream patches |
46 | local i |
47 | local ver |
48 | for ((i=1; i <= PATCH_LEVEL; i++)) |
49 | do |
50 | ver=00${i} |
51 | [[ ${i} -ge 10 ]] && ver=0${i} |
52 | [[ ${i} -ge 100 ]] && ver=${i} |
53 | |
54 | mpatch ${PNAME}${PVER/./}-${ver} || die |
55 | done |
56 | |
57 | # fix parallel build |
58 | mpatch ${PNAME}-5.0-parallel.patch || die |
59 | } |
60 | |
61 | src_compile() |
62 | { |
63 | mconfigure --libdir=/'$(mlibdir)' || die |
64 | |
65 | # enforce linking with ncurses |
66 | mmake SHLIB_XLDFLAGS=-lncurses || die |
67 | } |
68 | |
69 | src_install() |
70 | { |
71 | # needed directories |
72 | all-abis minstalldir /usr/'$(mlibdir)' || die |
73 | |
74 | minstall_destdir || die |
75 | |
76 | # fix permissions |
77 | all-abis mchmod 0755 /'$(mlibdir)'/lib{readline,history}.so* || die |
78 | |
79 | # move static libs to /usr/lib |
80 | all-abis mv ${BINDIR}/'$(mlibdir)'/lib{readline,history}.a ${BINDIR}/usr/'$(mlibdir)' || die |
81 | |
82 | # remove *.so from /lib and link them to /usr/lib |
83 | all-abis rm -v ${BINDIR}/'$(mlibdir)'/lib{readline,history}.so || die |
84 | all-abis mlink ../../'$(mlibdir)'/libreadline.so.5 /usr/'$(mlibdir)'/libreadline.so || die |
85 | all-abis mlink ../../'$(mlibdir)'/libhistory.so.5 /usr/'$(mlibdir)'/libhistory.so || die |
86 | |
87 | minstalldocs CHANGELOG CHANGES COPYING MANIFEST NEWS README USAGE || die |
88 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |