head 1.4; access; symbols pkgsrc-2026Q1:1.4.0.22 pkgsrc-2026Q1-base:1.4 pkgsrc-2025Q4:1.4.0.20 pkgsrc-2025Q4-base:1.4 pkgsrc-2025Q3:1.4.0.18 pkgsrc-2025Q3-base:1.4 pkgsrc-2025Q2:1.4.0.16 pkgsrc-2025Q2-base:1.4 pkgsrc-2025Q1:1.4.0.14 pkgsrc-2025Q1-base:1.4 pkgsrc-2024Q4:1.4.0.12 pkgsrc-2024Q4-base:1.4 pkgsrc-2024Q3:1.4.0.10 pkgsrc-2024Q3-base:1.4 pkgsrc-2024Q2:1.4.0.8 pkgsrc-2024Q2-base:1.4 pkgsrc-2024Q1:1.4.0.6 pkgsrc-2024Q1-base:1.4 pkgsrc-2023Q4:1.4.0.4 pkgsrc-2023Q4-base:1.4 pkgsrc-2023Q3:1.4.0.2 pkgsrc-2023Q3-base:1.4 pkgsrc-2023Q2:1.3.0.12 pkgsrc-2023Q2-base:1.3 pkgsrc-2023Q1:1.3.0.10 pkgsrc-2023Q1-base:1.3 pkgsrc-2022Q4:1.3.0.8 pkgsrc-2022Q4-base:1.3 pkgsrc-2022Q3:1.3.0.6 pkgsrc-2022Q3-base:1.3 pkgsrc-2022Q2:1.3.0.4 pkgsrc-2022Q2-base:1.3 pkgsrc-2022Q1:1.3.0.2 pkgsrc-2022Q1-base:1.3 pkgsrc-2021Q4:1.2.0.50 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.48 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.2.0.46 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.2.0.44 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.2.0.42 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.2.0.40 pkgsrc-2020Q3-base:1.2 pkgsrc-2020Q2:1.2.0.36 pkgsrc-2020Q2-base:1.2 pkgsrc-2020Q1:1.2.0.16 pkgsrc-2020Q1-base:1.2 pkgsrc-2019Q4:1.2.0.38 pkgsrc-2019Q4-base:1.2 pkgsrc-2019Q3:1.2.0.34 pkgsrc-2019Q3-base:1.2 pkgsrc-2019Q2:1.2.0.32 pkgsrc-2019Q2-base:1.2 pkgsrc-2019Q1:1.2.0.30 pkgsrc-2019Q1-base:1.2 pkgsrc-2018Q4:1.2.0.28 pkgsrc-2018Q4-base:1.2 pkgsrc-2018Q3:1.2.0.26 pkgsrc-2018Q3-base:1.2 pkgsrc-2018Q2:1.2.0.24 pkgsrc-2018Q2-base:1.2 pkgsrc-2018Q1:1.2.0.22 pkgsrc-2018Q1-base:1.2 pkgsrc-2017Q4:1.2.0.20 pkgsrc-2017Q4-base:1.2 pkgsrc-2017Q3:1.2.0.18 pkgsrc-2017Q3-base:1.2 pkgsrc-2017Q2:1.2.0.14 pkgsrc-2017Q2-base:1.2 pkgsrc-2017Q1:1.2.0.12 pkgsrc-2017Q1-base:1.2 pkgsrc-2016Q4:1.2.0.10 pkgsrc-2016Q4-base:1.2 pkgsrc-2016Q3:1.2.0.8 pkgsrc-2016Q3-base:1.2 pkgsrc-2016Q2:1.2.0.6 pkgsrc-2016Q2-base:1.2 pkgsrc-2016Q1:1.2.0.4 pkgsrc-2016Q1-base:1.2 pkgsrc-2015Q4:1.2.0.2 pkgsrc-2015Q4-base:1.2 pkgsrc-2015Q3:1.1.1.1.0.32 pkgsrc-2015Q3-base:1.1.1.1 pkgsrc-2015Q2:1.1.1.1.0.30 pkgsrc-2015Q2-base:1.1.1.1 pkgsrc-2015Q1:1.1.1.1.0.28 pkgsrc-2015Q1-base:1.1.1.1 pkgsrc-2014Q4:1.1.1.1.0.26 pkgsrc-2014Q4-base:1.1.1.1 pkgsrc-2014Q3:1.1.1.1.0.24 pkgsrc-2014Q3-base:1.1.1.1 pkgsrc-2014Q2:1.1.1.1.0.22 pkgsrc-2014Q2-base:1.1.1.1 pkgsrc-2014Q1:1.1.1.1.0.20 pkgsrc-2014Q1-base:1.1.1.1 pkgsrc-2013Q4:1.1.1.1.0.18 pkgsrc-2013Q4-base:1.1.1.1 pkgsrc-2013Q3:1.1.1.1.0.16 pkgsrc-2013Q3-base:1.1.1.1 pkgsrc-2013Q2:1.1.1.1.0.14 pkgsrc-2013Q2-base:1.1.1.1 pkgsrc-2013Q1:1.1.1.1.0.12 pkgsrc-2013Q1-base:1.1.1.1 pkgsrc-2012Q4:1.1.1.1.0.10 pkgsrc-2012Q4-base:1.1.1.1 pkgsrc-2012Q3:1.1.1.1.0.8 pkgsrc-2012Q3-base:1.1.1.1 pkgsrc-2012Q2:1.1.1.1.0.6 pkgsrc-2012Q2-base:1.1.1.1 pkgsrc-2012Q1:1.1.1.1.0.4 pkgsrc-2012Q1-base:1.1.1.1 pkgsrc-2011Q4:1.1.1.1.0.2 pkgsrc-2011Q4-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.4 date 2023.07.09.14.56.58; author nia; state Exp; branches; next 1.3; commitid u0DClbGRAMGlE8wE; 1.3 date 2022.02.15.10.28.38; author nros; state Exp; branches; next 1.2; commitid I2409CecYUWPwHsD; 1.2 date 2015.09.24.23.08.42; author ryoon; state Exp; branches; next 1.1; commitid XxQhEI54XBiYOyCy; 1.1 date 2011.10.29.10.39.31; author ryoon; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2011.10.29.10.39.31; author ryoon; state Exp; branches; next ; desc @@ 1.4 log @pstreams: Fix for older C++ compilers. While here, honour CFLAGS when building tests. @ text @$NetBSD: patch-Makefile,v 1.3 2022/02/15 10:28:38 nros Exp $ * disable documents generation * BSD install does not support -v option --- Makefile.orig 2020-06-10 20:17:32.000000000 +0000 +++ Makefile @@@@ -9,16 +9,15 @@@@ # TODO configure script (allow doxygenating of EVISCERATE functions) -OPTIM= -O1 -g3 EXTRA_CXXFLAGS= -CFLAGS=-pedantic -Wall -Wextra -Wpointer-arith -Wcast-qual -Wcast-align -Wredundant-decls -Wshadow $(OPTIM) +CFLAGS+=-pedantic -Wall -Wextra -Wpointer-arith -Wcast-qual -Wcast-align -Wredundant-decls -Wshadow $(OPTIM) CXXFLAGS=$(CFLAGS) -std=c++98 -Woverloaded-virtual prefix = /usr/local includedir = $(prefix)/include INSTALL = install -INSTALL_DATA = $(INSTALL) -p -v -m 0644 +INSTALL_DATA = $(INSTALL) -p -m 0644 SOURCES = pstream.h TESTS = test_pstreams test_minimum @ 1.3 log @Update devel/pstreams to version 1.0.3 pkgsrc changes: drop perl dependecy, it is only used when buildling docs install license, needed when distributing the .h file use gmake changes: new license, boost-license fix installation on case-insensitive file systems @ text @d1 1 a1 1 $NetBSD: patch-Makefile,v 1.2 2015/09/24 23:08:42 ryoon Exp $ d8 11 a18 1 @@@@ -18,7 +18,7 @@@@ CXXFLAGS=$(CFLAGS) -std=c++98 -Woverload @ 1.2 log @Update to 0.8.1 Changelog: highlights only Author: Jonathan Wakely Date: Fri Feb 7 00:55:18 2014 +0000 pstream.h (basic_ipstream::basic_ipstream(argv_type, pmode): Use basic_ipstream::readable(pmode) to correctly set input mode. test_pstreams.cc: Test execve-style construction for ipstream. Author: Jonathan Wakely Date: Fri Jul 12 00:20:21 2013 +0100 pstream.h: Add initializer-list constructors. Make unary constructors explicit. Author: Jonathan Wakely Date: Thu Jul 11 23:27:43 2013 +0100 pstream.h: Add newpg pmode flag. Version 0.8.1. test_pstreams.cc: Test newpg flag. Author: Jonathan Wakely Date: Fri Mar 29 17:42:22 2013 +0000 pstream.h: Doc tweak Author: Jonathan Wakely Date: Wed Jan 23 00:43:11 2013 +0000 pstream.h: Put child in new process group and define pstreambuf::killpg() Thanks to Hein-Pieter van Braam for the suggestion. Author: Jonathan Wakely Date: Sun Jan 20 19:15:41 2013 +0000 pstream.h: Retry interrupted writes Author: Jonathan Wakely Date: Sun Jan 20 17:11:27 2013 +0000 pstream.h: Overload constructors for convenience. Bump version to 0.7.3 Author: Jonathan Wakely Date: Mon Jun 25 22:57:26 2012 +0100 pstream.h: Update copyright years and remove RCSID. Author: Jonathan Wakely Date: Mon Jun 25 22:48:53 2012 +0100 pstream.h (pstreambuf::xsputn): Optimize. Author: Jonathan Wakely Date: Sun Jun 24 13:03:43 2012 +0100 pstream.h (basic_pstreambuf::open): Work with _FORTIFY_SOURCE. Author: Jonathan Wakely Date: Tue Nov 15 11:12:10 2011 +0000 (basic_pstreambuf::wpipe, basic_pstreambuf::rpipe): Fix for clang. (PSTREAMS_VERSION): Bump to 0.7.2 Author: Jonathan Wakely Date: Thu Oct 14 19:57:41 2010 +0000 * pstream.h, test_pstreams.cc: Update copyright dates. Author: Jonathan Wakely Date: Thu Oct 14 19:55:19 2010 +0000 * pstream.h (pstreams_common::pstreams_common): Use basic_ios::rdbuf to set the streambuf, basic_ios::init(0) has already been called. @ text @d1 1 a1 1 $NetBSD: patch-Makefile,v 1.1.1.1 2011/10/29 10:39:31 ryoon Exp $ d6 1 a6 1 --- Makefile.orig 2014-02-07 13:18:56.000000000 +0000 d8 1 a8 1 @@@@ -27,7 +27,7 @@@@ CXXFLAGS=$(CFLAGS) -std=c++98 -Woverload d16 1 a16 10 GENERATED_FILES = ChangeLog MANIFEST @@@@ -38,7 +38,7 @@@@ DIST_FILES = $(SOURCES) $(GENERATED_FILE VERS := $(shell awk -F' ' '/^\#define *PSTREAMS_VERSION/{ print $$NF }' pstream.h) -all: docs $(GENERATED_FILES) +all: $(GENERATED_FILES) check: test_pstreams test_minimum | pstreams.wout @@for test in $^ ; do echo $$test ; ./$$test >/dev/null 2>&1 || echo "$$test EXITED WITH STATUS $$?" ; done @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d6 1 a6 1 --- Makefile.orig 2010-05-12 15:45:21.000000000 +0000 d8 1 a8 1 @@@@ -29,7 +29,7 @@@@ CXXFLAGS=$(CFLAGS) -std=c++98 -Woverload d17 1 a17 1 @@@@ -40,7 +40,7 @@@@ DIST_FILES = $(SOURCES) $(GENERATED_FILE d19 1 a19 1 VERS = 0.7.0 d24 2 a25 2 check: pstreams.wout run_tests @ 1.1.1.1 log @Import pstreams-0.7.0 as devel/pstreams from wip/pstreams PStreams allows you to run another program from your C++ application and to transfer data between the two programs similar to shell pipelines. In the simplest case, a PStreams class is like a C++ wrapper for the POSIX.2 functions popen(3) and pclose(3), using C++ iostreams instead of C's stdio library. @ text @@