source: trunk/dports/devel/trac/Portfile

Last change on this file was 152582, checked in by dluke@…, 12 months ago

trac: version bump, update to 1.0.13

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 152582 2016-09-12 19:14:55Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup python 1.0
5
6name                    trac
7version                 1.0.13
8categories              devel python
9platforms               darwin
10maintainers             geeklair.net:dluke
11description             Wiki and issue tracking system.
12# modified BSD, see http://trac.edgewall.org/wiki/TracLicense
13license                 BSD
14
15long_description        Trac is an enhanced wiki and issue tracking system for \
16                        software development projects. Trac uses a minimalistic approach to \
17                        web-based software project management.
18
19supported_archs         noarch
20
21homepage        http://projects.edgewall.com/trac/
22master_sites    http://ftp.edgewall.com/pub/trac/
23distname        Trac-${version}
24
25checksums       md5     739dd6c2bd4aa09904cc667c41bc151c \
26                sha1    3157f38233c80fe76246e8a30584ca0efac89e51 \
27                rmd160  ba87f668548b67a3df6abd08b75c19fe85423786
28
29variant python26 conflicts python27 description {Use Python 2.6} {}
30variant python27 conflicts python26 description {Use Python 2.7} {}
31if {[variant_isset python26]} {
32    python.default_version 26
33} else {
34    default_variants +python27
35    python.default_version 27
36}
37
38depends_lib     port:py${python.version}-pygments port:py${python.version}-genshi \
39                port:py${python.version}-babel port:py${python.version}-sqlite
40
41notes           "See http://projects.edgewall.com/trac/wiki/TracInstall for information on setting up a new trac environment."
42
43variant postgres description {Build with postgresql support instead of sqlite} {
44                                depends_lib-delete port:py${python.version}-sqlite
45                                depends_lib-append port:py${python.version}-psycopg2 port:py${python.version}-mx-base
46                        }
47
48variant mysql description {Build with mysql support instead of sqlite} {
49                                depends_lib-delete port:py${python.version}-sqlite
50                                depends_lib-append port:py${python.version}-mysql
51
52                                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."
53                                ui_msg "See http://trac.edgewall.org/wiki/MySqlDb for more detailed information."
54                        }
55
56variant subversion description {Build with subversion support} {
57                                depends_lib-append port:subversion-python${python.version}bindings
58                        }
59
60default_variants-append +subversion
61
62post-destroot   {
63                        file mkdir ${destroot}${prefix}/share/trac/
64                        file copy ${worksrcpath}/contrib \
65                                ${destroot}${prefix}/share/trac/contrib
66                        system "ln -sf ${python.prefix}/bin/trac-admin \
67                                ${destroot}${prefix}/bin/trac-admin"
68                        system "ln -sf ${python.prefix}/bin/tracd \
69                                ${destroot}${prefix}/bin/tracd"
70                }
71
72livecheck.url   http://trac.edgewall.org/wiki/TracDownload
73livecheck.regex "(?!Trac).*Trac-((?!${extract.suffix}).*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.