- Remove checks for python < 2.0

Suggested by:	Alex Kozlov <spam@rm-rf.kiev.ua>
This commit is contained in:
Pav Lucistnik 2009-01-08 10:15:18 +00:00
parent 6d083f32b1
commit 9103743b31
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=225437
4 changed files with 0 additions and 40 deletions

View file

@ -26,9 +26,6 @@ PYDISTUTILS_PKGNAME= Grouch
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/compiler/__init__.py:${PORTSDIR}/lang/py-compiler
.endif
pre-install:
@ ${SH} ${PKGREQ} INSTALL
post-install:
.if !defined(NOPORTDOCS)
@ ${MKDIR} ${DOCSDIR}

View file

@ -1,17 +0,0 @@
#!/bin/sh
PATH=$PATH:/usr/local/bin
if [ "x$1" = "xINSTALL" -o "x$2" = "xINSTALL" ]; then
PYTHON_GT=`python -c 'import string, sys; \
print string.split(sys.version)[0] >= "2.0" and 1'`
if [ "x${PYTHON_GT}" = "x1" ]; then
exit 0
else
echo "-----------------------------------------------------------"
echo "Grouch requires Python version 2.0 or greater - "
echo " please update your Python installation before proceeding."
echo "-----------------------------------------------------------"
exit 1
fi
fi

View file

@ -27,9 +27,6 @@ do-build:
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
pre-install:
@ ${SH} ${PKGREQ} INSTALL
do-install:
@printf '#!/bin/sh\n${PYTHON_CMD} ${PYTHONPREFIX_SITELIBDIR}/ASV.py "$$@"\n' \
> ${WRKDIR}/asv.sh

View file

@ -1,17 +0,0 @@
#!/bin/sh
PATH=$PATH:/usr/local/bin
if [ "x$1" = "xINSTALL" -o "x$2" = "xINSTALL" ]; then
PYTHON_GT=`python -c 'import string, sys; \
print string.split(sys.version)[0] >= "2.0" and 1'`
if [ "x${PYTHON_GT}" = "x1" ]; then
exit 0
else
echo "-----------------------------------------------------------"
echo "ASV requires Python version 2.0 or greater -"
echo " please update your Python installation before proceeding."
echo "-----------------------------------------------------------"
exit 1
fi
fi