freebsd-ports/devel/py-gitosis/Makefile
Kai Knoblich 14ff569c13 devel/py-gitosis: Update to 0.3 and limit to Python 2.7
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
2019-02-28 15:36:27 +00:00

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>