Magellan Linux

Annotation of /trunk/core/lynx/lynx-2.8.8-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 29976 - (hide annotations) (download)
Thu Oct 19 13:23:24 2017 UTC (6 years, 6 months ago) by niro
File size: 1944 byte(s)
auto added: ver bump to 2.8.8-r3
1 niro 29976 # $Id$
2    
3     PNAME="lynx"
4     PVER="2.8.8"
5     PBUILD="r3"
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-6.0
16     >= sys-libs/zlib-1.2
17     >= dev-libs/openssl-1.1"
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     https://invisible-mirror.net/archives/lynx/tarballs/${SRCFILE}
30     mirror://${PNAME}/${SRCFILE}
31     )
32    
33     UP2SEPERATOR="lynx"
34     UP2DATE="updatecmd http://lynx.isc.org/current/ | grep 'rel' | highesttarball | sed 's:\(.*\)rel.*:\1:'"
35    
36     src_compile()
37     {
38     cd ${SRCDIR}
39    
40     mconfigure \
41     --libdir=/etc \
42     --with-ssl=/usr \
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     }