Ticket #36732: Portfile.diff
File Portfile.diff, 2.7 KB (added by jmroot (Joshua Root), 12 years ago) |
---|
-
Portfile
1 1 # $Id$ 2 2 3 3 PortSystem 1.0 4 PortGroup python 261.04 PortGroup python 1.0 5 5 6 6 name trac 7 7 version 1.0 … … 26 26 sha1 c9720d28704b43a605620de2eb870ddc9073cd12 \ 27 27 rmd160 d87d87d809fdad35845cbcad5f81fc2d5c9830a1 28 28 29 depends_lib port:python26 port:sqlite3 \ 30 port:py26-pygments port:py26-genshi \ 31 port:py26-babel port:py26-sqlite 29 python.versions 26 27 32 30 31 variant python26 description {Use Python 2.6} {} 32 variant python27 description {Use Python 2.7} {} 33 if {[variant_isset python26]} { 34 python.default_version 26 35 } else { 36 default_variants +python27 37 python.default_version 27 38 } 39 40 depends_lib port:py${python.version}-pygments port:py${python.version}-genshi \ 41 port:py${python.version}-babel port:py${python.version}-sqlite 42 33 43 notes "See http://projects.edgewall.com/trac/wiki/TracInstall for information on setting up a new trac environment." 34 44 35 45 variant postgres description {Build with postgresql support instead of sqlite} { 36 depends_lib-delete port: sqlite3 port:py26-sqlite37 depends_lib-append port:py 26-psycopg2 port:py26-mx-base46 depends_lib-delete port:py${python.version}-sqlite 47 depends_lib-append port:py${python.version}-psycopg2 port:py${python.version}-mx-base 38 48 } 39 49 40 50 variant mysql description {Build with mysql support instead of sqlite} { 41 depends_lib-delete port: sqlite3 port:py26-sqlite42 depends_lib-append port:py 26-mysql51 depends_lib-delete port:py${python.version}-sqlite 52 depends_lib-append port:py${python.version}-mysql 43 53 44 54 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." 45 55 ui_msg "See http://trac.edgewall.org/wiki/MySqlDb for more detailed information." 46 56 } 47 57 48 58 variant subversion description {Build with subversion support} { 49 depends_lib-append port:subversion-python 26bindings59 depends_lib-append port:subversion-python${python.version}bindings 50 60 } 51 61 52 default_variants +subversion62 default_variants-append +subversion 53 63 54 64 post-destroot { 55 65 file mkdir ${destroot}${prefix}/share/trac/ 56 66 file copy ${worksrcpath}/contrib \ 57 67 ${destroot}${prefix}/share/trac/contrib 58 system "ln -sf ${ frameworks_dir}/Python.framework/Versions/2.6/bin/trac-admin \68 system "ln -sf ${python.prefix}/bin/trac-admin \ 59 69 ${destroot}${prefix}/bin/trac-admin" 60 system "ln -sf ${ frameworks_dir}/Python.framework/Versions/2.6/bin/tracd \70 system "ln -sf ${python.prefix}/bin/tracd \ 61 71 ${destroot}${prefix}/bin/tracd" 62 72 } 63 73