[98172] trunk/dports/php/php-midgard2/Portfile

Ryan Schmidt ryandesign at macports.org
Thu Sep 27 07:16:58 PDT 2012


On Sep 27, 2012, at 03:03, jwa at macports.org wrote:

> Revision: 98172
>          http://trac.macports.org//changeset/98172
> Author:   jwa at macports.org
> Date:     2012-09-27 01:03:30 -0700 (Thu, 27 Sep 2012)
> Log Message:
> -----------
> php-midgard2: don't use group variable in notes, fix livecheck
> 
> Modified Paths:
> --------------
>    trunk/dports/php/php-midgard2/Portfile
> 
> Modified: trunk/dports/php/php-midgard2/Portfile
> ===================================================================
> --- trunk/dports/php/php-midgard2/Portfile	2012-09-27 03:32:18 UTC (rev 98171)
> +++ trunk/dports/php/php-midgard2/Portfile	2012-09-27 08:03:30 UTC (rev 98172)
> @@ -41,11 +41,15 @@
>     notes "========================   IMPORTANT   =========================\n
>     If this is the first time you're installing Midgard, or you have\n
>     recently upgraded PHP, make sure to check your php.ini to verify\n
> -    that extension_dir at least includes\n
> -    ${php.extension_dir}\n
> +    that extension_dir at least includes the directory shown by command\n
> +    'php-config${php.suffix} --extension-dir'
>     ================================================================"

These instructions are not unique to php-midgard2; if anything, they're applicable to all PHP extension ports. But I've never heard any bug reports about the wrong directory being in the php.ini, so I think the message solves a non-problem and should just be deleted entirely.


> -livecheck.type	regex
> -livecheck.url	${master_sites}
> -livecheck.regex ${name}-(\[0-9.\]+)\\.tar\\.\[bg\]z
> +if {${name} == ${subport}} {
> +    livecheck.type	regex
> +    livecheck.url	${master_sites}
> +    livecheck.regex php5-midgard2-(\[0-9.\]+)\\.tar\\.\[bg\]z
> +} else {
> +    livecheck.type  none
> +}

My intention is to adjust the php 1.1 portgroup so that this kind of thing happens automatically, so that each php extension port does not need to do so manually.





More information about the macports-dev mailing list