lynx stable port information

Package: lynx
Version: 2.8.5
Revision: 4
Replaces: lynx-ssl (<< %v-%r)
SplitOff: <<
Package: lynx-ssl
Depends: %N (= %v-%r), fink-obsolete-packages
Description: Dummy upgrade package for lynx with system-openssl
DocFiles: CHANGES COPYHEADER COPYING README
DescDetail: <<
This package only exists to migrate users to the new unified lynx package.
You can safely remove it.
<<
<<

BuildDepends: libncurses5, libgettext3-dev, gettext-bin, libiconv-dev, system-openssl-dev
Depends: ncurses, libncurses5-shlibs, libgettext3-shlibs, libiconv

CustomMirror: <<
Primary: http://lynx.isc.org/lynx2.8.5/
Primary: http://ftp.at.gnucash.org/infosys/browsers/lynx/lynx2.8.5/
Primary: http://gd.tuwien.ac.at/infosys/browsers/lynx/lynx2.8.5/
<<
Source: mirror:custom:lynx%v.tar.bz2
Source-MD5: d1e5134e5d175f913c16cb6768bc30eb
SourceDirectory: lynx2-8-5
Description: Console based web browser

DescDetail: <<
Lynx is a web browser that runs inside a terminal emulator,
e.g. Terminal.app or an xterm. It can't display graphics and also has
trouble with tables, but it can come in handy in some situations.

This package builds Lynx with SSL/https support using Apple's
openssl implementation.
<<

##Patch phase
Patch: %n.patch

##Compile phase
ConfigureParams: --enable-nls --with-screen=ncurses --disable-full-paths --enable-file-upload --enable-internal-links --libdir=%p/lib --mandir=%p/share/man --sysconfdir=%p/etc --enable-persistent-cookies --with-ssl=%p/lib/system-openssl
SetLDFLAGS: -L%p/lib/system-openssl/lib
SetLIBS: -lncurses
NoSetMAKEFLAGS: true
SetMAKEFLAGS: -j1
CompileScript: <<
#!/bin/sh -ex
export CPATH=%p/include
export PATH=/usr/bin/:$PATH
./configure %c
make
<<

#Install Phase
InstallScript: <<
mkdir -p %i/etc
make install-full DESTDIR=%d docdir=%p/share/doc/%n helpdir=%p/share/lynx_help localedir=%i/share/locale gnulocaledir=%i/share/locale
mv %i/lib/lynx.cfg %i/etc/lynx.cfg
<<
DocFiles: CHANGES COPYHEADER COPYING README
ConfFiles: %p/etc/lynx.cfg
#

DescPort: <<
Unicode characters do not work correctly with Terminal.app but they
display OK in xterm
<<
DescPackaging: <<
The Makefile for the message catalogs doesn't respect DESTDIR, we work
around that by setting the installation paths on the command line.

Putting lynx.cfg in etc/ and the documentation elsewhere is a problem
because the configure script uses libdir for both. Fortunately, only
the path to lynx.cfg is hardcoded into the executable. So we set
libdir to etc/ and override the doc and help directories in the
install step. The Makefile edits lynx.cfg on the fly in the install
step, so all paths are correct.

Previous maintainer Alexander Strange (through 2.8.4-24).

dmacks--Patch makefile.in to install actual COPYING and COPYHEADER files
in lynx_help instead of symlinks to build dir files.
Patch WWW/Library/Implementation/HTTCP.c to fix a POSIX problem.

dmacks--remove solaris-specific game in src/LYMain.c that breaks
gettext prototyping headers.

dmacks--lotsf of patches to configure and various makefile.in to make
sure local flags come before global and that specially-detected
support-lib flags come before standard ones.
<<

License: GPL
Homepage: http://lynx.browser.org/
Maintainer: elcepi

lynx stable port .patch

