[149428] trunk/dports/php/php-gmagick/Portfile
ryandesign at macports.org
ryandesign at macports.org
Sun Jun 19 12:26:06 PDT 2016
Revision: 149428
https://trac.macports.org/changeset/149428
Author: ryandesign at macports.org
Date: 2016-06-19 12:26:06 -0700 (Sun, 19 Jun 2016)
Log Message:
-----------
php-gmagick: add php70-gmagick subport, version 2.0.2RC2
Modified Paths:
--------------
trunk/dports/php/php-gmagick/Portfile
Modified: trunk/dports/php/php-gmagick/Portfile
===================================================================
--- trunk/dports/php/php-gmagick/Portfile 2016-06-19 19:14:38 UTC (rev 149427)
+++ trunk/dports/php/php-gmagick/Portfile 2016-06-19 19:26:06 UTC (rev 149428)
@@ -5,25 +5,31 @@
PortGroup php 1.1
name php-gmagick
-version 1.1.7RC3
license PHP
categories php devel
platforms darwin
maintainers ryandesign openmaintainer
-php.branches 5.3 5.4 5.5 5.6
+php.branches 5.3 5.4 5.5 5.6 7.0
php.pecl yes
php.pecl.prerelease yes
+if {[vercmp ${php.branch} 7] >= 0} {
+ version 2.0.2RC2
+ checksums rmd160 c08d62a97e96372e37a61f7c8098cc19e4ad4f76 \
+ sha256 7656bd9042c2aae1325b1cb49e55d9e8ec31b911decec33b6f176195ee1d515a
+} else {
+ version 1.1.7RC3
+ checksums rmd160 75dc13b0c4822a0e18faa30bdeb7140daa14b494 \
+ sha256 1d2a35811a29e0744e852dda526f30c8a0cba516ef611758dd5bd4837ecba1fd
+}
+
description Provides a wrapper to the GraphicsMagick library
long_description \
Gmagick is a php extension to create, modify and obtain meta information \
of images using the GraphicsMagick API.
-checksums rmd160 75dc13b0c4822a0e18faa30bdeb7140daa14b494 \
- sha256 1d2a35811a29e0744e852dda526f30c8a0cba516ef611758dd5bd4837ecba1fd
-
if {${name} ne ${subport}} {
depends_lib-append port:GraphicsMagick
@@ -32,6 +38,11 @@
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
- xinstall -m 644 -W ${worksrcpath} LICENSE README ${destroot}${docdir}
+ xinstall -m 644 ${worksrcpath}/LICENSE ${destroot}${docdir}
+ if {[vercmp ${php.branch} 7] >= 0} {
+ xinstall -m 644 ${worksrcpath}/README.md ${destroot}${docdir}
+ } else {
+ xinstall -m 644 ${worksrcpath}/README ${destroot}${docdir}
+ }
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160619/ed395d07/attachment.html>
More information about the macports-changes
mailing list