aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>2000-09-12 19:54:11 +0800
committertg <tg@FreeBSD.org>2000-09-12 19:54:11 +0800
commit0caafb3a6c9d91f7737addb392f2fbd749edffbb (patch)
tree3bd77773d5709e6b5c4dc4c2fc5531210285ce26 /textproc
parent54d1e69edb725b40cbb7f9314fcfeb1db0528d4f (diff)
downloadfreebsd-ports-gnome-0caafb3a6c9d91f7737addb392f2fbd749edffbb.tar.gz
freebsd-ports-gnome-0caafb3a6c9d91f7737addb392f2fbd749edffbb.tar.zst
freebsd-ports-gnome-0caafb3a6c9d91f7737addb392f2fbd749edffbb.zip
Use bsd.python.mk.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/py-mxTextTools/Makefile15
-rw-r--r--textproc/py-mxTextTools/pkg-plist46
2 files changed, 30 insertions, 31 deletions
diff --git a/textproc/py-mxTextTools/Makefile b/textproc/py-mxTextTools/Makefile
index ed19b4ed4077..f45ccc363832 100644
--- a/textproc/py-mxTextTools/Makefile
+++ b/textproc/py-mxTextTools/Makefile
@@ -13,24 +13,23 @@ DISTNAME= mxTextTools-1.1.1
MAINTAINER= tg@FreeBSD.org
-BUILD_DEPENDS= python1.5:${PORTSDIR}/lang/python15
-RUN_DEPENDS= python1.5:${PORTSDIR}/lang/python15
-
+USE_PYTHON= yes
USE_ZIP= yes
EXTRACT_BEFORE_ARGS= -aq
WRKSRC= ${WRKDIR}/TextTools/mxTextTools
+CONFIGURE_ENV= PYTHON=${PYTHON_CMD}
ALL_TARGET= sharedmods
-PYTHONSCRIPTDIR= ${PREFIX}/lib/python1.5
-TEXTTOOLSDIR= ${PYTHONSCRIPTDIR}/site-packages/TextTools
+TEXTTOOLSDIR= ${PYTHON_SITELIBDIR}/TextTools
DOCDIR= ${PREFIX}/share/doc/py-mxTextTools
EXAMPLEDIR= ${PREFIX}/share/examples/py-mxTextTools
post-extract:
@${CP} ${FILESDIR}/Setup ${WRKSRC}
+ @${CP} ${PYTHON_LIBDIR}/config/Makefile.pre.in ${WRKSRC}
do-configure:
- @(cd ${WRKSRC} && ${CONFIGURE_ENV} ${MAKE} -f Makefile.pre.in boot)
+ @(cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${MAKE} -f Makefile.pre.in boot)
do-install:
@${MKDIR} ${TEXTTOOLSDIR}
@@ -41,8 +40,8 @@ do-install:
.for file in __init__.py mxTextTools.so
${INSTALL_DATA} ${WRKDIR}/TextTools/mxTextTools/${file} ${TEXTTOOLSDIR}/mxTextTools
.endfor
- @${PREFIX}/bin/python ${PYTHONSCRIPTDIR}/compileall.py ${TEXTTOOLSDIR}
- @${PREFIX}/bin/python -O ${PYTHONSCRIPTDIR}/compileall.py ${TEXTTOOLSDIR}
+ @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${TEXTTOOLSDIR}
+ @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${TEXTTOOLSDIR}
@${MKDIR} ${EXAMPLEDIR}
${INSTALL_DATA} ${WRKDIR}/TextTools/Examples/* ${EXAMPLEDIR}
.if !defined(NOPORTDOCS)
diff --git a/textproc/py-mxTextTools/pkg-plist b/textproc/py-mxTextTools/pkg-plist
index 32e485f4a072..bbc344a148e2 100644
--- a/textproc/py-mxTextTools/pkg-plist
+++ b/textproc/py-mxTextTools/pkg-plist
@@ -1,27 +1,23 @@
-lib/python1.5/site-packages/TextTools/Constants/Sets.py
-lib/python1.5/site-packages/TextTools/Constants/Sets.pyc
-lib/python1.5/site-packages/TextTools/Constants/Sets.pyo
-lib/python1.5/site-packages/TextTools/Constants/TagTables.py
-lib/python1.5/site-packages/TextTools/Constants/TagTables.pyc
-lib/python1.5/site-packages/TextTools/Constants/TagTables.pyo
-lib/python1.5/site-packages/TextTools/Constants/__init__.py
-lib/python1.5/site-packages/TextTools/Constants/__init__.pyc
-lib/python1.5/site-packages/TextTools/Constants/__init__.pyo
-@dirrm lib/python1.5/site-packages/TextTools/Constants
-lib/python1.5/site-packages/TextTools/TextTools.py
-lib/python1.5/site-packages/TextTools/TextTools.pyc
-lib/python1.5/site-packages/TextTools/TextTools.pyo
-lib/python1.5/site-packages/TextTools/__init__.py
-lib/python1.5/site-packages/TextTools/__init__.pyc
-lib/python1.5/site-packages/TextTools/__init__.pyo
-lib/python1.5/site-packages/TextTools/mxTextTools/__init__.py
-lib/python1.5/site-packages/TextTools/mxTextTools/__init__.pyc
-lib/python1.5/site-packages/TextTools/mxTextTools/__init__.pyo
-lib/python1.5/site-packages/TextTools/mxTextTools/mxTextTools.so
-@dirrm lib/python1.5/site-packages/TextTools/mxTextTools
-@dirrm lib/python1.5/site-packages/TextTools
+lib/%%PYTHON_VERSION%%/site-packages/TextTools/Constants/Sets.py
+lib/%%PYTHON_VERSION%%/site-packages/TextTools/Constants/Sets.pyc
+lib/%%PYTHON_VERSION%%/site-packages/TextTools/Constants/Sets.pyo
+lib/%%PYTHON_VERSION%%/site-packages/TextTools/Constants/TagTables.py
+lib/%%PYTHON_VERSION%%/site-packages/TextTools/Constants/TagTables.pyc
+lib/%%PYTHON_VERSION%%/site-packages/TextTools/Constants/TagTables.pyo
+lib/%%PYTHON_VERSION%%/site-packages/TextTools/Constants/__init__.py
+lib/%%PYTHON_VERSION%%/site-packages/TextTools/Constants/__init__.pyc
+lib/%%PYTHON_VERSION%%/site-packages/TextTools/Constants/__init__.pyo
+lib/%%PYTHON_VERSION%%/site-packages/TextTools/TextTools.py
+lib/%%PYTHON_VERSION%%/site-packages/TextTools/TextTools.pyc
+lib/%%PYTHON_VERSION%%/site-packages/TextTools/TextTools.pyo
+lib/%%PYTHON_VERSION%%/site-packages/TextTools/__init__.py
+lib/%%PYTHON_VERSION%%/site-packages/TextTools/__init__.pyc
+lib/%%PYTHON_VERSION%%/site-packages/TextTools/__init__.pyo
+lib/%%PYTHON_VERSION%%/site-packages/TextTools/mxTextTools/__init__.py
+lib/%%PYTHON_VERSION%%/site-packages/TextTools/mxTextTools/__init__.pyc
+lib/%%PYTHON_VERSION%%/site-packages/TextTools/mxTextTools/__init__.pyo
+lib/%%PYTHON_VERSION%%/site-packages/TextTools/mxTextTools/mxTextTools.so
share/doc/py-mxTextTools/mxTextTools.html
-@dirrm share/doc/py-mxTextTools
share/examples/py-mxTextTools/HTML.py
share/examples/py-mxTextTools/Loop.py
share/examples/py-mxTextTools/Python.py
@@ -33,3 +29,7 @@ share/examples/py-mxTextTools/__init__.py
share/examples/py-mxTextTools/altRTF.py
share/examples/py-mxTextTools/pytag.py
@dirrm share/examples/py-mxTextTools
+@dirrm share/doc/py-mxTextTools
+@dirrm lib/%%PYTHON_VERSION%%/site-packages/TextTools/mxTextTools
+@dirrm lib/%%PYTHON_VERSION%%/site-packages/TextTools/Constants
+@dirrm lib/%%PYTHON_VERSION%%/site-packages/TextTools