snownews stable port information

Package: snownews
Version: 1.5.12
Revision: 2
Description: Text mode RSS/RDF newsreader
License: GPL
Maintainer: Daniel Macks

# Dependencies
Depends: <<
libgettext8-shlibs,
libiconv,
libncurses5-shlibs (>= 5.4-20041023-1006),
libxml2-shlibs
<<
BuildDepends: <<
fink (>= 0.24.12-1),
gettext-tools,
libgettext8-dev,
libiconv-dev,
libncurses5 (>= 5.4-20041023-1006),
libxml2,
system-openssl-dev
<<

# Unpack Phase
Source: http://kiza.kcore.de/software/snownews/download/snownews-%v.tar.gz
Source-MD5: 80da8943fc5aa96571924aec0087d4c0

# Patch Phase
PatchFile: %n.patch
PatchFile-MD5: dad956518897ea708bafc650f2038b63

# Compile Phase
CompileScript: <<
./configure %c
make
<<

# Install Phase
DocFiles: AUTHOR COPYING CREDITS Changelog README*
InstallScript: <<
make install DESTDIR=%d

mkdir -p %i/share/doc/%n/examples
mv %i/bin/opml2snow %i/bin/snow2opml %i/share/man/man1/opml2snow.1 %i/share/doc/%n/examples
<<

# Additional Data
Homepage: http://kiza.kcore.de/software/snownews/index.en
DescDetail: <<
Snownews is a text mode RSS/RDF newsreader. It supports all versions of RSS
natively and supports other formats via plugins.

Features
* Fast and very resource friendly.
* Builtin HTTP client will follow server redirects
* Handles gzip compression.
* Local cache for minimal network traffic.
* HTTP proxy support.
* Color support.
* Extensible via plugins.
* Feed categories and many other useful features!
<<
DescUsage: <<
Refer to snownews(1) man pages for usage information
<<
DescPort: <<
-Configuration does not use autotools but has hacked a similar system.
-opml2snow moved to doc/examples, because it require XML::LibXML or fink libxml-pm installed
<<
DescPackaging: <<
Formerly maintained by Khairulmizam Samsudin

openssl is heavy approach just for md5! Upstream notified.
<<

snownews stable port .patch

diff -Nurd -x'*~' snownews-1.5.12.orig/configure snownews-1.5.12/configure
--- snownews-1.5.12.orig/configure 2009-09-17 02:44:27.000000000 -0400
+++ snownews-1.5.12/configure 2009-09-23 15:41:09.000000000 -0400
@@ -17,6 +17,8 @@

my $use_nls = 1;
parse_cmdl_line();
+$cflags = "-I${prefix}/lib/system-openssl/include $cflags";
+$ldflags = "-L${prefix}/lib/system-openssl/lib $ldflags";


##############################
@@ -29,7 +31,7 @@
print "Configuring for a GNU based system... ";
} elsif (lc($os) =~ /bsd|darwin|freemint/) {
print "Configuring for a BSD style system... ";
- $cflags = $cflags.' -DSTATIC_CONST_ICONV -I/usr/local/include';
+ $cflags = $cflags;
if ($use_nls == 1) {
$ldflags .= ' -lintl ';
}
diff -Nurd -x'*~' snownews-1.5.12.orig/doc/man/snownews.1.in snownews-1.5.12/doc/man/snownews.1.in
--- snownews-1.5.12.orig/doc/man/snownews.1.in 2009-09-17 02:44:27.000000000 -0400
+++ snownews-1.5.12/doc/man/snownews.1.in 2009-09-23 15:01:15.000000000 -0400
@@ -67,7 +67,7 @@
.B 'o'
will open the link (usually the complete news text) in the browser.
.P
-The default browser is lynx, but you can change this by pressing
+The default browser depends on 'open', but you can change this by pressing
.B 'B'
in the main menu and entering a new default browser. Or you can edit
the file ~/.snownews/browser. The program replaces
diff -Nurd -x'*~' snownews-1.5.12.orig/main.c snownews-1.5.12/main.c
--- snownews-1.5.12.orig/main.c 2009-09-17 02:44:27.000000000 -0400
+++ snownews-1.5.12/main.c 2009-09-23 15:06:48.000000000 -0400
@@ -127,7 +127,9 @@
/* Do this after everything else. If it doesn't work or hang
user can ctrl-c without interfering with the program operation
(like writing caches). */
+ /* Disable the check for later versions...
AutoVersionCheck();
+ It is not needed in a packaged distribution. */

exit(0);
} else {
diff -Nurd -x'*~' snownews-1.5.12.orig/setup.c snownews-1.5.12/setup.c
--- snownews-1.5.12.orig/setup.c 2009-09-17 02:44:27.000000000 -0400
+++ snownews-1.5.12/setup.c 2009-09-23 15:04:02.000000000 -0400
@@ -64,7 +64,7 @@
configfile = fopen (file, "w+");
if (configfile == NULL)
MainQuit (_("Create initial configfile \"config\""), strerror(errno)); /* Still didn't work? */
- browser = strdup("lynx %s");
+ browser = strdup("open %s");
fputs (browser, configfile);
fclose (configfile);
} else {

snownews _unstable_ port .patch