[81690] trunk/dports/php/phpsh/Portfile

singingwolfboy at macports.org singingwolfboy at macports.org
Thu Aug 4 06:49:18 PDT 2011


Revision: 81690
          http://trac.macports.org/changeset/81690
Author:   singingwolfboy at macports.org
Date:     2011-08-04 06:49:17 -0700 (Thu, 04 Aug 2011)
Log Message:
-----------
phpsh: added configure section to set config directory to be under $prefix

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

Modified: trunk/dports/php/phpsh/Portfile
===================================================================
--- trunk/dports/php/phpsh/Portfile	2011-08-04 13:47:59 UTC (rev 81689)
+++ trunk/dports/php/phpsh/Portfile	2011-08-04 13:49:17 UTC (rev 81690)
@@ -26,6 +26,12 @@
 depends_lib             path:bin/php:php5 port:python27 \
                         port:php5-posix port:php5-pcntl
 
+use_configure           yes
+configure {
+    eval reinplace "s|/etc/phpsh|${prefix}/etc/phpsh|g" \
+        ${worksrcpath}/setup.py ${worksrcpath}/rc.example.php \
+        [glob ${worksrcpath}/src/*] [glob ${worksrcpath}/src/doc/*]
+}
 python.link_binaries_suffix
 post-destroot {
     set mandir ${destroot}${prefix}/share/man/man1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110804/1809c007/attachment.html>


More information about the macports-changes mailing list