diff -urN lynx2-8-5/WWW/Library/Implementation/HTTCP.c lynx2-8-5.patched/WWW/Library/Implementation/HTTCP.c
--- lynx2-8-5/WWW/Library/Implementation/HTTCP.c 2004-01-24 17:51:04.000000000 -0800
+++ lynx2-8-5.patched/WWW/Library/Implementation/HTTCP.c 2006-06-07 22:30:28.000000000 -0700
@@ -1326,7 +1326,11 @@
if (phost->h_length != sizeof soc_in->sin_addr) {
HTAlwaysAlert(host, gettext("Address length looks invalid"));
}
+#ifdef _POSIX_C_SOURCE
+ memcpy((void *)&soc_in->sin_addr, phost->h_addr_list[0], phost->h_length);
+#else
memcpy((void *)&soc_in->sin_addr, phost->h_addr, phost->h_length);
+#endif /* _POSIX_C_SOURCE */
#endif /* VMS && CMU_TCP */
}
#endif /* _WINDOWS_NSL */
diff -urN lynx2-8-5/WWW/Library/Implementation/makefile.in lynx2-8-5.patched/WWW/Library/Implementation/makefile.in
--- lynx2-8-5/WWW/Library/Implementation/makefile.in 2004-01-24 20:51:04.000000000 -0500
+++ lynx2-8-5.patched/WWW/Library/Implementation/makefile.in 2008-06-08 18:56:59.000000000 -0400
@@ -25,12 +25,12 @@
INTLDIR_CPPFLAGS= @INTLDIR_CPPFLAGS@ -I$(top_srcdir)/intl

CPP = @CPP@
-CPPOPTS = $(DEFS) $(CPPFLAGS) $(LYFLAGS) \
+CPPOPTS = $(DEFS) $(LYFLAGS) \
-I../../.. \
-I../../../src \
-I$(top_srcdir) \
-I$(top_srcdir)/src \
- $(INTLDIR_CPPFLAGS) -I$(WWWINC)
+ -I$(WWWINC) $(INTLDIR_CPPFLAGS) $(CPPFLAGS)

LY_CFLAGS = @CFLAGS@
CFLAGS = $(CPPOPTS) $(LY_CFLAGS)
diff -urN lynx2-8-5/configure lynx2-8-5.patched/configure
--- lynx2-8-5/configure 2004-02-04 07:07:09.000000000 -0500
+++ lynx2-8-5.patched/configure 2008-06-08 18:52:38.000000000 -0400
@@ -5860,11 +5860,11 @@
*)
if test -d $cf_cv_use_libssl ; then
if test -d $cf_cv_use_libssl/include ; then
- CPPFLAGS="$CPPFLAGS -I$cf_cv_use_libssl/include"
+ CPPFLAGS="-I$cf_cv_use_libssl/include $CPPFLAGS"
cf_ssl_library="-L$cf_cv_use_libssl/lib $cf_ssl_library"
else
cf_ssl_library="-L$cf_cv_use_libssl $cf_ssl_library"
- test -d $cf_cv_use_libssl/../include && CPPFLAGS="$CPPFLAGS -I$cf_cv_use_libssl/../include"
+ test -d $cf_cv_use_libssl/../include && CPPFLAGS="-I$cf_cv_use_libssl/../include $CPPFLAGS"
fi
else
echo "configure: warning: expected a directory: $cf_cv_use_libssl" 1>&2
@@ -9595,7 +9595,7 @@
;;
esac

-eval cf_libdir=$libdir
+eval cf_libdir=$sysconfdir
cf_libdir=`echo $cf_libdir | sed -e s%'^NONE/'%$prefix/% -e s%'^NONE/'%$ac_default_prefix/%`

echo $ac_n "checking for location of config-file""... $ac_c" 1>&6
diff -urN lynx2-8-5/makefile.in lynx2-8-5.patched/makefile.in
--- lynx2-8-5/makefile.in 2004-02-04 04:07:09.000000000 -0800
+++ lynx2-8-5.patched/makefile.in 2006-06-07 22:30:28.000000000 -0700
@@ -305,7 +305,7 @@
fi'
$(SHELL) -c 'for name in COPYING COPYHEADER; do \
cd $(HELPDIR) && rm -f $$name ;\
- cd $(HELPDIR) && ( $(LN_S) $(DOCDIR)/$$name . || cp $(DOCDIR)/$$name . );\
+ cd $(HELPDIR) && cp $(DOCDIR)/$$name . ;\
done'
-$(SHELL) -c 'case `id|sed -e "s/(.*//"` in uid=0) chown -R root $(DOCDIR);; esac'

diff -urN lynx2-8-5/src/LYMain.c lynx2-8-5.patched/src/LYMain.c
--- lynx2-8-5/src/LYMain.c 2004-01-28 14:30:38.000000000 -0500
+++ lynx2-8-5.patched/src/LYMain.c 2008-06-08 18:32:29.000000000 -0400
@@ -48,7 +48,6 @@
#endif

