Magellan Linux

Contents of /branches/magellan-next/core/lynx/lynx-2.8.7-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7673 - (show annotations) (download)
Mon May 30 08:48:30 2011 UTC (12 years, 11 months ago) by niro
File size: 1887 byte(s)
auto added: ver bump to 2.8.7-r4
1 # $Id$
2
3 PNAME="lynx"
4 PVER="2.8.7"
5 PBUILD="r4"
6
7 # patchlevel of lynx
8 PLEVEL="2"
9
10 PCATEGORIE="net-www"
11 STATE="unstable"
12
13 DESCRIPTION="Lynx is the text web browser."
14 HOMEPAGE="http://lynx.isc.org/"
15
16 DEPEND=">= sys-libs/ncurses-5.9
17 >= sys-libs/zlib-1.2
18 >= dev-libs/openssl-1.0.0"
19
20 SDEPEND=">= sys-dev/gettext-0.18"
21
22 SRCFILE="${PNAME}${PVER}rel.${PLEVEL}.tar.bz2"
23 SRCDIR="${BUILDDIR}/${PNAME}$(echo ${PVER} | sed "s:\.:-:g")"
24
25 sminclude mbuild mtools
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 CFLAGS="${CFLAGS} -DANSI_VARARGS"
39
40 mconfigure \
41 --libdir=/etc \
42 --with-ssl \
43 --with-zlib \
44 --enable-cgi-links \
45 --enable-EXP_PERSISTENT_COOKIES \
46 --enable-prettysrc \
47 --enable-nsl-fork \
48 --enable-file-upload \
49 --enable-read-eta \
50 --enable-libjs \
51 --enable-color-style \
52 --enable-scrollbar \
53 --enable-included-msgs \
54 || die
55
56 mmake || die
57 }
58
59 src_install()
60 {
61 cd ${SRCDIR}
62
63 # needed directories
64 minstalldir /usr/share/man/man1 || die
65
66 # installs lynx
67 mmake DESTDIR=${BINDIR} install || die
68
69 # installs lynx-doc files
70 make DOCDIR=${BINDIR}/usr/share/doc/${PNAME}-${PVER}/lynx_doc \
71 HELPDIR=${BINDIR}/usr/share/doc/${PNAME}-${PVER}/lynx_help \
72 install-doc || die
73
74 # installs lynx-help files
75 make DOCDIR=${BINDIR}/usr/share/doc/${PNAME}-${PVER}/lynx_doc \
76 HELPDIR=${BINDIR}/usr/share/doc/${PNAME}-${PVER}/lynx_help \
77 libdir=${BINDIR}/etc \
78 install-help || die
79
80 # fixes doc/help location in lynx.cfg
81 sed -i "s|^HELPFILE.*$|HELPFILE:file://localhost/usr/share/doc/${PNAME}-${PVER}/lynx_help/lynx_help_main.html|" lynx.cfg || die
82 minstalletc ${SRCDIR}/lynx.cfg || die
83
84 # install other docs and readmes
85 minstalldocs CHANGES COPYHEADER INSTALLATION PROBLEMS README || die
86 }