forked from Lainports/freebsd-ports
Python 3 handles octal numbers in a different way as with Python 2.7. The latter one uses leading zeroes (e.g. 0755) to signify that a number is an octal number but this is invalid for Python 3 where the required syntax is 0o755 for that case. Also there are some references to the "cStringIO" module that is gone in Python 3. Thus limit this port to Python 2.7 only. While I'm here: * Add location to license file * Update URL in pkg-message * Add test target with the required dependencies * Pet portlint Changelog: https://github.com/tv42/gitosis/releases/tag/release%2F0.3 PR: 235441 [1], 235894 [2] Submitted by: Keith Gaughan <k@stereochro.me> [2] Reported by: Dan McGrath <danmcgrath.ca@gmail.com> [1] Approved by: miwi (mentor), maintainer timeout (> ~25 days) [1], maintainer [2] Differential Revision: https://reviews.freebsd.org/D19379
33 lines
719 B
Makefile
33 lines
719 B
Makefile
# Created by: Douglas Thrift <douglas@douglasthrift.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gitosis
|
|
PORTVERSION= 0.3
|
|
DISTVERSIONPREFIX= release/
|
|
CATEGORIES= devel python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= douglas@douglasthrift.net
|
|
COMMENT= Software for hosting git repositories
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
RUN_DEPENDS= git:devel/git
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR}
|
|
|
|
USES= python:2.7
|
|
USE_PYTHON= distutils autoplist
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= tv42
|
|
|
|
NO_ARCH= yes
|
|
|
|
USERS= git
|
|
GROUPS= ${USERS}
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -s gitosis/test/
|
|
|
|
.include <bsd.port.mk>
|