View | Details | Raw Unified | Return to bug 247161 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-3 / +36 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	viewvc
4
PORTNAME=	viewvc
5
DISTVERSION=	1.2.1
5
DISTVERSION=	1.2.1
6
PORTREVISION=	0
6
PORTREVISION=	1
7
CATEGORIES=	devel python
7
CATEGORIES=	devel python
8
8
9
MAINTAINER=	ohauer@FreeBSD.org
9
MAINTAINER=	ohauer@FreeBSD.org
Lines 15-23 Link Here
15
USE_GITHUB=	yes
15
USE_GITHUB=	yes
16
USE_RC_SUBR=	viewvc
16
USE_RC_SUBR=	viewvc
17
17
18
NO_BUILD=		yes
19
NO_OPTIONS_SORT=	yes
18
NO_OPTIONS_SORT=	yes
20
OPTIONS_DEFINE=		WEBSRV APMOD SVN MYSQL
19
OPTIONS_DEFINE=		WEBSRV APMOD SVN MYSQL ALTSVN
21
OPTIONS_DEFAULT=	WEBSRV APACHE SVN
20
OPTIONS_DEFAULT=	WEBSRV APACHE SVN
22
21
23
OPTIONS_SINGLE=		WEBSRV APMOD
22
OPTIONS_SINGLE=		WEBSRV APMOD
Lines 30-35 Link Here
30
MODWSGI_DESC=		Add mod_wsgi to the list of package dependencies
29
MODWSGI_DESC=		Add mod_wsgi to the list of package dependencies
31
MODPYTHON35_DESC=	Add mod_python35 to the list of package dependencies
30
MODPYTHON35_DESC=	Add mod_python35 to the list of package dependencies
32
MYSQL_DESC=		Bonsai-like repository query facilities
31
MYSQL_DESC=		Bonsai-like repository query facilities
32
ALTSVN_DESC=		Use unofficial alternative svn access module
33
33
34
APACHE_USE=		APACHE_RUN=24+
34
APACHE_USE=		APACHE_RUN=24+
35
LIGHTTPD_RUN_DEPENDS=	lighttpd:www/lighttpd
35
LIGHTTPD_RUN_DEPENDS=	lighttpd:www/lighttpd
Lines 37-48 Link Here
37
MODWSGI_RUN_DEPENDS=	${APACHE_PKGNAMEPREFIX}${PYTHON_PKGNAMEPREFIX}mod_wsgi>=4.4.13:www/mod_wsgi4@${PY_FLAVOR}
37
MODWSGI_RUN_DEPENDS=	${APACHE_PKGNAMEPREFIX}${PYTHON_PKGNAMEPREFIX}mod_wsgi>=4.4.13:www/mod_wsgi4@${PY_FLAVOR}
38
MYSQL_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}MySQLdb>=0:databases/py-MySQLdb@${PY_FLAVOR}
38
MYSQL_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}MySQLdb>=0:databases/py-MySQLdb@${PY_FLAVOR}
39
39
40
.if defined(WITH_SUBVERSION_VER) && ${WITH_SUBVERSION_VER} == LTS
40
SVN_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}subversion-lts>=0:devel/py-subversion@${PY_FLAVOR}
41
SVN_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}subversion-lts>=0:devel/py-subversion@${PY_FLAVOR}
42
.else
43
# default version
44
SVN_RUN_DEPENDS=        ${PYTHON_PKGNAMEPREFIX}subversion>=0:devel/py-subversion@${PY_FLAVOR}
45
.endif
41
46
42
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}pygments>=1.6:textproc/py-pygments@${PY_FLAVOR}
47
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}pygments>=1.6:textproc/py-pygments@${PY_FLAVOR}
43
48
44
.include <bsd.port.options.mk>
49
.include <bsd.port.options.mk>
45
50
51
.if ${PORT_OPTIONS:MALTSVN}
52
PATCHFILES=		viewvc-1.2.1-altsvn.patch:-p1
53
PATCH_SITES=		http://home.bsdclub.org/~futatuki/UNIX/archives/
54
BUILD_DEPENDS=		cython-${PYTHON_VER}:lang/cython@${PY_FLAVOR}
55
.if defined(WITH_SUBVERSION_VER) && ${WITH_SUBVERSION_VER} == LTS
56
SVN_RUN_DEPENDS=	subversion-lts>=0:devel/subversion
57
SVN_RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}subversion-lts>=0:devel/py-subversion@${PY_FLAVOR}
58
.else
59
# default version
60
SVN_RUN_DEPENDS=        subversion>=0:devel/subversion
61
.endif
62
PLIST_SUB+=     ALTSVN=""
63
.else
64
NO_BUILD=		yes
65
.if defined(WITH_SUBVERSION_VER) && ${WITH_SUBVERSION_VER} == LTS
66
SVN_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}subversion-lts>=0:devel/py-subversion@${PY_FLAVOR}
67
.else
68
# default version
69
BROKEN=	Subversion Python bindings for Python 2.7 is needed but not provided
70
.endif
71
PLIST_SUB+=     ALTSVN="@comment "
72
.endif
73
46
SUB_FILES=	pkg-message
74
SUB_FILES=	pkg-message
47
SUB_LIST=	PYTHON_CMD=${PYTHON_CMD} \
75
SUB_LIST=	PYTHON_CMD=${PYTHON_CMD} \
48
		ECHO=${ECHO} EGREP=${EGREP} TOUCH=${TOUCH} \
