<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/fba1de4629fed0b3ce1659c5dfdf22ad10000a5c">https://github.com/macports/macports-ports/commit/fba1de4629fed0b3ce1659c5dfdf22ad10000a5c</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new fba1de4 ImageSnap: Update to 0.2.6, now at GitHub
</span>fba1de4 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit fba1de4629fed0b3ce1659c5dfdf22ad10000a5c
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Thu May 7 18:38:22 2020 -0500
<span style='display:block; white-space:pre;color:#404040;'> ImageSnap: Update to 0.2.6, now at GitHub
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/60448
</span>---
sysutils/ImageSnap/Portfile | 40 ++++++++++++++-------
.../files/dont-exit-until-the-file-is-saved.patch | 41 ++++++++++++++++++++++
.../files/save-to-the-right-filename.patch | 14 ++++++++
sysutils/ImageSnap/files/version.patch | 13 +++++++
4 files changed, 96 insertions(+), 12 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/ImageSnap/Portfile b/sysutils/ImageSnap/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index b28dab1..4db9db6 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/ImageSnap/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/ImageSnap/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,10 +1,16 @@
</span> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span> PortGroup xcode 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup rharder imagesnap 0.2.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 44eeb357a3bb5101940a0e7ccffe3fe62bb4b971 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 e55c9f8c840c407b7441c16279c39e004f6225b96bb64ff0c2734da18a759033 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 44592
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> name ImageSnap
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 0.2.5
</span> categories sysutils graphics
maintainers {ryandesign @ryandesign}
license public-domain
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -15,15 +21,7 @@ description command-line tool to capture images from iSight or \
</span> long_description ${name} is a command-line tool that lets you capture \
still images from an iSight or other video source.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage http://iharder.sourceforge.net/current/macosx/imagesnap/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites sourceforge:project/iharder/imagesnap
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-distname ${name}-v${version}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-extract.suffix .tgz
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 8455b057ce5f27130547524c3a7fb812f54d766e \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 2516edd6e8fe35c075f0a6517b9fb8ba9af296f8f29b9e349566b9ba6f729615 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 45002
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</span>
if {${os.major} < 9} {
known_fail yes
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -31,9 +29,29 @@ if {${os.major} < 9} {
</span> ui_error "${name} requires Mac OS X 10.5 or greater. Try isightcapture instead."
return -code error "incompatible Mac OS X version"
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+} elseif {${os.major} < 11} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # 0.2.6 and later use AVFoundation which was introduced in Lion.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ version 0.2.5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 8455b057ce5f27130547524c3a7fb812f54d766e \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 2516edd6e8fe35c075f0a6517b9fb8ba9af296f8f29b9e349566b9ba6f729615 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 45002
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ master_sites sourceforge:project/iharder/imagesnap
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ distname ${name}-v${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extract.suffix .tgz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles dont-exit-until-the-file-is-saved.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ save-to-the-right-filename.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ version.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@VERSION@|${version}|g" ${worksrcpath}/ImageSnap.m
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
post-extract {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Delete the precompiled binary so that we compile it ourselves.
</span> delete ${worksrcpath}/imagesnap
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -44,5 +62,3 @@ post-destroot {
</span> xinstall -d ${docdir}
xinstall -m 0644 -W ${worksrcpath} ReadMeOrDont.rtf ${docdir}
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.regex /${name}-v(\[0-9.\]+)${extract.suffix}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/ImageSnap/files/dont-exit-until-the-file-is-saved.patch b/sysutils/ImageSnap/files/dont-exit-until-the-file-is-saved.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..c8dca65
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/ImageSnap/files/dont-exit-until-the-file-is-saved.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,41 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Don't exit until the file is saved.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/rharder/imagesnap/issues/16
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/rharder/imagesnap/commit/cd33ff8963006c37170872a7bdd0f29a7eae9a29
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ImageSnap.m.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ImageSnap.m
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -23,8 +23,10 @@ @interface ImageSnap()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if OS_OBJECT_HAVE_OBJC_SUPPORT == 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @property (nonatomic, strong) dispatch_queue_t imageQueue;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++@property (nonatomic, strong) dispatch_semaphore_t semaphore;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @property (nonatomic, assign) dispatch_queue_t imageQueue;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++@property (nonatomic, assign) dispatch_semaphore_t semaphore;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @end
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -41,6 +43,7 @@ - (instancetype)init {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _dateFormatter.dateFormat = @"yyyy-MM-dd_HH-mm-ss.SSS";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _imageQueue = dispatch_queue_create("Image Queue", NULL);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ _semaphore = dispatch_semaphore_create(0);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return self;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -131,7 +134,7 @@ - (void)saveSingleSnapshotFrom:(AVCaptureDevice *)device
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [self takeSnapshotWithFilename:[self fileNameWithSequenceNumber:0]]; // Capture a frame
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ dispatch_semaphore_wait(_semaphore, DISPATCH_TIME_FOREVER);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [self stopSession];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -194,6 +197,7 @@ - (void)takeSnapshotWithFilename:(NSString *)filename {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dispatch_async(self.imageQueue, ^{
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [imageData writeToFile:weakFilename atomically:YES];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ dispatch_semaphore_signal(_semaphore);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ });
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/ImageSnap/files/save-to-the-right-filename.patch b/sysutils/ImageSnap/files/save-to-the-right-filename.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..410d59c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/ImageSnap/files/save-to-the-right-filename.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Save to the right filename.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/rharder/imagesnap/issues/19
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/rharder/imagesnap/commit/c727968f278d09a792fd0dbbb19903c48518ba24
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ImageSnap.m.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ImageSnap.m
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -129,7 +129,7 @@ - (void)saveSingleSnapshotFrom:(AVCaptureDevice *)device
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- [self takeSnapshotWithFilename:[self fileNameWithSequenceNumber:0]]; // Capture a frame
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ [self takeSnapshotWithFilename:path]; // Capture a frame
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ [self stopSession];
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/ImageSnap/files/version.patch b/sysutils/ImageSnap/files/version.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..91e81c5
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/ImageSnap/files/version.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix version.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/rharder/imagesnap/issues/29
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ImageSnap.m.orig 2017-10-02 13:36:16.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ImageSnap.m 2020-05-07 17:56:26.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -10,7 +10,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static BOOL g_verbose = NO;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static BOOL g_quiet = NO;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-NSString *const VERSION = @"0.2.5";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++NSString *const VERSION = @"@VERSION@";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @interface ImageSnap()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>