On Fri 2007.11.23 at 13:49 -0500, Okan Demirmen wrote:
> On Fri 2007.11.23 at 13:18 -0500, Ian Darwin wrote:
> >
> >> does one really need all those ps, pdf, texi, html and txt docs on top
> >> of the info and man pages? (e.g. --enable-docs-install)
> >
> > Well, some people really hate info pages and prefer html or pdf.
> >
> > Having both ps and pdf is probably overkill, so I'd drop the ps if it were
> > up to me.
>
> in this case we have a few man pages - ok fine, of course.
>
> then there are a bunch of other docs (some duplicated formats of the man
> pages, some not) - these happen to be duplicated in info, ps, pdf, html
> and txt formats. i'd like to only install one of these formats...maybe
> two if people really want ;)
>
> so i was going to just suggest the txt ones, but would pdf be preferred
> or ps, or txt and ps (or pdf)? i think people can go relatively easily
> from format to format if they really really want...right?
docs with txt and pdf.
ok?
Index: Makefile
===================================================================
RCS file: /data/OpenBSD/cvs/ports/math/netcdf/Makefile,v
retrieving revision 1.11
diff -u -p -r1.11 Makefile
--- Makefile 15 Sep 2007 18:44:36 -0000 1.11
+++ Makefile 23 Nov 2007 23:18:07 -0000
@@ -3,12 +3,12 @@
COMMENT= library for machine-independent, array-oriented data access
-DISTNAME= netcdf-3.5.0
-PKGNAME= ${DISTNAME}p1
+DISTNAME= netcdf-3.6.2
CATEGORIES= math
-SHARED_LIBS= netcdf 1.0 \
- netcdf_c++ 2.0
+SHARED_LIBS= netcdf 4.0 \
+ netcdff 4.0 \
+ netcdf_c++ 4.0
HOMEPAGE= http://www.unidata.ucar.edu/packages/netcdf/
@@ -19,31 +19,23 @@ PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
-WANTLIB= c
-MASTER_SITES= ftp://ftp.unidata.ucar.edu/pub/netcdf/ \
- ftp://ftp.unidata.ucar.edu/pub/netcdf/old/
-EXTRACT_SUFX= .tar.Z
+WANTLIB= c m
-WRKSRC= ${WRKDIST}/src
+MASTER_SITES= ftp://ftp.unidata.ucar.edu/pub/netcdf/
-CONFIGURE_STYLE= gnu dest
-CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
-
-MAKE_FLAGS= CPPFLAGS="-fPIC -DPIC -Df2cFortran -I${WRKSRC}/libsrc"
-
-REGRESS_DEPENDS= ::math/netcdf
-
-post-build:
- @(cd ${WRKSRC}/libsrc && \
- ${SETENV} ${MAKE_ENV} ${MAKE} LIBVER=${LIBnetcdf_VERSION}
shared_library)
- @(cd ${WRKSRC}/cxx && \
- ${SETENV} ${MAKE_ENV} ${MAKE} LIBVER=${LIBnetcdf_c++_VERSION}
shared_library)
+CONFIGURE_STYLE= gnu
+CONFIGURE_ENV= CPPFLAGS="-Df2cFortran"
+CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
+ --disable-f90
+
+USE_GMAKE= Yes
+USE_LIBTOOL= Yes
+SEPARATE_BUILD= concurrent
post-install:
- ${INSTALL_DATA} \
- ${WRKSRC}/libsrc/libnetcdf.so.${LIBnetcdf_VERSION} \
- ${WRKSRC}/cxx/libnetcdf_c++.so.${LIBnetcdf_c++_VERSION} \
- ${PREFIX}/lib
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/netcdf
+ @cd ${WRKSRC}/man && ${INSTALL_DATA} *.txt *.pdf \
+ ${PREFIX}/share/doc/netcdf
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /data/OpenBSD/cvs/ports/math/netcdf/distinfo,v
retrieving revision 1.4
diff -u -p -r1.4 distinfo
--- distinfo 5 Apr 2007 16:20:06 -0000 1.4
+++ distinfo 23 Nov 2007 17:19:57 -0000
@@ -1,5 +1,5 @@
-MD5 (netcdf-3.5.0.tar.Z) = KGQKQKRPmC+Q9e6xXpF6Hw==
-RMD160 (netcdf-3.5.0.tar.Z) = QxPgD8Vic+hxwAO/snxTPUp/VW8=
-SHA1 (netcdf-3.5.0.tar.Z) = 6cWphH2P+bPhuKGPXiFvahUIvOg=
-SHA256 (netcdf-3.5.0.tar.Z) = 06IROpF02EXcN3EigmzWix4C+7JTwPDCU7jhwZnIS5c=
-SIZE (netcdf-3.5.0.tar.Z) = 1319419
+MD5 (netcdf-3.6.2.tar.gz) = p9RQ2pCB5KbkQHBeoxho0w==
+RMD160 (netcdf-3.6.2.tar.gz) = 3PHvqQt0eSFawKLY3CMdlN3cc9g=
+SHA1 (netcdf-3.6.2.tar.gz) = MvuB85/8yrU5EkzD1fYZllzkLzY=
+SHA256 (netcdf-3.6.2.tar.gz) = /qp2c/Np5ftX/MUUJuK+aUIo3cwUH8P9IDmSaftrkxE=
+SIZE (netcdf-3.6.2.tar.gz) = 5312882
Index: patches/patch-src_cxx_nctst_cpp
===================================================================
RCS file: patches/patch-src_cxx_nctst_cpp
diff -N patches/patch-src_cxx_nctst_cpp
--- patches/patch-src_cxx_nctst_cpp 1 Feb 2004 12:22:05 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
-$OpenBSD: patch-src_cxx_nctst_cpp,v 1.1 2004/02/01 12:22:05 sturm Exp $
---- src/cxx/nctst.cpp.orig 2004-02-01 11:39:39.000000000 +0100
-+++ src/cxx/nctst.cpp 2004-02-01 11:39:47.000000000 +0100
-@@ -1,4 +1,6 @@
--#include <iostream.h>
-+#include <iostream>
-+using namespace std;
-+
- #include <string.h>
- #include "netcdfcpp.h"
-
Index: patches/patch-src_cxx_ncvalues_cpp
===================================================================
RCS file: patches/patch-src_cxx_ncvalues_cpp
diff -N patches/patch-src_cxx_ncvalues_cpp
--- patches/patch-src_cxx_ncvalues_cpp 1 Feb 2004 12:22:05 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,106 +0,0 @@
-$OpenBSD: patch-src_cxx_ncvalues_cpp,v 1.1 2004/02/01 12:22:05 sturm Exp $
---- src/cxx/ncvalues.cpp.orig 1998-12-22 19:21:49.000000000 +0100
-+++ src/cxx/ncvalues.cpp 2004-02-01 11:54:51.000000000 +0100
-@@ -7,7 +7,7 @@
- * $Header:
/data/OpenBSD/cvs/ports/math/netcdf/patches/patch-src_cxx_ncvalues_cpp,v 1.1
2004/02/01 12:22:05 sturm Exp $
- *********************************************************************/
-
--#include <iostream.h> // for debugging
-+#include <iostream> // for debugging
- #include "ncvalues.h"
-
- NcValues::NcValues( void ) : the_number(0), the_type(ncNoType)
-@@ -25,7 +25,7 @@ long NcValues::num( void )
- return the_number;
- }
-
--ostream& operator<< (ostream& os, const NcValues& vals)
-+std::ostream& operator<< (std::ostream& os, const NcValues& vals)
- {
- return vals.print(os);
- }
-@@ -244,7 +244,7 @@ inline char* NcValues_char::as_string( l
- return s;
- }
-
--ostream& NcValues_short::print(ostream& os) const
-+std::ostream& NcValues_short::print(std::ostream& os) const
- {
- for(int i = 0; i < the_number - 1; i++)
- os << the_values[i] << ", ";
-@@ -253,7 +253,7 @@ ostream& NcValues_short::print(ostream&
- return os;
- }
-
--ostream& NcValues_int::print(ostream& os) const
-+std::ostream& NcValues_int::print(std::ostream& os) const
- {
- for(int i = 0; i < the_number - 1; i++)
- os << the_values[i] << ", ";
-@@ -262,7 +262,7 @@ ostream& NcValues_int::print(ostream& os
- return os;
- }
-
--ostream& NcValues_nclong::print(ostream& os) const
-+std::ostream& NcValues_nclong::print(std::ostream& os) const
- {
- for(int i = 0; i < the_number - 1; i++)
- os << the_values[i] << ", ";
-@@ -271,7 +271,7 @@ ostream& NcValues_nclong::print(ostream&
- return os;
- }
-
--ostream& NcValues_long::print(ostream& os) const
-+std::ostream& NcValues_long::print(std::ostream& os) const
- {
- for(int i = 0; i < the_number - 1; i++)
- os << the_values[i] << ", ";
-@@ -280,7 +280,7 @@ ostream& NcValues_long::print(ostream& o
- return os;
- }
-
--ostream& NcValues_ncbyte::print(ostream& os) const
-+std::ostream& NcValues_ncbyte::print(std::ostream& os) const
- {
- for(int i = 0; i < the_number - 1; i++)
- os << the_values[i] << ", ";
-@@ -289,7 +289,7 @@ ostream& NcValues_ncbyte::print(ostream&
- return os;
- }
-
--ostream& NcValues_char::print(ostream& os) const
-+std::ostream& NcValues_char::print(std::ostream& os) const
- {
- os << '"';
- long len = the_number;
-@@ -302,7 +302,7 @@ ostream& NcValues_char::print(ostream& o
- return os;
- }
-
--ostream& NcValues_float::print(ostream& os) const
-+std::ostream& NcValues_float::print(std::ostream& os) const
- {
- long save=os.flags();
- os.precision(7);
-@@ -310,11 +310,11 @@ ostream& NcValues_float::print(ostream&
- os << the_values[i] << ", ";
- if (the_number > 0)
- os << the_values[the_number-1] ;
-- os.flags(save);
-+ os.precision(save);
- return os;
- }
-
--ostream& NcValues_double::print(ostream& os) const
-+std::ostream& NcValues_double::print(std::ostream& os) const
- {
- long save=os.flags();
- os.precision(15);
-@@ -322,6 +322,6 @@ ostream& NcValues_double::print(ostream&
- os << the_values[i] << ", ";
- if (the_number > 0)
- os << the_values[the_number-1];
-- os.flags(save);
-+ os.precision(save);
- return os;
- }
Index: patches/patch-src_cxx_ncvalues_h
===================================================================
RCS file: patches/patch-src_cxx_ncvalues_h
diff -N patches/patch-src_cxx_ncvalues_h
--- patches/patch-src_cxx_ncvalues_h 1 Feb 2004 12:22:06 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,60 +0,0 @@
-$OpenBSD: patch-src_cxx_ncvalues_h,v 1.1 2004/02/01 12:22:06 sturm Exp $
---- src/cxx/ncvalues.h.orig 1998-10-28 18:10:16.000000000 +0100
-+++ src/cxx/ncvalues.h 2004-02-01 11:57:27.000000000 +0100
-@@ -10,14 +10,9 @@
- #ifndef Ncvalues_def
- #define Ncvalues_def
-
--#include <iostream.h>
--#ifdef STRSTREAM_H_SPEC
--# include STRSTREAM_H_SPEC
--#else
--# include <strstream.h>
--#endif
-+#include <iostream>
-+#include <sstream>
- #include <limits.h>
--#include <string.h>
- #include "netcdf.h"
-
- typedef unsigned char ncbyte;
-@@ -82,7 +77,7 @@ class NcVal(TYPE) : public NcValues
- virtual int invalid( void ) const;
\
- private: \
- TYPE* the_values; \
-- ostream& print(ostream&) const; \
-+ std::ostream& print(std::ostream&) const;
\
- };
-
- #define NcTypeEnum(TYPE) makename2(_nc__,TYPE)
-@@ -220,8 +215,10 @@ inline double NcVal(TYPE)::as_double( lo
- char* NcVal(TYPE)::as_string( long n ) const \
- { \
- char* s = new char[32]; \
-- ostrstream ostr(s, sizeof(s));
\
-- ostr << the_values[n] << ends; \
-+ std::ostringstream ostr; \
-+ ostr << the_values[n]; \
-+ ostr.str().copy(s, std::string::npos); \
-+ s[ostr.str().length()] = 0;
\
- return s; \
- }
-
-@@ -232,7 +229,7 @@ class NcValues // ABC for value blocks
- NcValues(NcType, long);
- virtual ~NcValues( void );
- virtual long num( void );
-- virtual ostream& print(ostream&) const = 0;
-+ virtual std::ostream& print(std::ostream&) const = 0;
- virtual void* base( void ) const = 0;
- virtual int bytes_for_one( void ) const = 0;
-
-@@ -252,7 +249,7 @@ class NcValues // ABC for value blocks
- protected:
- NcType the_type;
- long the_number;
-- friend ostream& operator<< (ostream&, const NcValues&);
-+ friend std::ostream& operator<< (std::ostream&, const NcValues&);
- };
-
- declare(NcValues,ncbyte)
Index: patches/patch-src_cxx_netcdfcpp_h
===================================================================
RCS file: patches/patch-src_cxx_netcdfcpp_h
diff -N patches/patch-src_cxx_netcdfcpp_h
--- patches/patch-src_cxx_netcdfcpp_h 1 Feb 2004 12:22:06 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,30 +0,0 @@
-$OpenBSD: patch-src_cxx_netcdfcpp_h,v 1.1 2004/02/01 12:22:06 sturm Exp $
---- src/cxx/netcdfcpp.h.orig 2004-02-01 11:41:02.000000000 +0100
-+++ src/cxx/netcdfcpp.h 2004-02-01 11:41:35.000000000 +0100
-@@ -154,7 +154,7 @@ class NcDim
- virtual ~NcDim( void );
-
- // to construct dimensions, since constructor is private
-- friend NcFile;
-+ friend class NcFile;
- };
-
-
-@@ -357,7 +357,7 @@ class NcVar : public NcTypedComponent
- void init_cur( void );
-
- // to make variables, since constructor is private
-- friend NcFile;
-+ friend class NcFile;
- };
-
-
-@@ -388,7 +388,7 @@ class NcAtt : public NcTypedComponent
- NcAtt( NcFile*, NcToken); // global attribute
-
- // To make attributes, since constructor is private
-- friend NcFile;
-+ friend class NcFile;
- friend NcAtt* NcVar::get_att( NcToken ) const;
- };
-
Index: patches/patch-src_rules_make
===================================================================
RCS file: patches/patch-src_rules_make
diff -N patches/patch-src_rules_make
--- patches/patch-src_rules_make 24 Dec 2005 14:45:38 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,21 +0,0 @@
-$OpenBSD: patch-src_rules_make,v 1.1 2005/12/24 14:45:38 steven Exp $
---- src/rules.make.orig Sat Dec 24 10:21:12 2005
-+++ src/rules.make Sat Dec 24 10:27:53 2005
-@@ -73,6 +73,8 @@ shared_library:
- $(MAKE) irix_shared_library;; \
- Linux*) \
- $(MAKE) linux_shared_library;; \
-+ OpenBSD*) \
-+ $(MAKE) openbsd_shared_library;; \
- OSF1*) \
- $(MAKE) osf1_shared_library;; \
- 'SunOS 4'*) \
-@@ -95,6 +97,8 @@ irix_shared_library:
- -all $(LIBRARY) -none -lc -lC $(LIBS)
- linux_shared_library:
- ld -o $(LIBRARY:.a=.so) -shared --whole-archive $(LIBRARY)
-+openbsd_shared_library:
-+ ld -X -o $(LIBRARY:.a=.so).$(LIBVER) -shared --whole-archive $(LIBRARY)
- osf1_shared_library:
- ld -o $(LIBRARY:.a=.so) -shared -all $(LIBRARY)
- sunos4_shared_library:
Index: pkg/PFRAG.shared
===================================================================
RCS file: /data/OpenBSD/cvs/ports/math/netcdf/pkg/PFRAG.shared,v
retrieving revision 1.3
diff -u -p -r1.3 PFRAG.shared
--- pkg/PFRAG.shared 24 Dec 2005 14:45:38 -0000 1.3
+++ pkg/PFRAG.shared 23 Nov 2007 17:20:34 -0000
@@ -1,3 +1,4 @@
@comment $OpenBSD: PFRAG.shared,v 1.3 2005/12/24 14:45:38 steven Exp $
@lib lib/libnetcdf.so.${LIBnetcdf_VERSION}
@lib lib/libnetcdf_c++.so.${LIBnetcdf_c++_VERSION}
[EMAIL PROTECTED] lib/libnetcdff.so.${LIBnetcdff_VERSION}
Index: pkg/PLIST
===================================================================
RCS file: /data/OpenBSD/cvs/ports/math/netcdf/pkg/PLIST,v
retrieving revision 1.4
diff -u -p -r1.4 PLIST
--- pkg/PLIST 24 Dec 2005 14:45:38 -0000 1.4
+++ pkg/PLIST 23 Nov 2007 23:23:27 -0000
@@ -1,17 +1,34 @@
@comment $OpenBSD: PLIST,v 1.4 2005/12/24 14:45:38 steven Exp $
+%%SHARED%%
bin/ncdump
bin/ncgen
include/ncvalues.h
include/netcdf.h
include/netcdf.hh
[EMAIL PROTECTED] include/netcdf.inc
+include/netcdf.inc
include/netcdfcpp.h
lib/libnetcdf.a
+lib/libnetcdf.la
lib/libnetcdf_c++.a
+lib/libnetcdf_c++.la
+lib/libnetcdff.a
+lib/libnetcdff.la
@man man/man1/ncdump.1
@man man/man1/ncgen.1
@man man/man3/netcdf.3
[EMAIL PROTECTED] man/man3/netcdf.3f
-%%SHARED%%
[EMAIL PROTECTED] man/man3f/
[EMAIL PROTECTED] @man man/man3f/netcdf.3f
[EMAIL PROTECTED] man/man3/netcdf_f77.3
+share/doc/netcdf/
+share/doc/netcdf/netcdf-c.pdf
+share/doc/netcdf/netcdf-c.txt
+share/doc/netcdf/netcdf-cxx.pdf
+share/doc/netcdf/netcdf-cxx.txt
+share/doc/netcdf/netcdf-f77.pdf
+share/doc/netcdf/netcdf-f77.txt
+share/doc/netcdf/netcdf-f90.pdf
+share/doc/netcdf/netcdf-f90.txt
+share/doc/netcdf/netcdf-install.pdf
+share/doc/netcdf/netcdf-install.txt
+share/doc/netcdf/netcdf-tutorial.pdf
+share/doc/netcdf/netcdf-tutorial.txt
+share/doc/netcdf/netcdf.pdf
+share/doc/netcdf/netcdf.txt