# $Id: Portfile 152582 2016-09-12 19:14:55Z dluke@macports.org $ PortSystem 1.0 PortGroup python 1.0 name trac version 1.0.13 categories devel python platforms darwin maintainers geeklair.net:dluke description Wiki and issue tracking system. # modified BSD, see http://trac.edgewall.org/wiki/TracLicense license BSD long_description Trac is an enhanced wiki and issue tracking system for \ software development projects. Trac uses a minimalistic approach to \ web-based software project management. supported_archs noarch homepage http://projects.edgewall.com/trac/ master_sites http://ftp.edgewall.com/pub/trac/ distname Trac-${version} checksums md5 739dd6c2bd4aa09904cc667c41bc151c \ sha1 3157f38233c80fe76246e8a30584ca0efac89e51 \ rmd160 ba87f668548b67a3df6abd08b75c19fe85423786 variant python26 conflicts python27 description {Use Python 2.6} {} variant python27 conflicts python26 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: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: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-python${python.version}bindings } default_variants-append +subversion post-destroot { file mkdir ${destroot}${prefix}/share/trac/ file copy ${worksrcpath}/contrib \ ${destroot}${prefix}/share/trac/contrib system "ln -sf ${python.prefix}/bin/trac-admin \ ${destroot}${prefix}/bin/trac-admin" system "ln -sf ${python.prefix}/bin/tracd \ ${destroot}${prefix}/bin/tracd" } livecheck.url http://trac.edgewall.org/wiki/TracDownload livecheck.regex "(?!Trac).*Trac-((?!${extract.suffix}).*)${extract.suffix}"