aboutsummaryrefslogtreecommitdiffstats
path: root/www/py-restclient/Makefile
blob: 32a320949dab91659565044fe1b388dce81db94d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# New ports collection makefile for:    py-restclient
# Date created:     Apr. 15, 2007
# Whom:         Li-Wen Hsu <lwhsu@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   restclient
PORTVERSION=    0.9.8
CATEGORIES= www python
MASTER_SITES=   CHEESESHOP
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

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}"

post-patch:
    ${REINPLACE_CMD} -e 's,install_requires.*,,' ${WRKSRC}/setup.py

.include <bsd.port.mk>