76
		ECHO=${ECHO} EGREP=${EGREP} TOUCH=${TOUCH} \
Lines 53-58 Link Here
53
IGNORE=	apache module needs Apache server, please re-run 'make config' then choose WEBSRV and APACHE
81
IGNORE=	apache module needs Apache server, please re-run 'make config' then choose WEBSRV and APACHE
54
.endif
82
.endif
55
83
84
.if ${PORT_OPTIONS:MALTSVN}
85
do-build:
86
	@(cd ${WRKSRC}/src/lib && ${PYTHON_CMD} setup.py config && ${PYTHON_CMD} setup.py build && ${PYTHON_CMD} setup.py install)
87
.endif
88
56
post-patch:
89
post-patch:
57
.for i in cvsgraph.conf mimetypes.conf viewvc.conf
90
.for i in cvsgraph.conf mimetypes.conf viewvc.conf
58
	${MV} ${WRKSRC}/conf/${i}.dist ${WRKSRC}/conf/${i}.sample
91
	${MV} ${WRKSRC}/conf/${i}.dist ${WRKSRC}/conf/${i}.sample
(-)distinfo (-1 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1587311591
1
TIMESTAMP = 1594003481
2
SHA256 (viewvc-viewvc-1.2.1_GH0.tar.gz) = 5fe1e16f986b51a2800d908683673b880684e90ae1611d98744187f0649634f5
2
SHA256 (viewvc-viewvc-1.2.1_GH0.tar.gz) = 5fe1e16f986b51a2800d908683673b880684e90ae1611d98744187f0649634f5
3
SIZE (viewvc-viewvc-1.2.1_GH0.tar.gz) = 361031
3
SIZE (viewvc-viewvc-1.2.1_GH0.tar.gz) = 361031
4
SHA256 (viewvc-1.2.1-altsvn.patch) = 9d4ddc6bec5a001f619a68776cdebd5cd718c94cfde772319ee9cb0ab3e1fc26
5
SIZE (viewvc-1.2.1-altsvn.patch) = 416196
(-)pkg-plist (+9 lines)
Lines 78-83 Link Here
78
viewvc/lib/vclib/svn/svn_ra.pyc
78
viewvc/lib/vclib/svn/svn_ra.pyc
79
viewvc/lib/vclib/svn/svn_repos.py
79
viewvc/lib/vclib/svn/svn_repos.py
80
viewvc/lib/vclib/svn/svn_repos.pyc
80
viewvc/lib/vclib/svn/svn_repos.pyc
81
%%ALTSVN%%viewvc/lib/vclib/altsvn/__init__.py
82
%%ALTSVN%%viewvc/lib/vclib/altsvn/__init__.pyc
83
%%ALTSVN%%viewvc/lib/vclib/altsvn/_svn.so
84
%%ALTSVN%%viewvc/lib/vclib/altsvn/_svn_ra.so
85
%%ALTSVN%%viewvc/lib/vclib/altsvn/_svn_repos.so
86
%%ALTSVN%%viewvc/lib/vclib/altsvn/svn_ra.py
87
%%ALTSVN%%viewvc/lib/vclib/altsvn/svn_ra.pyc
88
%%ALTSVN%%viewvc/lib/vclib/altsvn/svn_repos.py
89
%%ALTSVN%%viewvc/lib/vclib/altsvn/svn_repos.pyc
81
viewvc/lib/viewvc.py
90
viewvc/lib/viewvc.py
82
viewvc/lib/viewvc.pyc
91
viewvc/lib/viewvc.pyc
83
viewvc/lib/win32popen.py
92
viewvc/lib/win32popen.py

Return to bug 247161