From 64ad069cc5235550ba1c296d9f60ace48a460d6d Mon Sep 17 00:00:00 2001 From: Marcelo Araujo Date: Wed, 22 Mar 2017 12:26:50 +0000 Subject: [PATCH] Create a python3 version of devel/py-libzfs. Approved by: wg@ (maintainer) --- devel/Makefile | 1 + devel/py-libzfs/Makefile | 8 +++++++- devel/py3-libzfs/Makefile | 6 ++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 devel/py3-libzfs/Makefile diff --git a/devel/Makefile b/devel/Makefile index 0ce00c5f8feb..b191edbdca07 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4915,6 +4915,7 @@ SUBDIR += py3-hgtools SUBDIR += py3-jsonschema SUBDIR += py3-libpeas + SUBDIR += py3-libzfs SUBDIR += py3-lxml SUBDIR += py3-mccabe SUBDIR += py3-nose diff --git a/devel/py-libzfs/Makefile b/devel/py-libzfs/Makefile index 5d8157264f70..6e493891f07d 100644 --- a/devel/py-libzfs/Makefile +++ b/devel/py-libzfs/Makefile @@ -18,13 +18,19 @@ GH_ACCOUNT= freenas GH_PROJECT= py-libzfs GH_TAGNAME= fb5b8f2 -USES= python +USES?= python USE_PYTHON= autoplist distutils MAKE_ENV= FREEBSD_SRC=${SRC_BASE} .include +.if ${PYTHON_REL} >= 3306 +BUILD_DEPENDS= cython>0:lang/cython3 +.else +BUILD_DEPENDS= cython>0:lang/cython +.endif + .if ${PYTHON_REL} < 3400 RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}enum34>0:devel/py-enum34 .endif diff --git a/devel/py3-libzfs/Makefile b/devel/py3-libzfs/Makefile new file mode 100644 index 000000000000..b68dcbd9ca2d --- /dev/null +++ b/devel/py3-libzfs/Makefile @@ -0,0 +1,6 @@ + +MASTERDIR= ${.CURDIR}/../py-libzfs + +USES= python:3.3+ + +.include "${MASTERDIR}/Makefile"