Lines 1-40
Link Here
|
1 |
# New ports collection makefile for: trac-keywords |
1 |
# Created by: Eygene Ryabinkin <rea-fbsd@codelabs.ru> |
2 |
# Date created: December 17, 2009 |
|
|
3 |
# Whom: Eygene Ryabinkin <rea-fbsd@codelabs.ru> |
4 |
# |
5 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
6 |
# |
|
|
7 |
|
3 |
|
8 |
PORTNAME= keywords |
4 |
PORTNAME= keywords |
9 |
PORTVERSION= 0.2 |
5 |
PORTVERSION= 0.2 |
10 |
PORTREVISION= 1 |
6 |
PORTREVISION= 2 |
11 |
CATEGORIES= www python |
7 |
CATEGORIES= www python |
12 |
MASTER_SITES= http://dist.codelabs.ru/fbsd/ |
8 |
MASTER_SITES= http://dist.codelabs.ru/fbsd/ |
13 |
PKGNAMEPREFIX= trac- |
9 |
PKGNAMEPREFIX= trac- |
14 |
DISTNAME= trackeywordsplugin-r${REL} |
10 |
DISTNAME= trackeywordsplugin-r${REL} |
15 |
|
11 |
|
16 |
MAINTAINER= rea@FreeBSD.org |
12 |
MAINTAINER= rea@FreeBSD.org |
17 |
COMMENT= A plugin for using pre-configured keywords |
13 |
COMMENT= Plugin for using pre-configured keywords |
18 |
|
14 |
|
19 |
BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools |
|
|
20 |
RUN_DEPENDS+= trac>=0.11:${PORTSDIR}/www/trac |
15 |
RUN_DEPENDS+= trac>=0.11:${PORTSDIR}/www/trac |
21 |
|
16 |
|
22 |
USE_PYTHON= 2.5+ |
17 |
USE_PYTHON= -2.7 |
23 |
USE_ZIP= yes |
18 |
USE_ZIP= yes |
24 |
NO_BUILD= yes |
19 |
USE_PYDISTUTILS= easy_install |
25 |
USE_PYDISTUTILS= yes |
|
|
26 |
PYDISTUTILS_PKGNAME= TracKeywordsPlugin |
20 |
PYDISTUTILS_PKGNAME= TracKeywordsPlugin |
27 |
PYDISTUTILS_NOEGGINFO= yes |
21 |
WRKSRC= ${WRKDIR}/trackeywordsplugin/0.11 |
28 |
WRKSRC= ${WRKDIR}/trackeywordsplugin/0.11 |
22 |
REL= 7273 |
29 |
REL= 7273 |
23 |
PLIST_FILES= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%% |
30 |
PLIST_FILES= ${PYTHON_SITELIBDIR:S;${LOCALBASE}/;;}/${PYDISTUTILS_PKGNAME}-${PORTVERSION}-py${PYTHON_VER}.egg |
|
|
31 |
|
24 |
|
32 |
post-extract: |
25 |
post-extract: |
33 |
# We must fix file permissions -- ZIP file have 0000 for every file. |
|
|
34 |
# Directory permissions are fine (they aren't stored inside ZIP |
35 |
# file), but we set them too -- just in case. |
36 |
@${FIND} ${WRKSRC} -type f | ${XARGS} chmod 644 |
37 |
@${FIND} ${WRKSRC} -type d | ${XARGS} chmod 755 |
38 |
# Fix misplaced Genshi template: https://trac-hacks.org/ticket/6104 |
26 |
# Fix misplaced Genshi template: https://trac-hacks.org/ticket/6104 |
39 |
@${MV} ${WRKDIR}/trackeywordsplugin/0.10/trackeywords/templates/keywords.html ${WRKSRC}/trackeywords/templates/ |
27 |
@${MV} ${WRKDIR}/trackeywordsplugin/0.10/trackeywords/templates/keywords.html ${WRKSRC}/trackeywords/templates/ |
40 |
# Seems like web_ui.py was misplaced too. |
28 |
# Seems like web_ui.py was misplaced too. |