aboutsummaryrefslogtreecommitdiffstats
path: root/www/py-pysearch/Makefile
blob: 740feada9c8c3d7f8f96f8502f774749e64ce03a (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
# Created by: Li-Wen Hsu <lwhsu@lwhsu.org>
# $FreeBSD$

PORTNAME=   pysearch
PORTVERSION=    3.1
PORTREVISION=   1
CATEGORIES= www python
MASTER_SITES=   SF/${PORTNAME}/pYsearch/${PORTVERSION}
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   pYsearch-${PORTVERSION}

MAINTAINER= lwhsu@FreeBSD.org
COMMENT=    Yahoo Search Web Services SDK for Python

USES=       python:2.7 shebangfix
SHEBANG_FILES=  examples/profile.py \
        examples/websearch.py
USE_PYTHON= distutils
PYDISTUTILS_PKGNAME=    pYsearch

DOCSDIR=    ${PREFIX}/share/doc/py-${PORTNAME}
EXAMPLESDIR=    ${PREFIX}/share/examples/py-${PORTNAME}

OPTIONS_DEFINE= DOCS EXAMPLES

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${CP} -R ${WRKSRC}/docs/ ${STAGEDIR}${DOCSDIR}
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${CP} -R ${WRKSRC}/examples/ ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>