Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31288 - (show annotations) (download)
Thu Jun 21 09:44:37 2018 UTC (5 years, 10 months ago) by niro
File size: 2097 byte(s)
auto added: ver bump to 2.8.8-r4
1 # $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.invisible-island.net/"
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 https://invisible-mirror.net/archives/lynx/tarballs/${SRCFILE}
29 mirror://${PNAME}/${SRCFILE}
30 mirror://${PNAME}/${PNAME}-${PVER}-openssl-1.1.patch
31 )
32
33 UP2SEPERATOR="lynx"
34 UP2DATE="updatecmd https://invisible-mirror.net/archives/lynx/tarballs/ | grep 'rel' | highesttarball | sed 's:\(.*\)rel.*:\1:'"
35
36 src_prepare()
37 {
38 munpack ${SRCFILE} || die
39 cd ${SRCDIR}
40
41 mpatch ${PNAME}-${PVER}-openssl-1.1.patch || die
42 }
43
44 src_compile()
45 {
46 cd ${SRCDIR}
47
48 mconfigure \
49 --libdir=/etc \
50 --with-ssl=/usr \
51 --with-zlib \
52 --enable-cgi-links \
53 --enable-EXP_PERSISTENT_COOKIES \
54 --enable-prettysrc \
55 --enable-nsl-fork \
56 --enable-file-upload \
57 --enable-read-eta \
58 --enable-libjs \
59 --enable-color-style \
60 --enable-scrollbar \
61 --enable-included-msgs \
62 || die
63
64 mmake || die
65 }
66
67 src_install()
68 {
69 cd ${SRCDIR}
70
71 # needed directories
72 minstalldir /usr/share/man/man1 || die
73
74 # installs lynx
75 mmake DESTDIR=${BINDIR} install || die
76
77 # installs lynx-doc files
78 make DOCDIR=${BINDIR}/usr/share/doc/${PNAME}-${PVER}/lynx_doc \
79 HELPDIR=${BINDIR}/usr/share/doc/${PNAME}-${PVER}/lynx_help \
80 install-doc || die
81
82 # installs lynx-help files
83 make DOCDIR=${BINDIR}/usr/share/doc/${PNAME}-${PVER}/lynx_doc \
84 HELPDIR=${BINDIR}/usr/share/doc/${PNAME}-${PVER}/lynx_help \
85 libdir=${BINDIR}/etc \
86 install-help || die
87
88 # fixes doc/help location in lynx.cfg
89 sed -i "s|^HELPFILE.*$|HELPFILE:file://localhost/usr/share/doc/${PNAME}-${PVER}/lynx_help/lynx_help_main.html|" lynx.cfg || die
90 minstalletc ${SRCDIR}/lynx.cfg || die
91
92 # install other docs and readmes
93 minstalldocs CHANGES COPYHEADER INSTALLATION PROBLEMS README || die
94 }