Ticket #19218: trac.diff

File trac.diff, 2.2 KB (added by tenomoto (Takeshi Enomoto), 16 years ago)
  • Portfile

    old new  
    11# $Id: Portfile 48859 2009-03-30 19:53:15Z dluke@macports.org $
    22
    33PortSystem 1.0
    4 PortGroup python25 1.0
     4PortGroup python26 1.0
    55
    66name                    trac
    77version                 0.11.4
     8revision        1
    89categories              devel python
    910platforms               darwin
    1011maintainers             dluke@geeklair.net
     
    2021                sha1 392f5fc0bc8e29ebea07182707ad31a55b9ec46f \
    2122                rmd160 dffe20cb4f1cda2d8feaed5746a9701c24ccaeef
    2223
    23 depends_lib     port:subversion-python25bindings \
    24                 port:py25-sqlite3 port:python25 \
    25                 port:sqlite3 port:py25-hashlib \
    26                 port:py25-pygments port:py25-genshi
     24depends_lib     port:subversion-python26bindings \
     25                port:python26 port:sqlite3 \
     26                port:py26-pygments port:py26-genshi
    2727
    2828post-install {  ui_msg "See http://projects.edgewall.com/trac/wiki/TracInstall for information on setting up a new trac environment."
    2929                }
    3030
    3131variant postgres description {Build with postgresql support instead of sqlite} {
    32                                 depends_lib-delete port:sqlite3 port:py25-sqlite3
    33                                 depends_lib-append port:py25-pgsql port:py25-mx-base
     32                                depends_lib-delete port:sqlite3
     33                                depends_lib-append port:py26-pgsql port:py26-mx-base
    3434                        }
    3535
    3636variant mysql description {Build with mysql support instead of sqlite} {
    37                                 depends_lib-delete port:sqlite3 port:py25-sqlite3
    38                                 depends_lib-append port:py25-mysql
     37                                depends_lib-delete port:sqlite3
     38                                depends_lib-append port:py26-mysql
    3939
    4040                                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."
    4141                                ui_msg "See http://trac.edgewall.org/wiki/MySqlDb for more detailed information."
     
    4545                        file mkdir ${destroot}${prefix}/share/trac/
    4646                        file copy ${worksrcpath}/contrib \
    4747                                ${destroot}${prefix}/share/trac/contrib
     48            xinstall -m 755 -d ${destroot}${prefix}/bin
     49            system "ln -s ${prefix}/Library/Frameworks/Python.framework/Versions/2.6/bin/trac-admin ${destroot}${prefix}/bin \
     50                    ln -s ${prefix}/Library/Frameworks/Python.framework/Versions/2.6/bin/tracd ${destroot}${prefix}/bin"
    4851                }