Magellan Linux

Contents of /trunk/core/lynx/lynx-2.8.7-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 20279 - (show annotations) (download)
Thu Nov 28 13:04:55 2013 UTC (10 years, 5 months ago) by niro
File size: 1854 byte(s)
-fixed lynx build
1 # $Id$
2
3 PNAME="lynx"
4 PVER="2.8.7"
5 PBUILD="r4"
6
7 # patchlevel of lynx
8 PLEVEL="2"
9
10 PCAT="net-www"
11
12 DESCRIPTION="Lynx is the text web browser."
13 HOMEPAGE="http://lynx.isc.org/"
14
15 DEPEND=">= sys-libs/ncurses-5.9
16 >= sys-libs/zlib-1.2
17 >= dev-libs/openssl-1.0.0"
18
19 SDEPEND=">= sys-dev/gettext-0.18"
20
21 SRCFILE="${PNAME}${PVER}rel.${PLEVEL}.tar.bz2"
22 SRCDIR="${BUILDDIR}/${PNAME}$(echo ${PVER} | sed "s:\.:-:g")"
23
24 sminclude mbuild mtools
25 msetfeature "!check"
26
27 SRC_URI=(
28 http://lynx.isc.org/${PNAME}${PVER}/${SRCFILE}
29 mirror://${PNAME}/${SRCFILE}
30 )
31
32 UP2DATE="updatecmd ${HOMEPAGE} | grep 'stable release' | sed 's/.*lynx\(.*\)\.\ .*/\1/;s/-/\./g'"
33
34 src_compile()
35 {
36 cd ${SRCDIR}
37
38 mconfigure \
39 --libdir=/etc \
40 --with-ssl=/usr \
41 --with-zlib \
42 --enable-cgi-links \
43 --enable-EXP_PERSISTENT_COOKIES \
44 --enable-prettysrc \
45 --enable-nsl-fork \
46 --enable-file-upload \
47 --enable-read-eta \
48 --enable-libjs \
49 --enable-color-style \
50 --enable-scrollbar \
51 --enable-included-msgs \
52 || die
53
54 mmake || die
55 }
56
57 src_install()
58 {
59 cd ${SRCDIR}
60
61 # needed directories
62 minstalldir /usr/share/man/man1 || die
63
64 # installs lynx
65 mmake DESTDIR=${BINDIR} install || die
66
67 # installs lynx-doc files
68 make DOCDIR=${BINDIR}/usr/share/doc/${PNAME}-${PVER}/lynx_doc \
69 HELPDIR=${BINDIR}/usr/share/doc/${PNAME}-${PVER}/lynx_help \
70 install-doc || die
71
72 # installs lynx-help files
73 make DOCDIR=${BINDIR}/usr/share/doc/${PNAME}-${PVER}/lynx_doc \
74 HELPDIR=${BINDIR}/usr/share/doc/${PNAME}-${PVER}/lynx_help \
75 libdir=${BINDIR}/etc \
76 install-help || die
77
78 # fixes doc/help location in lynx.cfg
79 sed -i "s|^HELPFILE.*$|HELPFILE:file://localhost/usr/share/doc/${PNAME}-${PVER}/lynx_help/lynx_help_main.html|" lynx.cfg || die
80 minstalletc ${SRCDIR}/lynx.cfg || die
81
82 # install other docs and readmes
83 minstalldocs CHANGES COPYHEADER INSTALLATION PROBLEMS README || die
84 }