nget stable port information

Package: nget
Version: 0.27.1
Revision: 1002
GCC: 4.0
Source: mirror:sourceforge:%n/%n-%v+uulib.tar.gz
SourceDirectory: %n-%v
Source-MD5: cefb58ad9b92eb6053510a2ced954f6e
Depends: popt-shlibs, libpcre1-shlibs
BuildDepends: popt, autoconf (>= 2.60-1), libpcre1
# assert.h indirectly includes /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/stdint.h, which defines _STDINT_H_.
# So when later inttypes.h is included after defining __STDC_CONSTANT_MACROS _ which should make its call to
# /usr/include/stdint.h define the needed macro UINT_C, this call to stdint.h is bypassed. Thus we instead
# include assert.h only after:
PatchFile: %n.patch
PatchFile-MD5: a52e174c148ad1ca06746725ee6f8a74
PatchScript: <<
#!/bin/sh -ev
%{default_script}
sed -i.bak -e '/ #include ' _subconf.h
<<
SetCXXFLAGS: -Os
ConfigureParams: --mandir='$(prefix)/share/man' --with-pcre --with-zlib --with-popt --with-pcre-prefix=%p --with-popt-prefix=%p
CompileScript: <<
export CC=gcc; export CXX=g++; ./configure %c
make CC=gcc CXX=g++
<<
InstallScript: <<
mkdir -p %i/bin
mkdir -p %i/share/man/man1
make install prefix=%i mandir=%i/share/man
<<
DocFiles: README README.win32 Changelog COPYING FAQ TODO format-TODO .ngetrc
Description: Downloader for binary news postings
DescDetail: <<
The purpose of nget is to provide a powerful and flexible
interface to the Internet News Protocol.
You can get all postings described by a regular expression from one
or more groups.
<<
DescPort: <<
Patch for gcc4:
http://nget.cvs.sourceforge.net/viewvc/nget/nget/auto_map.h?r1=1.8&r2=1.10
<<
License: GPL
Maintainer: Thomas Kotzian
Homepage: http://nget.sourceforge.net

nget stable port .patch

--- a/auto_map.h 2004/06/17 20:59:44 1.8
+++ b/auto_map.h 2008/03/10 06:52:28 1.10
@@ -23,10 +23,10 @@
#include
#include

-template class Base>
-class auto_map_base : public Base > {
+template
+class auto_map_base : public Base {
protected:
- typedef Base > super;
+ typedef Base super;
public:
typedef typename super::iterator iterator;

@@ -55,9 +55,9 @@


template
-class auto_map : public auto_map_base {
+class auto_map : public auto_map_base > > {
public:
- typedef typename auto_map_base::super super;
+ typedef typename auto_map_base > >::super super;
typedef typename super::iterator iterator;
typedef typename super::value_type value_type;
/*super::value_type value_type(const K &k, T*p) {
@@ -68,15 +68,15 @@
return super::insert(v);
}*/
std::pair insert_value(const K &k, T* p) { //we can't really use the normal insert funcs, but we don't want to just name it insert since it would be easy to confuse with all the normal map insert funcs
- assert(find(k)==this->end());
+ assert(this->find(k)==this->end());
return super::insert(value_type(k, restricted_ptr(p)));
}
};

template
-class auto_multimap : public auto_map_base {
+class auto_multimap : public auto_map_base > > {
public:
- typedef typename auto_map_base::super super;
+ typedef typename auto_map_base > >::super super;
typedef typename super::iterator iterator;
typedef typename super::value_type value_type;
iterator insert_value(const K &k, T* p) { //we can't really use the normal insert funcs, but we don't want to just name it insert since it would be easy to confuse with all the normal map insert funcs

nget _unstable_ port .patch