summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2011-10-29 10:39:31 +0000
committerryoon <ryoon@pkgsrc.org>2011-10-29 10:39:31 +0000
commit15eb8fc8e298c2ccc60f77cb03200da8501f4c41 (patch)
treeefdfc42b0913e7279120d110e667fd62a74782c3 /devel
parent6de9cd01647c9d1d74da2a1aaa6afa5edd383e1c (diff)
downloadpkgsrc-15eb8fc8e298c2ccc60f77cb03200da8501f4c41.tar.gz
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.
Diffstat (limited to 'devel')
-rw-r--r--devel/pstreams/DESCR7
-rw-r--r--devel/pstreams/Makefile23
-rw-r--r--devel/pstreams/PLIST2
-rw-r--r--devel/pstreams/buildlink3.mk14
-rw-r--r--devel/pstreams/distinfo6
-rw-r--r--devel/pstreams/patches/patch-Makefile25
6 files changed, 77 insertions, 0 deletions
diff --git a/devel/pstreams/DESCR b/devel/pstreams/DESCR
new file mode 100644
index 00000000000..68966eda3c0
--- /dev/null
+++ b/devel/pstreams/DESCR
@@ -0,0 +1,7 @@
+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.
diff --git a/devel/pstreams/Makefile b/devel/pstreams/Makefile
new file mode 100644
index 00000000000..ce20fb83cd8
--- /dev/null
+++ b/devel/pstreams/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/10/29 10:39:31 ryoon Exp $
+#
+
+DISTNAME= pstreams-0.7.0
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pstreams/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://pstreams.sourceforge.net/
+COMMENT= POSIX Process Control in C++
+LICENSE= gnu-lgpl-v3
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_LANGUAGES= c++
+
+USE_TOOLS+= perl:build
+
+INSTALL_MAKE_FLAGS= prefix=${PREFIX}
+
+TEST_TARGET= test
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/pstreams/PLIST b/devel/pstreams/PLIST
new file mode 100644
index 00000000000..95ea3218448
--- /dev/null
+++ b/devel/pstreams/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2011/10/29 10:39:31 ryoon Exp $
+include/pstreams/pstream.h
diff --git a/devel/pstreams/buildlink3.mk b/devel/pstreams/buildlink3.mk
new file mode 100644
index 00000000000..dd57deeacb9
--- /dev/null
+++ b/devel/pstreams/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2011/10/29 10:39:31 ryoon Exp $
+
+BUILDLINK_TREE+= pstreams
+
+.if !defined(PSTREAMS_BUILDLINK3_MK)
+PSTREAMS_BUILDLINK3_MK:=
+
+BUILDLINK_DEPMETHOD.pstreams?= build
+
+BUILDLINK_API_DEPENDS.pstreams+= pstreams>=0.7.0
+BUILDLINK_PKGSRCDIR.pstreams?= ../../devel/pstreams
+.endif # PSTREAMS_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -pstreams
diff --git a/devel/pstreams/distinfo b/devel/pstreams/distinfo
new file mode 100644
index 00000000000..746557c5661
--- /dev/null
+++ b/devel/pstreams/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2011/10/29 10:39:31 ryoon Exp $
+
+SHA1 (pstreams-0.7.0.tar.gz) = 8300886c0c1783c7b8b1363596d77683cd213e7e
+RMD160 (pstreams-0.7.0.tar.gz) = c0841579b88c23793a1ab9f94316a528fc9f98f5
+Size (pstreams-0.7.0.tar.gz) = 55536 bytes
+SHA1 (patch-Makefile) = eb56361bb436b7609216640728e3a53f5a12875b
diff --git a/devel/pstreams/patches/patch-Makefile b/devel/pstreams/patches/patch-Makefile
new file mode 100644
index 00000000000..84fb5d54a05
--- /dev/null
+++ b/devel/pstreams/patches/patch-Makefile
@@ -0,0 +1,25 @@
+$NetBSD: patch-Makefile,v 1.1.1.1 2011/10/29 10:39:31 ryoon Exp $
+
+* disable documents generation
+* BSD install does not support -v option
+
+--- Makefile.orig 2010-05-12 15:45:21.000000000 +0000
++++ Makefile
+@@ -29,7 +29,7 @@ CXXFLAGS=$(CFLAGS) -std=c++98 -Woverload
+ prefix = /usr/local
+ includedir = $(prefix)/include
+ INSTALL = install
+-INSTALL_DATA = $(INSTALL) -p -v -m 0644
++INSTALL_DATA = $(INSTALL) -p -m 0644
+
+ SOURCES = pstream.h
+ GENERATED_FILES = ChangeLog MANIFEST
+@@ -40,7 +40,7 @@ DIST_FILES = $(SOURCES) $(GENERATED_FILE
+
+ VERS = 0.7.0
+
+-all: docs $(GENERATED_FILES)
++all: $(GENERATED_FILES)
+
+ check: pstreams.wout run_tests
+