svn commit: r435683 - in head/textproc: . py-snowballstemmer py3-snowballstemmer
Kris Moore
kmoore at FreeBSD.org
Wed Mar 8 12:48:43 UTC 2017
Author: kmoore
Date: Wed Mar 8 12:48:41 2017
New Revision: 435683
URL: https://svnweb.freebsd.org/changeset/ports/435683
Log:
- Create python3 version of textproc/py-snowballstemmer
- Use options helpers
PR: 217467
Submitted by: Danilo Baio <dbaio at bsd.com.br>
Added:
head/textproc/py3-snowballstemmer/
head/textproc/py3-snowballstemmer/Makefile (contents, props changed)
Modified:
head/textproc/Makefile
head/textproc/py-snowballstemmer/Makefile
Modified: head/textproc/Makefile
==============================================================================
--- head/textproc/Makefile Wed Mar 8 12:48:28 2017 (r435682)
+++ head/textproc/Makefile Wed Mar 8 12:48:41 2017 (r435683)
@@ -1373,6 +1373,7 @@
SUBDIR += py3-libxml2
SUBDIR += py3-pager
SUBDIR += py3-pystemmer
+ SUBDIR += py3-snowballstemmer
SUBDIR += py3-sphinx_rtd_theme
SUBDIR += pychm
SUBDIR += qprint
Modified: head/textproc/py-snowballstemmer/Makefile
==============================================================================
--- head/textproc/py-snowballstemmer/Makefile Wed Mar 8 12:48:28 2017 (r435682)
+++ head/textproc/py-snowballstemmer/Makefile Wed Mar 8 12:48:41 2017 (r435683)
@@ -12,17 +12,13 @@ COMMENT= Snowball stemming library colle
LICENSE= BSD2CLAUSE
-USES= python
+USES?= python
USE_PYTHON= distutils autoplist
OPTIONS_DEFINE= PYSTEMMER
OPTIONS_DEFAULT=PYSTEMMER
PYSTEMMER_DESC= Use PyStemmer to accelerate
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MPYSTEMMER}
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pystemmer>0:textproc/py-pystemmer
-.endif
+PYSTEMMER_RUN_DEPENDS?= ${PYTHON_PKGNAMEPREFIX}pystemmer>0:textproc/py-pystemmer
.include <bsd.port.mk>
Added: head/textproc/py3-snowballstemmer/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/py3-snowballstemmer/Makefile Wed Mar 8 12:48:41 2017 (r435683)
@@ -0,0 +1,10 @@
+# Created by: Danilo G. Baio <dbaio at bsd.com.br>
+# $FreeBSD$
+
+MASTERDIR= ${.CURDIR}/../py-snowballstemmer
+
+USES= python:3.3+
+
+PYSTEMMER_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pystemmer>0:textproc/py3-pystemmer
+
+.include "${MASTERDIR}/Makefile"
More information about the svn-ports-all
mailing list