Contents of /trunk/core/lynx/lynx-2.8.8-r2.smage2
Parent Directory | Revision Log
Revision 27430 -
(show annotations)
(download)
Sun Feb 7 09:52:57 2016 UTC (8 years, 7 months ago) by niro
File size: 1881 byte(s)
Sun Feb 7 09:52:57 2016 UTC (8 years, 7 months ago) by niro
File size: 1881 byte(s)
-ncurses-6.0 rebuild
1 | # $Id$ |
2 | |
3 | PNAME="lynx" |
4 | PVER="2.8.8" |
5 | PBUILD="r2" |
6 | |
7 | # patchlevel of lynx |
8 | PLEVEL="1" |
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.0.2" |
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 | mirror://${PNAME}/${SRCFILE} |
30 | ) |
31 | |
32 | UP2SEPERATOR="lynx" |
33 | UP2DATE="updatecmd http://lynx.isc.org/current/ | grep 'rel' | highesttarball | sed 's:\(.*\)rel.*:\1:'" |
34 | |
35 | src_compile() |
36 | { |
37 | cd ${SRCDIR} |
38 | |
39 | mconfigure \ |
40 | --libdir=/etc \ |
41 | --with-ssl=/usr \ |
42 | --with-zlib \ |
43 | --enable-cgi-links \ |
44 | --enable-EXP_PERSISTENT_COOKIES \ |
45 | --enable-prettysrc \ |
46 | --enable-nsl-fork \ |
47 | --enable-file-upload \ |
48 | --enable-read-eta \ |
49 | --enable-libjs \ |
50 | --enable-color-style \ |
51 | --enable-scrollbar \ |
52 | --enable-included-msgs \ |
53 | || die |
54 | |
55 | mmake || die |
56 | } |
57 | |
58 | src_install() |
59 | { |
60 | cd ${SRCDIR} |
61 | |
62 | # needed directories |
63 | minstalldir /usr/share/man/man1 || die |
64 | |
65 | # installs lynx |
66 | mmake DESTDIR=${BINDIR} install || die |
67 | |
68 | # installs lynx-doc files |
69 | make DOCDIR=${BINDIR}/usr/share/doc/${PNAME}-${PVER}/lynx_doc \ |
70 | HELPDIR=${BINDIR}/usr/share/doc/${PNAME}-${PVER}/lynx_help \ |
71 | install-doc || die |
72 | |
73 | # installs lynx-help files |
74 | make DOCDIR=${BINDIR}/usr/share/doc/${PNAME}-${PVER}/lynx_doc \ |
75 | HELPDIR=${BINDIR}/usr/share/doc/${PNAME}-${PVER}/lynx_help \ |
76 | libdir=${BINDIR}/etc \ |
77 | install-help || die |
78 | |
79 | # fixes doc/help location in lynx.cfg |
80 | sed -i "s|^HELPFILE.*$|HELPFILE:file://localhost/usr/share/doc/${PNAME}-${PVER}/lynx_help/lynx_help_main.html|" lynx.cfg || die |
81 | minstalletc ${SRCDIR}/lynx.cfg || die |
82 | |
83 | # install other docs and readmes |
84 | minstalldocs CHANGES COPYHEADER INSTALLATION PROBLEMS README || die |
85 | } |