#ifdef LOCALE
-#undef gettext /* Solaris locale.h prototypes gettext() */
#include
#ifndef HAVE_GETTEXT
#define gettext(s) s
diff -urN lynx2-8-5/src/chrtrans/makefile.in lynx2-8-5.patched/src/chrtrans/makefile.in
--- lynx2-8-5/src/chrtrans/makefile.in 2004-01-07 21:03:09.000000000 -0500
+++ lynx2-8-5.patched/src/chrtrans/makefile.in 2008-06-08 22:19:13.000000000 -0400
@@ -31,13 +31,13 @@
x = @EXEEXT@
o = .@OBJEXT@

-CPP_OPTS = @DEFS@ @CPPFLAGS@ \
+CPP_OPTS = @DEFS@ \
-I$(top_builddir) \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/chrtrans \
-I$(top_srcdir)/$(WWWINC) \
-I$(top_srcdir)/ \
- $(INTLDIR_CPPFLAGS) $(SITE_DEFS)
+ $(INTLDIR_CPPFLAGS) $(SITE_DEFS) @CPPFLAGS@
CC_OPTS = $(CPP_OPTS) $(CFLAGS)

#
diff -urN lynx2-8-5/src/makefile.in lynx2-8-5.patched/src/makefile.in
--- lynx2-8-5/src/makefile.in 2004-01-07 21:03:09.000000000 -0500
+++ lynx2-8-5.patched/src/makefile.in 2008-06-08 18:17:34.000000000 -0400
@@ -41,7 +41,7 @@
INTLLIB = @INTLLIBS@
INTLDIR_CPPFLAGS= @INTLDIR_CPPFLAGS@-I$(top_srcdir)/intl

-CPP_OPTS = $(CPPFLAGS) $(DEFS) $(CHARSET_DEFS) \
+CPP_OPTS = $(DEFS) $(CHARSET_DEFS) \
-DLOCALEDIR=\"$(localedir)\" \
-I. \
-I$(top_builddir) \
@@ -50,7 +50,7 @@
-I$(top_srcdir) \
-I$(top_srcdir)/src \
-I$(top_srcdir)/$(WWWINC) \
- $(INTLDIR_CPPFLAGS) $(SITE_DEFS)
+ $(INTLDIR_CPPFLAGS) $(SITE_DEFS) $(CPPFLAGS)
CC_OPTS = $(CPP_OPTS) $(CFLAGS)

LINT = @LINT@

lynx _unstable_ port information

Package: lynx
Version: 2.8.5
Revision: 4
Replaces: lynx-ssl (<< %v-%r)
SplitOff: <<
Package: lynx-ssl
Depends: %N (= %v-%r), fink-obsolete-packages
Description: Dummy upgrade package for lynx with system-openssl
DocFiles: CHANGES COPYHEADER COPYING README
DescDetail: <<
This package only exists to migrate users to the new unified lynx package.
You can safely remove it.
<<
<<

BuildDepends: libncurses5, libgettext3-dev, gettext-bin, libiconv-dev, system-openssl-dev
Depends: ncurses, libncurses5-shlibs, libgettext3-shlibs, libiconv

CustomMirror: <<
Primary: http://lynx.isc.org/lynx2.8.5/
Primary: http://ftp.at.gnucash.org/infosys/browsers/lynx/lynx2.8.5/
Primary: http://gd.tuwien.ac.at/infosys/browsers/lynx/lynx2.8.5/
<<
Source: mirror:custom:lynx%v.tar.bz2
Source-MD5: d1e5134e5d175f913c16cb6768bc30eb
SourceDirectory: lynx2-8-5
Description: Console based web browser

DescDetail: <<
Lynx is a web browser that runs inside a terminal emulator,
e.g. Terminal.app or an xterm. It can't display graphics and also has
trouble with tables, but it can come in handy in some situations.

This package builds Lynx with SSL/https support using Apple's
openssl implementation.
<<

##Patch phase
Patch: %n.patch

##Compile phase
ConfigureParams: --enable-nls --with-screen=ncurses --disable-full-paths --enable-file-upload --enable-internal-links --libdir=%p/lib --mandir=%p/share/man --sysconfdir=%p/etc --enable-persistent-cookies --with-ssl=%p/lib/system-openssl
SetLDFLAGS: -L%p/lib/system-openssl/lib
SetLIBS: -lncurses
NoSetMAKEFLAGS: true
SetMAKEFLAGS: -j1
CompileScript: <<
#!/bin/sh -ex
export CPATH=%p/include
export PATH=/usr/bin/:$PATH
./configure %c
make
<<

