# $Id$ PortSystem 1.0 PortGroup python 1.0 name trac version 1.0.5 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 1146c849f926f9eeb8448569159b29e0 \ sha1 83d27bbdd62691a5f8e5ca83c3e28187004c8ebe \ rmd160 2ec75ff3d21cc8ea016b97accbf5f0e88d7d8da0 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: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}"