[141386] trunk/dports/php/php-excel

ryandesign at macports.org ryandesign at macports.org
Sat Dec 12 01:18:45 PST 2015


Revision: 141386
          https://trac.macports.org/changeset/141386
Author:   ryandesign at macports.org
Date:     2015-10-16 19:02:46 -0700 (Fri, 16 Oct 2015)
Log Message:
-----------
php-excel: fix build with libxl 3.6.3+

Modified Paths:
--------------
    trunk/dports/php/php-excel/Portfile

Added Paths:
-----------
    trunk/dports/php/php-excel/files/
    trunk/dports/php/php-excel/files/libxl-3.6.3.patch

Modified: trunk/dports/php/php-excel/Portfile
===================================================================
--- trunk/dports/php/php-excel/Portfile	2015-10-17 02:02:12 UTC (rev 141385)
+++ trunk/dports/php/php-excel/Portfile	2015-10-17 02:02:46 UTC (rev 141386)
@@ -8,6 +8,7 @@
 github.setup        iliaal php_excel 1.0.1final
 name                php-excel
 version             1.0.1
+revision            1
 categories-append   textproc
 platforms           darwin
 maintainers         ryandesign openmaintainer
@@ -26,6 +27,8 @@
 if {${name} ne ${subport}} {
     depends_lib-append  port:libxl
     
+    patchfiles-append   libxl-3.6.3.patch
+    
     # libxl is Intel-only
     supported_archs     i386 x86_64
     configure.universal_archs i386 x86_64

Added: trunk/dports/php/php-excel/files/libxl-3.6.3.patch
===================================================================
--- trunk/dports/php/php-excel/files/libxl-3.6.3.patch	                        (rev 0)
+++ trunk/dports/php/php-excel/files/libxl-3.6.3.patch	2015-10-17 02:02:46 UTC (rev 141386)
@@ -0,0 +1,40 @@
+libxl 3.6.3 compatibility
+https://github.com/dmytroskr/php_excel/commit/22f1123756855d8ed7d79bd36f91079bfd59bddd
+--- excel.c.orig
++++ excel.c
+@@ -2881,7 +2881,7 @@ EXCEL_METHOD(Sheet, addPictureScaled)
+ 
+ 	SHEET_FROM_OBJECT(sheet, object);
+ 
+-	xlSheetSetPicture(sheet, row, col, pic_id, scale, x_offset, y_offset);
++	xlSheetSetPicture(sheet, row, col, pic_id, scale, x_offset, y_offset, 0);
+ }
+ /* }}} */
+ 
+@@ -2900,7 +2900,7 @@ EXCEL_METHOD(Sheet, addPictureDim)
+ 
+ 	SHEET_FROM_OBJECT(sheet, object);
+ 
+-	xlSheetSetPicture2(sheet, row, col, pic_id, w, h, x_offset, y_offset);
++	xlSheetSetPicture2(sheet, row, col, pic_id, w, h, x_offset, y_offset, 0);
+ }
+ /* }}} */
+ #else
+@@ -2919,7 +2919,7 @@ EXCEL_METHOD(Sheet, addPictureScaled)
+ 
+ 	SHEET_FROM_OBJECT(sheet, object);
+ 
+-	xlSheetSetPicture(sheet, row, col, pic_id, scale);
++	xlSheetSetPicture(sheet, row, col, pic_id, scale, 0);
+ }
+ /* }}} */
+ 
+@@ -2937,7 +2937,7 @@ EXCEL_METHOD(Sheet, addPictureDim)
+ 
+ 	SHEET_FROM_OBJECT(sheet, object);
+ 
+-	xlSheetSetPicture2(sheet, row, col, pic_id, w, h);
++	xlSheetSetPicture2(sheet, row, col, pic_id, w, h, 0);
+ }
+ /* }}} */
+ #endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/188edfb7/attachment.html>


More information about the macports-changes mailing list