diff options
author | alexbl <alexbl@FreeBSD.org> | 2007-07-30 17:42:28 +0800 |
---|---|---|
committer | alexbl <alexbl@FreeBSD.org> | 2007-07-30 17:42:28 +0800 |
commit | 7d749db4cf14f30613e9a53a08ffa3d3b4575146 (patch) | |
tree | ad9062005432bbf28f5cce4ad3a1cd32a59dba69 /www/py-restclient | |
parent | 8e2da239f74a82ad1c98b69bd27abb3f4e40ecf3 (diff) | |
download | freebsd-ports-gnome-7d749db4cf14f30613e9a53a08ffa3d3b4575146.tar.gz freebsd-ports-gnome-7d749db4cf14f30613e9a53a08ffa3d3b4575146.tar.zst freebsd-ports-gnome-7d749db4cf14f30613e9a53a08ffa3d3b4575146.zip |
- Make Python 2.5.1 the default Python version
- Add significantly better support in bsd.python.mk for working with
Python Eggs and the easy_install system
Tested by: pointyhat runs
Approved by: pav (portmgr)
Most work by: perky
Thanks to: pav
Diffstat (limited to 'www/py-restclient')
-rw-r--r-- | www/py-restclient/Makefile | 19 | ||||
-rw-r--r-- | www/py-restclient/pkg-plist | 38 |
2 files changed, 20 insertions, 37 deletions
diff --git a/www/py-restclient/Makefile b/www/py-restclient/Makefile index 32a320949dab..f91f698c0257 100644 --- a/www/py-restclient/Makefile +++ b/www/py-restclient/Makefile @@ -14,25 +14,10 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= lwhsu@FreeBSD.org COMMENT= Convenient library for writing REST clients -BUILD_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools -RUN_DEPENDS= ${EASY_INSTALL_CMD}:${PORTSDIR}/devel/py-setuptools \ - ${PYTHON_SITELIBDIR}/httplib2/__init__.py:${PORTSDIR}/www/py-httplib2 +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/httplib2/__init__.py:${PORTSDIR}/www/py-httplib2 USE_PYTHON= yes -USE_PYDISTUTILS= yes - -EASY_INSTALL_CMD?= easy_install-${PYTHON_VER} - -PYDISTUTILS_BUILD_TARGET= bdist_egg -PYDISTUTILS_INSTALL_TARGET= easy_install -PYDISTUTILS_INSTALLARGS= -O 1 -N -S ${PYTHON_SITELIBDIR} ${WRKSRC}/dist/${PYRESTCLIENT_EGG} - -PYRESTCLIENT_EGG= ${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}.egg - -PLIST_SUB+= EASY_INSTALL_CMD=${EASY_INSTALL_CMD} \ - PYRESTCLIENT_EGG=${PYRESTCLIENT_EGG} \ - PYRESTCLIENT_EGG_VER="${PORTNAME}==${PORTVERSION}" - +USE_PYDISTUTILS= easy_install post-patch: ${REINPLACE_CMD} -e 's,install_requires.*,,' ${WRKSRC}/setup.py diff --git a/www/py-restclient/pkg-plist b/www/py-restclient/pkg-plist index b0d7671f2ffe..f4c33d3c76e7 100644 --- a/www/py-restclient/pkg-plist +++ b/www/py-restclient/pkg-plist @@ -1,20 +1,18 @@ -@unexec %%EASY_INSTALL_CMD%% -q -m -S %D/%%PYTHON_SITELIBDIR%% %%PYRESTCLIENT_EGG_VER%% -%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/EGG-INFO/PKG-INFO -%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/EGG-INFO/SOURCES.txt -%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/EGG-INFO/dependency_links.txt -%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/EGG-INFO/not-zip-safe -%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/EGG-INFO/top_level.txt -%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/restclient/__init__.py -%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/restclient/__init__.pyc -%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/restclient/__init__.pyo -%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/restclient/test/__init__.py -%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/restclient/test/__init__.pyc -%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/restclient/test/__init__.pyo -%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/restclient/test/test_everything.py -%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/restclient/test/test_everything.pyc -%%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/restclient/test/test_everything.pyo -@dirrm %%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/restclient/test -@dirrm %%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/restclient -@dirrm %%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%%/EGG-INFO -@dirrm %%PYTHON_SITELIBDIR%%/%%PYRESTCLIENT_EGG%% -@exec %%EASY_INSTALL_CMD%% -q -N -S %D/%%PYTHON_SITELIBDIR%% %%PYRESTCLIENT_EGG_VER%% +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/restclient/__init__.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/restclient/__init__.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/restclient/__init__.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/restclient/test/__init__.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/restclient/test/__init__.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/restclient/test/__init__.pyo +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/restclient/test/test_everything.py +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/restclient/test/test_everything.pyc +%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/restclient/test/test_everything.pyo +@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/restclient/test +@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/restclient +@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO +@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%% |