[125084] trunk/dports/devel/libgphoto2

ryandesign at macports.org ryandesign at macports.org
Thu Sep 4 18:22:08 PDT 2014


Revision: 125084
          https://trac.macports.org/changeset/125084
Author:   ryandesign at macports.org
Date:     2014-09-04 18:22:08 -0700 (Thu, 04 Sep 2014)
Log Message:
-----------
libgphoto2: update to 2.5.5.1; fix livecheck

Modified Paths:
--------------
    trunk/dports/devel/libgphoto2/Portfile

Added Paths:
-----------
    trunk/dports/devel/libgphoto2/files/patch-libgphoto2_port-gphoto2-gphoto2-port-log.h.diff

Modified: trunk/dports/devel/libgphoto2/Portfile
===================================================================
--- trunk/dports/devel/libgphoto2/Portfile	2014-09-05 00:36:40 UTC (rev 125083)
+++ trunk/dports/devel/libgphoto2/Portfile	2014-09-05 01:22:08 UTC (rev 125084)
@@ -4,7 +4,7 @@
 PortSystem          1.0
 
 name                libgphoto2
-version             2.5.4
+version             2.5.5.1
 categories          devel
 platforms           darwin
 maintainers         ryandesign openmaintainer
@@ -19,8 +19,8 @@
 master_sites        sourceforge:project/gphoto/libgphoto/${version}
 use_bzip2           yes
 
-checksums           rmd160  d325ab9a16eb2976b40cc5e63cb8fe3a75778f23 \
-                    sha256  5fb412e28d3a8ed15bfe86df2173360fcccd29f3d2117e8329d827c356e60bc0
+checksums           rmd160  4c498c6be937a3688735b6e1e27eeb74730d11eb \
+                    sha256  600e6bde24545eef4d2d8285af389a5ae738707becb018c78611b2d8a3054846
 
 depends_build       port:pkgconfig
 
@@ -34,6 +34,8 @@
                     port:libtool \
                     port:gd2
 
+patchfiles-append   patch-libgphoto2_port-gphoto2-gphoto2-port-log.h.diff
+
 # Use CPATH and LIBRARY_PATH for ${prefix}/include and ${prefix}/lib
 configure.ldflags-delete    -L${prefix}/lib
 configure.cppflags-delete   -I${prefix}/include
@@ -52,6 +54,4 @@
     patchfiles-append       patch-configure-nodoxygen.diff
 }
 
-livecheck.type      regex
-livecheck.url       http://sourceforge.net/projects/gphoto/files/
-livecheck.regex     /${name}-(\[0-9.\]+)\\.tar
+livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}

Added: trunk/dports/devel/libgphoto2/files/patch-libgphoto2_port-gphoto2-gphoto2-port-log.h.diff
===================================================================
--- trunk/dports/devel/libgphoto2/files/patch-libgphoto2_port-gphoto2-gphoto2-port-log.h.diff	                        (rev 0)
+++ trunk/dports/devel/libgphoto2/files/patch-libgphoto2_port-gphoto2-gphoto2-port-log.h.diff	2014-09-05 01:22:08 UTC (rev 125084)
@@ -0,0 +1,20 @@
+https://sourceforge.net/p/gphoto/bugs/987/
+--- libgphoto2_port/gphoto2/gphoto2-port-log.h	(revision 15151)
++++ libgphoto2_port/gphoto2/gphoto2-port-log.h	(working copy)
+@@ -102,6 +102,16 @@
+ #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+ #define GP_DEBUG(...) \
+         gp_log(GP_LOG_DEBUG, GP_MODULE "/" __FILE__, __VA_ARGS__)
++
++/*
++ * GP_LOG_D/E:
++ * simple helper macros for convenient and consistent logging of error
++ * and debug messages including information about the source location.
++ */
++#define GP_LOG_D(...) gp_log(GP_LOG_DEBUG, __func__, __VA_ARGS__)
++#define GP_LOG_E(...) gp_log_with_source_location(GP_LOG_ERROR, __FILE__, __LINE__, __func__, __VA_ARGS__)
++#define GP_LOG_DATA(DATA, SIZE) gp_log_data(__func__, DATA, SIZE)
++
+ #elif defined(__GNUC__) &&  __GNUC__ >= 2
+ #define GP_DEBUG(msg, params...) \
+         gp_log(GP_LOG_DEBUG, GP_MODULE "/" __FILE__, msg, ##params)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140904/1a1c2ebe/attachment.html>


More information about the macports-changes mailing list