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