[99735] trunk/dports/devel/trac/Portfile
dluke at macports.org
dluke at macports.org
Thu Nov 15 06:46:45 PST 2012
Revision: 99735
https://trac.macports.org/changeset/99735
Author: dluke at macports.org
Date: 2012-11-15 06:46:45 -0800 (Thu, 15 Nov 2012)
Log Message:
-----------
trac: variants for python26/27 default to python27 (fixes #36732 - thanks to jmr)
Modified Paths:
--------------
trunk/dports/devel/trac/Portfile
Modified: trunk/dports/devel/trac/Portfile
===================================================================
--- trunk/dports/devel/trac/Portfile 2012-11-15 14:21:31 UTC (rev 99734)
+++ trunk/dports/devel/trac/Portfile 2012-11-15 14:46:45 UTC (rev 99735)
@@ -1,7 +1,7 @@
# $Id$
PortSystem 1.0
-PortGroup python26 1.0
+PortGroup python 1.0
name trac
version 1.0
@@ -26,38 +26,48 @@
sha1 c9720d28704b43a605620de2eb870ddc9073cd12 \
rmd160 d87d87d809fdad35845cbcad5f81fc2d5c9830a1
-depends_lib port:python26 port:sqlite3 \
- port:py26-pygments port:py26-genshi \
- port:py26-babel port:py26-sqlite
+python.versions 26 27
+variant python26 description {Use Python 2.6} {}
+variant python27 description {Use Python 2.7} {}
+if {[variant_isset python26]} {
+ python.default_version 26
+} else {
+ default_variants +python27
+ python.default_version 27
+}
+
+depends_lib port:py${python.version}-pygments port:py${python.version}-genshi \
+ port:py${python.version}-babel port:py${python.version}-sqlite
+
notes "See http://projects.edgewall.com/trac/wiki/TracInstall for information on setting up a new trac environment."
variant postgres description {Build with postgresql support instead of sqlite} {
- depends_lib-delete port:sqlite3 port:py26-sqlite
- depends_lib-append port:py26-psycopg2 port:py26-mx-base
+ depends_lib-delete port:py${python.version}-sqlite
+ depends_lib-append port:py${python.version}-psycopg2 port:py${python.version}-mx-base
}
variant mysql description {Build with mysql support instead of sqlite} {
- depends_lib-delete port:sqlite3 port:py26-sqlite
- depends_lib-append port:py26-mysql
+ depends_lib-delete port:py${python.version}-sqlite
+ depends_lib-append port:py${python.version}-mysql
ui_msg "Warning: MySQL support is currently experimental. That means it works for some people, but several issues remain, in particular regarding the use of unicode and the key length in the repository cache."
ui_msg "See http://trac.edgewall.org/wiki/MySqlDb for more detailed information."
}
variant subversion description {Build with subversion support} {
- depends_lib-append port:subversion-python26bindings
+ depends_lib-append port:subversion-python${python.version}bindings
}
-default_variants +subversion
+default_variants-append +subversion
post-destroot {
file mkdir ${destroot}${prefix}/share/trac/
file copy ${worksrcpath}/contrib \
${destroot}${prefix}/share/trac/contrib
- system "ln -sf ${frameworks_dir}/Python.framework/Versions/2.6/bin/trac-admin \
+ system "ln -sf ${python.prefix}/bin/trac-admin \
${destroot}${prefix}/bin/trac-admin"
- system "ln -sf ${frameworks_dir}/Python.framework/Versions/2.6/bin/tracd \
+ system "ln -sf ${python.prefix}/bin/tracd \
${destroot}${prefix}/bin/tracd"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121115/059715ec/attachment.html>
More information about the macports-changes
mailing list