Annotation of /trunk/core/lynx/lynx-2.8.8-r3.smage2
Parent Directory | Revision Log
Revision 29977 -
(hide annotations)
(download)
Thu Oct 19 13:52:24 2017 UTC (6 years, 11 months ago) by niro
File size: 2109 byte(s)
Thu Oct 19 13:52:24 2017 UTC (6 years, 11 months ago) by niro
File size: 2109 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 | niro | 29977 | mirror://${PNAME}/${PNAME}-${PVER}-openssl-1.1.patch |
32 | niro | 29976 | ) |
33 | |||
34 | UP2SEPERATOR="lynx" | ||
35 | UP2DATE="updatecmd http://lynx.isc.org/current/ | grep 'rel' | highesttarball | sed 's:\(.*\)rel.*:\1:'" | ||
36 | |||
37 | niro | 29977 | src_prepare() |
38 | { | ||
39 | munpack ${SRCFILE} || die | ||
40 | cd ${SRCDIR} | ||
41 | |||
42 | mpatch ${PNAME}-${PVER}-openssl-1.1.patch || die | ||
43 | } | ||
44 | |||
45 | niro | 29976 | src_compile() |
46 | { | ||
47 | cd ${SRCDIR} | ||
48 | |||
49 | mconfigure \ | ||
50 | --libdir=/etc \ | ||
51 | --with-ssl=/usr \ | ||
52 | --with-zlib \ | ||
53 | --enable-cgi-links \ | ||
54 | --enable-EXP_PERSISTENT_COOKIES \ | ||
55 | --enable-prettysrc \ | ||
56 | --enable-nsl-fork \ | ||
57 | --enable-file-upload \ | ||
58 | --enable-read-eta \ | ||
59 | --enable-libjs \ | ||
60 | --enable-color-style \ | ||
61 | --enable-scrollbar \ | ||
62 | --enable-included-msgs \ | ||
63 | || die | ||
64 | |||
65 | mmake || die | ||
66 | } | ||
67 | |||
68 | src_install() | ||
69 | { | ||
70 | cd ${SRCDIR} | ||
71 | |||
72 | # needed directories | ||
73 | minstalldir /usr/share/man/man1 || die | ||
74 | |||
75 | # installs lynx | ||
76 | mmake DESTDIR=${BINDIR} install || die | ||
77 | |||
78 | # installs lynx-doc files | ||
79 | make DOCDIR=${BINDIR}/usr/share/doc/${PNAME}-${PVER}/lynx_doc \ | ||
80 | HELPDIR=${BINDIR}/usr/share/doc/${PNAME}-${PVER}/lynx_help \ | ||
81 | install-doc || die | ||
82 | |||
83 | # installs lynx-help files | ||
84 | make DOCDIR=${BINDIR}/usr/share/doc/${PNAME}-${PVER}/lynx_doc \ | ||
85 | HELPDIR=${BINDIR}/usr/share/doc/${PNAME}-${PVER}/lynx_help \ | ||
86 | libdir=${BINDIR}/etc \ | ||
87 | install-help || die | ||
88 | |||
89 | # fixes doc/help location in lynx.cfg | ||
90 | sed -i "s|^HELPFILE.*$|HELPFILE:file://localhost/usr/share/doc/${PNAME}-${PVER}/lynx_help/lynx_help_main.html|" lynx.cfg || die | ||
91 | minstalletc ${SRCDIR}/lynx.cfg || die | ||
92 | |||
93 | # install other docs and readmes | ||
94 | minstalldocs CHANGES COPYHEADER INSTALLATION PROBLEMS README || die | ||
95 | } |