Magellan Linux

Annotation of /trunk/core/lynx/lynx-2.8.9-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31426 - (hide annotations) (download)
Mon Jul 9 10:13:51 2018 UTC (5 years, 10 months ago) by niro
File size: 1920 byte(s)
-fixed SRCDIR
1 niro 31423 # $Id$
2    
3     PNAME="lynx"
4     PVER="2.8.9"
5     PBUILD="r1"
6    
7     # patchlevel of lynx
8 niro 31425 PLEVEL="1"
9 niro 31423
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 niro 31426 SRCDIR="${BUILDDIR}/${PNAME}${PVER}rel.${PLEVEL}"
23 niro 31423
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     )
31    
32     UP2SEPERATOR="lynx"
33     UP2DATE="updatecmd https://invisible-mirror.net/archives/lynx/tarballs/ | 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     }