aboutsummaryrefslogtreecommitdiffstats
path: root/www/py-imdbpy/Makefile
blob: 4442a9391cf6dbf315d632515a0e7282ef350efa (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
40
41
42
43
44
45
46
47
# ex:ts=8
# Ports collection makefile for:    py-IMDbPY
# Date created:         Jul 8, 2004
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   imdbpy
PORTVERSION=    4.9
CATEGORIES= www python
MASTER_SITES=   SF/${PORTNAME}/IMDbPY/${PORTVERSION:S/.2//}
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   IMDbPY-${PORTVERSION}

MAINTAINER= python@FreeBSD.org
COMMENT=    Retrieve and manage the data of the IMDb movie database

RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}lxml>=0:${PORTSDIR}/devel/py-lxml \
        ${PYTHON_PKGNAMEPREFIX}migrate>=0:${PORTSDIR}/databases/py-migrate \
        ${PYTHON_PKGNAMEPREFIX}sqlalchemy06>=0:${PORTSDIR}/databases/py-sqlalchemy06 \
        ${PYTHON_PKGNAMEPREFIX}sqlobject>=0:${PORTSDIR}/databases/py-sqlobject

OPTIONS_DEFINE= DOCS EXAMPLES

USE_PYTHON= yes
USE_PYDISTUTILS=    easy_install
PYDISTUTILS_NOEGGINFO=  yes
PYDISTUTILS_PKGNAME=    IMDbPY
PYEASYINSTALL_ARCHDEP=  yes

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

.include <bsd.port.options.mk>

post-install:
.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${DOCSDIR}/
    cd ${WRKSRC}/docs/ && ${COPYTREE_SHARE} . ${DOCSDIR}/
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
    ${MKDIR} ${EXAMPLESDIR}/
    cd ${WRKSRC}/bin/ && ${COPYTREE_SHARE} . ${EXAMPLESDIR}/
.endif

.include <bsd.port.mk>