From 9a3cda351de73c93353ce8f232c767a159dce66f Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Sat, 7 Sep 2002 03:13:23 +0000 Subject: 1. fix compile on GCC 3.2 2. add missing files in plist 3. drop maintainership Submitted by: Craig Rodrigues (1) (2) --- devel/clint/Makefile | 3 ++- devel/clint/files/patch-input.cc | 33 +++++++++++++++++++++++++++++++++ devel/clint/files/patch-python.h | 24 ++++++++++++++++++++++++ devel/clint/pkg-plist | 2 ++ 4 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 devel/clint/files/patch-input.cc create mode 100644 devel/clint/files/patch-python.h (limited to 'devel/clint') diff --git a/devel/clint/Makefile b/devel/clint/Makefile index 4e6d9ccce444..8232126e9e5f 100644 --- a/devel/clint/Makefile +++ b/devel/clint/Makefile @@ -8,11 +8,12 @@ PORTNAME= clint PORTVERSION= 0.1.2 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} -MAINTAINER= ijliao@FreeBSD.org +MAINTAINER= ports@FreeBSD.org USE_PYTHON= yes GNU_CONFIGURE= yes diff --git a/devel/clint/files/patch-input.cc b/devel/clint/files/patch-input.cc new file mode 100644 index 000000000000..948a7e563837 --- /dev/null +++ b/devel/clint/files/patch-input.cc @@ -0,0 +1,33 @@ +--- src/input.cc.orig Fri Sep 6 22:17:58 2002 ++++ src/input.cc Fri Sep 6 22:21:11 2002 +@@ -70,17 +70,17 @@ + std::string Input::parse_cpp(std::string line) { + if (line[0] == '#') { + #ifdef HAVE_SSTREAM +- istringstream in(line); ++ std::istringstream in(line); + #else + istrstream in(line.c_str()); + #endif // HAVE_SSTREAM + in.get(); // remove '#' +- string command; ++ std::string command; + while (isalnum(in.peek()) && not in.eof()){ + command+=in.get(); + } +- cerr << "line = \"" << line << "\" command = \"" << command << "\" "; +- if (command == string("include") ) { ++ std::cerr << "line = \"" << line << "\" command = \"" << command << "\" "; ++ if (command == std::string("include") ) { + } else if ( command == "define" ) { + } else if ( command == "undef" ) { + } else if ( command == "if" ) { +@@ -101,7 +101,7 @@ + // Apparently this is valid + // Ignore this + } else { +- cerr << "Unknown preprocessor macro" << endl; ++ std::cerr << "Unknown preprocessor macro" << std::endl; + } + } + return line; diff --git a/devel/clint/files/patch-python.h b/devel/clint/files/patch-python.h new file mode 100644 index 000000000000..8b204a313795 --- /dev/null +++ b/devel/clint/files/patch-python.h @@ -0,0 +1,24 @@ +--- lib/python/python.h.orig Fri Sep 6 21:53:18 2002 ++++ lib/python/python.h Fri Sep 6 21:56:38 2002 +@@ -12,13 +12,17 @@ + #include "debug.h" + + // I hate #define macros, seee if I can remove this +-#define STANDARD_LIBRARY_HAS_ITERATOR_TRAITS 1 ++#define STANDARD_LIBRARY_HAS_RANDOM_ACCESS_ITERATOR 1 + #ifdef MS_WIN32 +-# undef STANDARD_LIBRARY_HAS_ITERATOR_TRAITS +-# define STANDARD_LIBRARY_HAS_ITERATOR_TRAITS 0 ++# undef STANDARD_LIBRARY_HAS_RANDOM_ACCESS_ITERATOR ++# define STANDARD_LIBRARY_HAS_RANDOM_ACCESS_ITERATOR 0 + #endif + +-#if STANDARD_LIBRARY_HAS_ITERATOR_TRAITS ++#if defined (__GNUG__) && (__GNUG__ >= 3) ++# undef STANDARD_LIBRARY_HAS_RANDOM_ACCESS_ITERATOR ++#endif ++ ++#if STANDARD_LIBRARY_HAS_RANDOM_ACCESS_ITERATOR + # define random_access_iterator_parent(itemtype) std::random_access_iterator + #else + # define random_access_iterator_parent(itemtype) std::iterator diff --git a/devel/clint/pkg-plist b/devel/clint/pkg-plist index 9aea0bfc3044..5aa20a7620c7 100644 --- a/devel/clint/pkg-plist +++ b/devel/clint/pkg-plist @@ -7,6 +7,8 @@ info/clint.info @exec install-info %D/info/clint.info %D/info/dir lib/clint/python.a lib/clint/python.la +lib/clint/python.so +lib/clint/python.so.0 lib/libpython++.a lib/libpython++.la lib/libpython++.so -- cgit v1.2.3