| @@ -1,75 +1,76 @@ | | | @@ -1,75 +1,76 @@ |
1 | # $NetBSD: Makefile,v 1.63 2014/01/25 10:45:22 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.64 2014/03/11 17:41:44 gdt Exp $ |
2 | | | 2 | |
3 | DISTNAME= Trac-1.0.1 | | 3 | DISTNAME= Trac-1.0.1 |
4 | PKGNAME= ${DISTNAME:tl} | | 4 | PKGNAME= ${DISTNAME:tl} |
| | | 5 | PKGREVISION= 1 |
5 | CATEGORIES= devel www | | 6 | CATEGORIES= devel www |
6 | MASTER_SITES= http://ftp.edgewall.org/pub/trac/ \ | | 7 | MASTER_SITES= http://ftp.edgewall.org/pub/trac/ \ |
7 | ftp://ftp.edgewall.org/pub/trac/ | | 8 | ftp://ftp.edgewall.org/pub/trac/ |
8 | | | 9 | |
9 | MAINTAINER= gdt@NetBSD.org | | 10 | MAINTAINER= gdt@NetBSD.org |
10 | HOMEPAGE= http://trac.edgewall.org/ | | 11 | HOMEPAGE= http://trac.edgewall.org/ |
11 | COMMENT= Repository browser, wiki, and issue tracking system | | 12 | COMMENT= Repository browser, wiki, and issue tracking system |
12 | LICENSE= modified-bsd | | 13 | LICENSE= modified-bsd |
13 | | | 14 | |
14 | # Maintainer notes: | | 15 | # Maintainer notes: |
15 | # | | 16 | # |
16 | # This package is similar to wip/trac, which in turn structurally | | 17 | # This package is similar to wip/trac, which in turn structurally |
17 | # matches www/ja-trac. Ideally, www/trac and ja-trac would converge. | | 18 | # matches www/ja-trac. Ideally, www/trac and ja-trac would converge. |
18 | # This note outlines the known differences and proposed resolution. | | 19 | # This note outlines the known differences and proposed resolution. |
19 | # Besides bringing the packages closer, a goal is to avoid breaking | | 20 | # Besides bringing the packages closer, a goal is to avoid breaking |
20 | # existing trac installations that blindly upgrade, to the extent that | | 21 | # existing trac installations that blindly upgrade, to the extent that |
21 | # this is reasonable. | | 22 | # this is reasonable. |
22 | # | | 23 | # |
23 | # www/trac options are not in options.mk (to be fixed). | | 24 | # www/trac options are not in options.mk (to be fixed). |
24 | # | | 25 | # |
25 | # This package supports sqlite3 or postgresql. | | 26 | # This package supports sqlite3 or postgresql. |
26 | # ja-trac supports sqlite3, postgresql, and mysql. | | 27 | # ja-trac supports sqlite3, postgresql, and mysql. |
27 | # ja-trac uses py-sqlite2 (separate Python DB API 2.0 support for sqlite3) | | 28 | # ja-trac uses py-sqlite2 (separate Python DB API 2.0 support for sqlite3) |
28 | # while this package uses py-sqlite3 (bundled support for sqlite3). | | 29 | # while this package uses py-sqlite3 (bundled support for sqlite3). |
29 | | | 30 | |
30 | DEPENDS+= ${PYPKGPREFIX}-genshi>=0.6:../../www/py-genshi | | 31 | DEPENDS+= ${PYPKGPREFIX}-genshi>=0.6:../../www/py-genshi |
31 | # Arguably there should be a trac-svn package that depends on | | 32 | # Arguably there should be a trac-svn package that depends on |
32 | # subversion and trac. This line is residual from when trac always | | 33 | # subversion and trac. This line is residual from when trac always |
33 | # included subversion support. | | 34 | # included subversion support. |
34 | #DEPENDS+= ${PYPKGPREFIX}-subversion>=1.6:../../devel/py-subversion | | 35 | #DEPENDS+= ${PYPKGPREFIX}-subversion>=1.6:../../devel/py-subversion |
35 | | | 36 | |
36 | USE_TOOLS+= pax | | 37 | USE_TOOLS+= pax |
37 | | | 38 | |
38 | PKG_OPTIONS_VAR= PKG_OPTIONS.trac | | 39 | PKG_OPTIONS_VAR= PKG_OPTIONS.trac |
39 | PKG_OPTIONS_REQUIRED_GROUPS= db | | 40 | PKG_OPTIONS_REQUIRED_GROUPS= db |
40 | PKG_OPTIONS_GROUP.db= sqlite psycopg2 | | 41 | PKG_OPTIONS_GROUP.db= sqlite psycopg2 |
41 | PKG_SUGGESTED_OPTIONS= sqlite | | 42 | PKG_SUGGESTED_OPTIONS= sqlite |
42 | | | 43 | |
43 | .include "../../mk/bsd.options.mk" | | 44 | .include "../../mk/bsd.options.mk" |
44 | | | 45 | |
45 | PYDISTUTILSPKG= YES | | 46 | PYDISTUTILSPKG= YES |
46 | PY_PATCHPLIST= YES | | 47 | PY_PATCHPLIST= YES |
47 | REPLACE_PYTHON= contrib/cgi-bin/trac.* contrib/*.py contrib/*-hook | | 48 | REPLACE_PYTHON= contrib/cgi-bin/trac.* contrib/*.py contrib/*-hook |
48 | REPLACE_PYTHON+= trac/tests/functional/*.py | | 49 | REPLACE_PYTHON+= trac/tests/functional/*.py |
49 | PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of 1.0 | | 50 | PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of 1.0 |
50 | | | 51 | |
51 | .include "../../lang/python/application.mk" | | 52 | .include "../../lang/python/application.mk" |
52 | | | 53 | |
53 | .if !empty(PKG_OPTIONS:Msqlite) | | 54 | .if !empty(PKG_OPTIONS:Msqlite) |
54 | DEPENDS+= ${PYPKGPREFIX}-sqlite3>=0:../../databases/py-sqlite3 | | 55 | DEPENDS+= ${PYPKGPREFIX}-sqlite3>=0:../../databases/py-sqlite3 |
55 | .endif | | 56 | .endif |
56 | # trac 0.12 dropped support for py-PgSQL. Switching to py-psycopg2 with | | 57 | # trac 0.12 dropped support for py-PgSQL. Switching to py-psycopg2 with |
57 | # an existing database that used to be accessed by py-PgSQL worked. | | 58 | # an existing database that used to be accessed by py-PgSQL worked. |
58 | .if !empty(PKG_OPTIONS:Mpsycopg2) | | 59 | .if !empty(PKG_OPTIONS:Mpsycopg2) |
59 | DEPENDS+= ${PYPKGPREFIX}-psycopg2>=2:../../databases/py-psycopg2 | | 60 | DEPENDS+= ${PYPKGPREFIX}-psycopg2>=2:../../databases/py-psycopg2 |
60 | .endif | | 61 | .endif |
61 | # MySQL is sort of supported but not recommended by upstream and hence | | 62 | # MySQL is sort of supported but not recommended by upstream and hence |
62 | # omitted. | | 63 | # omitted. |
63 | | | 64 | |
64 | EGDIR= ${PREFIX}/share/examples/trac | | 65 | EGDIR= ${PREFIX}/share/examples/trac |
65 | CGIBINDIR= ${PREFIX}/libexec/trac | | 66 | CGIBINDIR= ${PREFIX}/libexec/trac |
66 | | | 67 | |
67 | post-install: | | 68 | post-install: |
68 | ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR} | | 69 | ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR} |
69 | ${INSTALL_PROGRAM_DIR} ${DESTDIR}${CGIBINDIR} | | 70 | ${INSTALL_PROGRAM_DIR} ${DESTDIR}${CGIBINDIR} |
70 | ${INSTALL_SCRIPT} ${WRKSRC}/contrib/cgi-bin/trac.* ${DESTDIR}${CGIBINDIR} | | 71 | ${INSTALL_SCRIPT} ${WRKSRC}/contrib/cgi-bin/trac.* ${DESTDIR}${CGIBINDIR} |
71 | cd ${WRKSRC}/contrib && pax -rwppm -s ',./rpm/.*$$,,' -s ',./rpm$$,,' \ | | 72 | cd ${WRKSRC}/contrib && pax -rwppm -s ',./rpm/.*$$,,' -s ',./rpm$$,,' \ |
72 | . ${DESTDIR}${EGDIR} | | 73 | . ${DESTDIR}${EGDIR} |
73 | | | 74 | |
74 | .include "../../lang/python/egg.mk" | | 75 | .include "../../lang/python/egg.mk" |
75 | .include "../../mk/bsd.pkg.mk" | | 76 | .include "../../mk/bsd.pkg.mk" |