Magellan Linux

Contents of /trunk/core/readline/readline-8.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 33358 - (show annotations) (download)
Thu Jul 13 10:04:10 2023 UTC (10 months ago) by niro
File size: 1520 byte(s)
-ver bump to 8.2-r1
1 # $Id$
2
3 PNAME="readline"
4 PVER="8.2"
5 PBUILD="r1"
6
7 PATCH_LEVEL="1"
8
9 PCAT="sys-libs"
10
11 DESCRIPTION="readline is a set of libraries that offers command-line editing and history capabilities."
12 HOMEPAGE="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html"
13
14 DEPEND=">= sys-libs/ncurses-6.4
15 >= app-shells/bash-5"
16
17 SRCFILE="${PNAME}-${PVER}.tar.gz"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 sminclude mtools multilib
21
22 SRC_URI=(
23 gnu://${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 $(for ((i=1;i <= PATCH_LEVEL; i++))
26 do
27 ver=00${i}
28 [[ ${i} -ge 10 ]] && ver=0${i}
29 [[ ${i} -ge 100 ]] && ver=${i}
30 echo "gnu://${PNAME}/${PNAME}-${PVER}-patches/${PNAME}${PVER/./}-${ver}"
31 echo "mirror://${PNAME}/${PNAME}${PVER/./}-${ver}"
32 done)
33 )
34
35 [[ ! -z ${PATCH_LEVEL} ]] && UP2PVER="${PVER}.${PATCH_LEVEL}"
36 UP2DATE="updatecmd_gnu ${PNAME} gz"
37
38 src_prepare()
39 {
40 munpack ${SRCFILE} || die
41
42 # apply all upstream patches
43 local i
44 local ver
45 for ((i=1; i <= PATCH_LEVEL; i++))
46 do
47 ver=00${i}
48 [[ ${i} -ge 10 ]] && ver=0${i}
49 [[ ${i} -ge 100 ]] && ver=${i}
50
51 mpatch ${PNAME}${PVER/./}-${ver} || die
52 done
53
54 # remove rpath from shared objects
55 all-abis 'sed -i "s|-Wl,-rpath,\$(libdir) ||g" support/shobj-conf || die'
56 }
57
58 src_compile()
59 {
60 # enforce -fpic
61 [[ ${ARCH} = x86_64 ]] && CFLAGS="${CFLAGS} -fPIC"
62
63 mconfigure || die
64 # enforce linking with ncurses
65 mmake SHLIB_LIBS=-lncursesw || die
66 }
67
68 src_install()
69 {
70 mmake DESTDIR=${BINDIR} install || die
71 minstalldocs CHANGELOG CHANGES COPYING MANIFEST NEWS README USAGE || die
72 }