#Install Phase
InstallScript: <<
mkdir -p %i/etc
make install-full DESTDIR=%d docdir=%p/share/doc/%n helpdir=%p/share/lynx_help localedir=%i/share/locale gnulocaledir=%i/share/locale
mv %i/lib/lynx.cfg %i/etc/lynx.cfg
<<
DocFiles: CHANGES COPYHEADER COPYING README
ConfFiles: %p/etc/lynx.cfg
#

DescPort: <<
Unicode characters do not work correctly with Terminal.app but they
display OK in xterm
<<
DescPackaging: <<
The Makefile for the message catalogs doesn't respect DESTDIR, we work
around that by setting the installation paths on the command line.

Putting lynx.cfg in etc/ and the documentation elsewhere is a problem
because the configure script uses libdir for both. Fortunately, only
the path to lynx.cfg is hardcoded into the executable. So we set
libdir to etc/ and override the doc and help directories in the
install step. The Makefile edits lynx.cfg on the fly in the install
step, so all paths are correct.

Previous maintainer Alexander Strange (through 2.8.4-24).

dmacks--Patch makefile.in to install actual COPYING and COPYHEADER files
in lynx_help instead of symlinks to build dir files.
Patch WWW/Library/Implementation/HTTCP.c to fix a POSIX problem.

dmacks--remove solaris-specific game in src/LYMain.c that breaks
gettext prototyping headers.

dmacks--lotsf of patches to configure and various makefile.in to make
sure local flags come before global and that specially-detected
support-lib flags come before standard ones.
<<

License: GPL
Homepage: http://lynx.browser.org/
Maintainer: elcepi

lynx _unstable_ port .patch

diff -urN lynx2-8-5/WWW/Library/Implementation/HTTCP.c lynx2-8-5.patched/WWW/Library/Implementation/HTTCP.c
--- lynx2-8-5/WWW/Library/Implementation/HTTCP.c 2004-01-24 17:51:04.000000000 -0800
+++ lynx2-8-5.patched/WWW/Library/Implementation/HTTCP.c 2006-06-07 22:30:28.000000000 -0700
@@ -1326,7 +1326,11 @@
if (phost->h_length != sizeof soc_in->sin_addr) {
HTAlwaysAlert(host, gettext("Address length looks invalid"));
}
+#ifdef _POSIX_C_SOURCE
+ memcpy((void *)&soc_in->sin_addr, phost->h_addr_list[0], phost->h_length);
+#else
memcpy((void *)&soc_in->sin_addr, phost->h_addr, phost->h_length);
+#endif /* _POSIX_C_SOURCE */
#endif /* VMS && CMU_TCP */
}
#endif /* _WINDOWS_NSL */
diff -urN lynx2-8-5/WWW/Library/Implementation/makefile.in lynx2-8-5.patched/WWW/Library/Implementation/makefile.in
--- lynx2-8-5/WWW/Library/Implementation/makefile.in 2004-01-24 20:51:04.000000000 -0500
+++ lynx2-8-5.patched/WWW/Library/Implementation/makefile.in 2008-06-08 18:56:59.000000000 -0400
@@ -25,12 +25,12 @@
INTLDIR_CPPFLAGS= @INTLDIR_CPPFLAGS@ -I$(top_srcdir)/intl

CPP = @CPP@
-CPPOPTS = $(DEFS) $(CPPFLAGS) $(LYFLAGS) \
+CPPOPTS = $(DEFS) $(LYFLAGS) \
-I../../.. \
-I../../../src \
-I$(top_srcdir) \
-I$(top_srcdir)/src \
- $(INTLDIR_CPPFLAGS) -I$(WWWINC)
+ -I$(WWWINC) $(INTLDIR_CPPFLAGS) $(CPPFLAGS)

LY_CFLAGS = @CFLAGS@
CFLAGS = $(CPPOPTS) $(LY_CFLAGS)
diff -urN lynx2-8-5/configure lynx2-8-5.patched/configure
--- lynx2-8-5/configure 2004-02-04 07:07:09.000000000 -0500
+++ lynx2-8-5.patched/configure 2008-06-08 18:52:38.000000000 -0400
@@ -5860,11 +5860,11 @@
*)
if test -d $cf_cv_use_libssl ; then
if test -d $cf_cv_use_libssl/include ; then
- CPPFLAGS="$CPPFLAGS -I$cf_cv_use_libssl/include"
+ CPPFLAGS="-I$cf_cv_use_libssl/include $CPPFLAGS"
cf_ssl_library="-L$cf_cv_use_libssl/lib $cf_ssl_library"
else
cf_ssl_library="-L$cf_cv_use_libssl $cf_ssl_library"
- test -d $cf_cv_use_libssl/../include && CPPFLAGS="$CPPFLAGS -I$cf_cv_use_libssl/../include"
+ test -d $cf_cv_use_libssl/../include && CPPFLAGS="-I$cf_cv_use_libssl/../include $CPPFLAGS"
fi
else
echo "configure: warning: expected a directory: $cf_cv_use_libssl" 1>&2
@@ -9595,7 +9595,7 @@
;;
esac

