diff options
author | jlam <jlam@pkgsrc.org> | 2000-05-29 22:46:44 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2000-05-29 22:46:44 +0000 |
commit | 3e4e760fd4fb9177098b7629b6a60ad4dd67cdff (patch) | |
tree | d1d85326410d42d7a43c2536c90a9673a28fc4c9 /devel/boost | |
parent | 4397a6878e373aa77c24e78f5d30ed5ca9a513b7 (diff) | |
download | pkgsrc-3e4e760fd4fb9177098b7629b6a60ad4dd67cdff.tar.gz |
Update boost to 1.14.3 since old distfile is gone from master site.
* Remove limits and memory. Just depend on SGI STL package which has much
better versions of these files.
* Minor fixes and enhancements in the documentation.
Diffstat (limited to 'devel/boost')
-rw-r--r-- | devel/boost/Makefile | 9 | ||||
-rw-r--r-- | devel/boost/files/Makefile | 4 | ||||
-rw-r--r-- | devel/boost/files/limits | 266 | ||||
-rw-r--r-- | devel/boost/files/md5 | 4 | ||||
-rw-r--r-- | devel/boost/files/memory | 100 | ||||
-rw-r--r-- | devel/boost/pkg/PLIST | 7 |
6 files changed, 14 insertions, 376 deletions
diff --git a/devel/boost/Makefile b/devel/boost/Makefile index 4d278670840..13fb6a3a602 100644 --- a/devel/boost/Makefile +++ b/devel/boost/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.3 2000/05/12 06:15:06 jlam Exp $ +# $NetBSD: Makefile,v 1.4 2000/05/29 22:46:44 jlam Exp $ DISTNAME= boost_all -PKGNAME= boost-1.14.1 +PKGNAME= boost-1.14.3 CATEGORIES= devel MASTER_SITES= http://www.boost.org/ EXTRACT_SUFX= .zip @@ -9,6 +9,9 @@ EXTRACT_SUFX= .zip MAINTAINER= jlam@netbsd.org HOMEPAGE= http://www.boost.org/ +# Need working <limits> and <memory> not present in NetBSD yet. +DEPENDS+= sgi-stl>=3.2:../../devel/sgi-stl + USE_LIBTOOL= # defined DIST_SUBDIR= ${PKGNAME} @@ -29,7 +32,7 @@ post-extract: libs/pri_queue/boost-heap-1.0.zip "boost/*" do-configure: - cd ${FILESDIR}; ${CP} Makefile limits memory ${WRKSRC} + cd ${FILESDIR}; ${CP} Makefile ${WRKSRC} do-install: ${INSTALL_DATA_DIR} ${INCSDIR}/boost diff --git a/devel/boost/files/Makefile b/devel/boost/files/Makefile index e9946cc6540..a0bb198ca1f 100644 --- a/devel/boost/files/Makefile +++ b/devel/boost/files/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2000/05/12 06:15:06 jlam Exp $ +# $NetBSD: Makefile,v 1.2 2000/05/29 22:46:44 jlam Exp $ CXX= c++ @@ -11,7 +11,7 @@ OBJS= ${SRCS:.cpp=.lo} LOBJS= ${OBJS:T} CXXFLAGS= # empty -CPPFLAGS+= -I${.CURDIR} +CPPFLAGS+= -I${.CURDIR} -I${LOCALBASE}/include/sgi-stl all: ${LIB} diff --git a/devel/boost/files/limits b/devel/boost/files/limits deleted file mode 100644 index 5b6af1d399e..00000000000 --- a/devel/boost/files/limits +++ /dev/null @@ -1,266 +0,0 @@ -/* $NetBSD: limits,v 1.1 2000/05/12 06:15:06 jlam Exp $ - * - * This file is a part of the ISO C++ standard, but is not present in current - * versions of NetBSD. The contents of this file should probably be wrapped - * in a check for the appropriate version of the GNU C++ compiler or library. - */ - -#ifndef STD_LIMITS -#define STD_LIMITS - -#include <cfloat> -#include <climits> - -namespace std { - -template <class T> -class numeric_limits { -public: - typedef T numeric_type; - - static const bool is_specialized = false; -}; - -template <> -class numeric_limits<char> { -public: - typedef char numeric_type; - - static const bool is_specialized = true; - - static const int digits = sizeof (numeric_type) * CHAR_BIT; - - static const bool is_signed = (CHAR_MIN == SCHAR_MIN); - static const bool is_integer = true; - static const bool is_exact = true; - - inline static numeric_type min() throw() { return CHAR_MIN; } - inline static numeric_type max() throw() { return CHAR_MAX; } -}; - -template <> -class numeric_limits<signed char> { -public: - typedef char numeric_type; - - static const bool is_specialized = true; - - static const int digits = sizeof (numeric_type) * CHAR_BIT; - - static const bool is_signed = true; - static const bool is_integer = true; - static const bool is_exact = true; - - inline static numeric_type min() throw() { return SCHAR_MIN; } - inline static numeric_type max() throw() { return SCHAR_MAX; } -}; - -template <> -class numeric_limits<unsigned char> { -public: - typedef unsigned char numeric_type; - - static const bool is_specialized = true; - - static const int digits = sizeof (numeric_type) * CHAR_BIT; - - static const bool is_signed = false; - static const bool is_integer = true; - static const bool is_exact = true; - - inline static numeric_type min() throw() { return 0; } - inline static numeric_type max() throw() { return UCHAR_MAX; } -}; - -template <> -class numeric_limits<short> { -public: - typedef short numeric_type; - - static const bool is_specialized = true; - - static const int digits = sizeof (numeric_type) * CHAR_BIT; - - static const bool is_signed = true; - static const bool is_integer = true; - static const bool is_exact = true; - - inline static numeric_type min() throw() { return SHRT_MIN; } - inline static numeric_type max() throw() { return SHRT_MAX; } -}; - -template <> -class numeric_limits<unsigned short> { -public: - typedef short numeric_type; - - static const bool is_specialized = true; - - static const int digits = sizeof (numeric_type) * CHAR_BIT; - - static const bool is_signed = false; - static const bool is_integer = true; - static const bool is_exact = true; - - inline static numeric_type min() throw() { return 0; } - inline static numeric_type max() throw() { return USHRT_MAX; } -}; - -template <> -class numeric_limits<int> { -public: - typedef int numeric_type; - - static const bool is_specialized = true; - - static const int digits = sizeof (numeric_type) * CHAR_BIT; - - static const bool is_signed = true; - static const bool is_integer = true; - static const bool is_exact = true; - - inline static numeric_type min() throw() { return INT_MIN; } - inline static numeric_type max() throw() { return INT_MAX; } -}; - -template <> -class numeric_limits<unsigned int> { -public: - typedef unsigned int numeric_type; - - static const bool is_specialized = true; - - static const int digits = sizeof (numeric_type) * CHAR_BIT; - - static const bool is_signed = false; - static const bool is_integer = true; - static const bool is_exact = true; - - inline static numeric_type min() throw() { return 0; } - inline static numeric_type max() throw() { return UINT_MAX; } -}; - -template <> -class numeric_limits<long> { -public: - typedef long numeric_type; - - static const bool is_specialized = true; - - static const int digits = sizeof (numeric_type) * CHAR_BIT; - - static const bool is_signed = true; - static const bool is_integer = true; - static const bool is_exact = true; - - inline static numeric_type min() throw() { return LONG_MIN; } - inline static numeric_type max() throw() { return LONG_MAX; } -}; - -template <> -class numeric_limits<unsigned long> { -public: - typedef unsigned long numeric_type; - - static const bool is_specialized = true; - - static const int digits = sizeof (numeric_type) * CHAR_BIT; - - static const bool is_signed = false; - static const bool is_integer = true; - static const bool is_exact = true; - - inline static numeric_type min() throw() { return 0; } - inline static numeric_type max() throw() { return ULONG_MAX; } -}; - -template <> -class numeric_limits<long long> { -public: - typedef long long numeric_type; - - static const bool is_specialized = true; - - static const int digits = sizeof (numeric_type) * CHAR_BIT; - - static const bool is_signed = true; - static const bool is_integer = true; - static const bool is_exact = true; - - inline static numeric_type min() throw() { return LLONG_MIN; } - inline static numeric_type max() throw() { return LLONG_MAX; } -}; - -template <> -class numeric_limits<unsigned long long> { -public: - typedef unsigned long long numeric_type; - - static const bool is_specialized = true; - - static const int digits = sizeof (numeric_type) * CHAR_BIT; - - static const bool is_signed = false; - static const bool is_integer = true; - static const bool is_exact = true; - - inline static numeric_type min() throw() { return 0; } - inline static numeric_type max() throw() { return ULLONG_MAX; } -}; - -template <> -class numeric_limits<float> { -public: - typedef float numeric_type; - - static const bool is_specialized = true; - - static const int radix = FLT_RADIX; - static const int digits = FLT_MANT_DIG; - static const int digits10 = FLT_DIG; - - static const bool is_signed = true; - static const bool is_integer = false; - static const bool is_exact = false; - - inline static numeric_type min() throw() { return FLT_MIN; } - inline static numeric_type max() throw() { return FLT_MAX; } - - inline static numeric_type epsilon() throw() { return FLT_EPSILON; } - - static const int min_exponent = FLT_MIN_EXP; - static const int min_exponent10 = FLT_MIN_10_EXP; - static const int max_exponent = FLT_MAX_EXP; - static const int max_exponent10 = FLT_MAX_10_EXP; - - static const bool has_infinity = false; -}; - -template <> -class numeric_limits<double> { -public: - typedef double numeric_type; - - static const bool is_specialized = true; - - static const int digits = DBL_MANT_DIG; - static const int digits10 = DBL_DIG; - - static const bool is_signed = true; - static const bool is_integer = false; - static const bool is_exact = false; - - inline static numeric_type min() throw() { return DBL_MIN; } - inline static numeric_type max() throw() { return DBL_MAX; } - - inline static numeric_type epsilon() throw() { return DBL_EPSILON; } - - static const int min_exponent = DBL_MIN_EXP; - static const int min_exponent10 = DBL_MIN_10_EXP; - static const int max_exponent = DBL_MAX_EXP; - static const int max_exponent10 = DBL_MAX_10_EXP; -}; - -} // namespace std - -#endif // STD_LIMITS diff --git a/devel/boost/files/md5 b/devel/boost/files/md5 index 431ef3ff98e..bb4eef1b3e4 100644 --- a/devel/boost/files/md5 +++ b/devel/boost/files/md5 @@ -1,3 +1,3 @@ -$NetBSD: md5,v 1.1.1.1 2000/05/09 20:44:04 jlam Exp $ +$NetBSD: md5,v 1.2 2000/05/29 22:46:45 jlam Exp $ -MD5 (boost-1.14.1/boost_all.zip) = 95a55a34380bdeb66cdba6d8c5d70798 +MD5 (boost-1.14.3/boost_all.zip) = 92961172c2402bd22122750fac3741b7 diff --git a/devel/boost/files/memory b/devel/boost/files/memory deleted file mode 100644 index 7d2a34a810c..00000000000 --- a/devel/boost/files/memory +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright (c) 1997 - * Silicon Graphics Computer Systems, Inc. - * - * Permission to use, copy, modify, distribute and sell this software - * and its documentation for any purpose is hereby granted without fee, - * provided that the above copyright notice appear in all copies and - * that both that copyright notice and this permission notice appear - * in supporting documentation. Silicon Graphics makes no - * representations about the suitability of this software for any - * purpose. It is provided "as is" without express or implied warranty. - * - */ - -/* $NetBSD: memory,v 1.1 2000/05/12 06:15:06 jlam Exp $ - * - * Removed the #if 0'd code to enable auto_ptr. This interface and - * implementation matches the ISO C++ requirements. - */ - -#ifndef __SGI_STL_MEMORY -#define __SGI_STL_MEMORY - -#include <stl_algobase.h> -#include <stl_alloc.h> -#include <stl_construct.h> -#include <stl_tempbuf.h> -#include <stl_uninitialized.h> -#include <stl_raw_storage_iter.h> - -#ifdef __GNUC__ -# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8) -# define _MUTABLE_IS_KEYWORD -# define _EXPLICIT_IS_KEYWORD -# endif -#endif - -// Note: auto_ptr is commented out in this release because the details -// of the interface are still being discussed by the C++ standardization -// committee. It will be included once the iterface is finalized. - -#if defined(_MUTABLE_IS_KEYWORD) && defined(_EXPLICIT_IS_KEYWORD) && \ - defined(__STL_MEMBER_TEMPLATES) - -__STL_BEGIN_NAMESPACE - -template <class X> class auto_ptr { -private: - X* ptr; - mutable bool owns; -public: - typedef X element_type; - explicit auto_ptr(X* p = 0) __STL_NOTHROW : ptr(p), owns(p) {} - auto_ptr(const auto_ptr& a) __STL_NOTHROW : ptr(a.ptr), owns(a.owns) { - a.owns = 0; - } - template <class T> auto_ptr(const auto_ptr<T>& a) __STL_NOTHROW - : ptr(a.ptr), owns(a.owns) { - a.owns = 0; - } - - auto_ptr& operator=(const auto_ptr& a) __STL_NOTHROW { - if (&a != this) { - if (owns) - delete ptr; - owns = a.owns; - ptr = a.ptr; - a.owns = 0; - } - } - template <class T> auto_ptr& operator=(const auto_ptr<T>& a) __STL_NOTHROW { - if (&a != this) { - if (owns) - delete ptr; - owns = a.owns; - ptr = a.ptr; - a.owns = 0; - } - } - ~auto_ptr() { - if (owns) - delete ptr; - } - - X& operator*() const __STL_NOTHROW { return *ptr; } - X* operator->() const __STL_NOTHROW { return ptr; } - X* get() const __STL_NOTHROW { return ptr; } - X* release() const __STL_NOTHROW { owns = false; return ptr; } -}; - -__STL_END_NAMESPACE -#endif /* mutable && explicit && member templates */ - - -#endif /* __SGI_STL_MEMORY */ - - -// Local Variables: -// mode:C++ -// End: diff --git a/devel/boost/pkg/PLIST b/devel/boost/pkg/PLIST index baa53cbcd43..89c670dcf7d 100644 --- a/devel/boost/pkg/PLIST +++ b/devel/boost/pkg/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.2 2000/05/12 06:15:07 jlam Exp $ +@comment $NetBSD: PLIST,v 1.3 2000/05/29 22:46:45 jlam Exp $ include/boost/array.hpp include/boost/call_traits.hpp include/boost/cast.hpp @@ -40,8 +40,6 @@ include/boost/stdint.h include/boost/timer.hpp include/boost/type_traits.hpp include/boost/utility.hpp -include/limits -include/memory lib/libboost.a lib/libboost.so.0.0 share/doc/html/boost/libs/array/array-article.html @@ -109,9 +107,12 @@ share/doc/html/boost/libs/utility/type_traits_test.cpp share/doc/html/boost/libs/utility/utility.htm share/doc/html/boost/more/count_bdy.htm share/doc/html/boost/more/faq.htm +share/doc/html/boost/more/formal_review_process.htm share/doc/html/boost/more/header.htm share/doc/html/boost/more/imp_vars.htm share/doc/html/boost/more/lib_guide.htm +share/doc/html/boost/more/submission_process.htm +share/doc/html/boost/more/use_other_libs.htm @dirrm share/doc/html/boost/more @dirrm share/doc/html/boost/libs/utility @dirrm share/doc/html/boost/libs/timer |