diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2017-08-20 08:29:50 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2017-08-20 08:29:50 +0300 |
commit | 9c20dbb9f4494b91eef2d40483b5a88b91b35f7e (patch) | |
tree | 5f0b18e506f23c2d779331e5f9f2ffb3aa48679d | |
parent | 78a1be8e1e947ada60a1e3b458dbde0d7a400a98 (diff) | |
download | posixruncapture-9c20dbb9f4494b91eef2d40483b5a88b91b35f7e.tar.gz posixruncapture-9c20dbb9f4494b91eef2d40483b5a88b91b35f7e.tar.bz2 |
Update runcap
-rw-r--r-- | MANIFEST | 4 | ||||
-rw-r--r-- | Makefile.PL | 23 | ||||
-rw-r--r-- | lib/POSIX/Run/Capture.pm | 4 | ||||
m--------- | runcap | 0 |
4 files changed, 20 insertions, 11 deletions
@@ -15,13 +15,15 @@ t/03timeout.t t/04init.t t/05simple.t t/06lines.t t/07two.t t/08input.t t/TestCapture.pm -runcap/Makefile +runcap/Makefile.am +runcap/configure.ac +runcap/configure runcap/runcap.h runcap/runcap.c runcap/getc.c runcap/getl.c runcap/seek.c runcap/tell.c diff --git a/Makefile.PL b/Makefile.PL index 29aa661..4aee252 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -12,14 +12,14 @@ WriteMakefile( MIN_PERL_VERSION => 5.006, ABSTRACT_FROM => 'lib/POSIX/Run/Capture.pm', AUTHOR => 'Sergey Poznyakoff <gray@gnu.org>', LIBS => [''], # e.g., '-lm' DEFINE => '', INC => '-I.', # e.g., '-I. -I/usr/include/other' - OBJECT => '$(O_FILES) runcap/libruncap.a', - DIR => [ 'runcap' ], + OBJECT => '$(O_FILES)', + MYEXTLIB => 'runcap/libruncap.a', META_MERGE => { 'meta-spec' => { version => 2 }, resources => { repository => { type => 'git', url => 'git://git.gnu.org.ua/posixruncapture.git', @@ -30,18 +30,12 @@ WriteMakefile( dir => 'lib') } ); package MY; -sub pasthru { - my $val = shift->SUPER::pasthru(@_); - chomp($val); - return $val . "\\\n O='\$(CCFLAGS)'"; -} - sub test { my $val = shift->SUPER::test(@_); open(my $fd, '<', \$val); my @ret; my $ignore; while (<$fd>) { @@ -68,6 +62,19 @@ sub test { '', 'check: test', ''; return join("\n", @ret); } + +sub postamble { +' +$(MYEXTLIB): runcap/configure + cd runcap && \ + ./configure CFLAGS="$(CCFLAGS) $(CCCDLFLAGS)" && \ + $(MAKE) + +runcap/configure: runcap/configure.ac + RUNCAP_BUILD=static autoreconf -f -i -s -I. runcap +' +} + diff --git a/lib/POSIX/Run/Capture.pm b/lib/POSIX/Run/Capture.pm index 5dedad0..aa9825a 100644 --- a/lib/POSIX/Run/Capture.pm +++ b/lib/POSIX/Run/Capture.pm @@ -83,14 +83,14 @@ POSIX::Run::Capture - run command and capture its output $obj->rewind($chan) $obj->set_program($prog); $obj->set_timeout($n); $obj->set_input($fh_or_string); - $aref = head3 $obj->argv; - $str = =head3 $obj->program + $aref = $obj->argv; + $str = $obj->program $num = $obj->timeout; =head1 DESCRIPTION This module prefers performance and effectiveness over portability. As its name suggests, it can be used only on POSIX systems. diff --git a/runcap b/runcap -Subproject 3f686a2e5768174553b39697576171f5862433e +Subproject 80134405a63517bda8964f7993d096dc1df247c |