-eval cf_libdir=$libdir
+eval cf_libdir=$sysconfdir
cf_libdir=`echo $cf_libdir | sed -e s%'^NONE/'%$prefix/% -e s%'^NONE/'%$ac_default_prefix/%`

echo $ac_n "checking for location of config-file""... $ac_c" 1>&6
diff -urN lynx2-8-5/makefile.in lynx2-8-5.patched/makefile.in
--- lynx2-8-5/makefile.in 2004-02-04 04:07:09.000000000 -0800
+++ lynx2-8-5.patched/makefile.in 2006-06-07 22:30:28.000000000 -0700
@@ -305,7 +305,7 @@
fi'
$(SHELL) -c 'for name in COPYING COPYHEADER; do \
cd $(HELPDIR) && rm -f $$name ;\
- cd $(HELPDIR) && ( $(LN_S) $(DOCDIR)/$$name . || cp $(DOCDIR)/$$name . );\
+ cd $(HELPDIR) && cp $(DOCDIR)/$$name . ;\
done'
-$(SHELL) -c 'case `id|sed -e "s/(.*//"` in uid=0) chown -R root $(DOCDIR);; esac'

diff -urN lynx2-8-5/src/LYMain.c lynx2-8-5.patched/src/LYMain.c
--- lynx2-8-5/src/LYMain.c 2004-01-28 14:30:38.000000000 -0500
+++ lynx2-8-5.patched/src/LYMain.c 2008-06-08 18:32:29.000000000 -0400
@@ -48,7 +48,6 @@
#endif

#ifdef LOCALE
-#undef gettext /* Solaris locale.h prototypes gettext() */
#include
#ifndef HAVE_GETTEXT
#define gettext(s) s
diff -urN lynx2-8-5/src/chrtrans/makefile.in lynx2-8-5.patched/src/chrtrans/makefile.in
--- lynx2-8-5/src/chrtrans/makefile.in 2004-01-07 21:03:09.000000000 -0500
+++ lynx2-8-5.patched/src/chrtrans/makefile.in 2008-06-08 22:19:13.000000000 -0400
@@ -31,13 +31,13 @@
x = @EXEEXT@
o = .@OBJEXT@

-CPP_OPTS = @DEFS@ @CPPFLAGS@ \
+CPP_OPTS = @DEFS@ \
-I$(top_builddir) \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/chrtrans \
-I$(top_srcdir)/$(WWWINC) \
-I$(top_srcdir)/ \
- $(INTLDIR_CPPFLAGS) $(SITE_DEFS)
+ $(INTLDIR_CPPFLAGS) $(SITE_DEFS) @CPPFLAGS@
CC_OPTS = $(CPP_OPTS) $(CFLAGS)

#
diff -urN lynx2-8-5/src/makefile.in lynx2-8-5.patched/src/makefile.in
--- lynx2-8-5/src/makefile.in 2004-01-07 21:03:09.000000000 -0500
+++ lynx2-8-5.patched/src/makefile.in 2008-06-08 18:17:34.000000000 -0400
@@ -41,7 +41,7 @@
INTLLIB = @INTLLIBS@
INTLDIR_CPPFLAGS= @INTLDIR_CPPFLAGS@-I$(top_srcdir)/intl

-CPP_OPTS = $(CPPFLAGS) $(DEFS) $(CHARSET_DEFS) \
+CPP_OPTS = $(DEFS) $(CHARSET_DEFS) \
-DLOCALEDIR=\"$(localedir)\" \
-I. \
-I$(top_builddir) \
@@ -50,7 +50,7 @@
-I$(top_srcdir) \
-I$(top_srcdir)/src \
-I$(top_srcdir)/$(WWWINC) \
- $(INTLDIR_CPPFLAGS) $(SITE_DEFS)
+ $(INTLDIR_CPPFLAGS) $(SITE_DEFS) $(CPPFLAGS)
CC_OPTS = $(CPP_OPTS) $(CFLAGS)

LINT = @LINT@