[94477] trunk/dports/python/py-mysql
blair at macports.org
blair at macports.org
Tue Jun 19 23:07:41 PDT 2012
Revision: 94477
https://trac.macports.org/changeset/94477
Author: blair at macports.org
Date: 2012-06-19 23:07:40 -0700 (Tue, 19 Jun 2012)
Log Message:
-----------
py-mysqldb: simplify reinplace on files/patch-site.cfg.diff.
Modified Paths:
--------------
trunk/dports/python/py-mysql/Portfile
trunk/dports/python/py-mysql/files/patch-site.cfg.diff
Modified: trunk/dports/python/py-mysql/Portfile
===================================================================
--- trunk/dports/python/py-mysql/Portfile 2012-06-20 06:04:36 UTC (rev 94476)
+++ trunk/dports/python/py-mysql/Portfile 2012-06-20 06:07:40 UTC (rev 94477)
@@ -33,10 +33,8 @@
patchfiles patch-site.cfg.diff
post-patch {
- reinplace "s|@PREFIX@|${prefix}|g" \
+ reinplace "s|@MYSQL_CONFIG@|/${prefix}/${mysql_config}|g" \
${worksrcpath}/site.cfg
- reinplace "s|@MYSQL_CONFIG@|${mysql_config}|g" \
- ${worksrcpath}/site.cfg
}
pre-configure {
Modified: trunk/dports/python/py-mysql/files/patch-site.cfg.diff
===================================================================
--- trunk/dports/python/py-mysql/files/patch-site.cfg.diff 2012-06-20 06:04:36 UTC (rev 94476)
+++ trunk/dports/python/py-mysql/files/patch-site.cfg.diff 2012-06-20 06:07:40 UTC (rev 94477)
@@ -5,7 +5,7 @@
# Only use this if mysql_config is not on your PATH, or you have some weird
# setup that requires it.
-#mysql_config = /usr/local/bin/mysql_config
-+mysql_config = @PREFIX@/@MYSQL_CONFIG@
++mysql_config = @MYSQL_CONFIG@
# The Windows registry key for MySQL.
# This has to be set for Windows builds to work.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120619/ca2cc581/attachment.html>
More information about the macports-changes
mailing list