aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py-plex/Makefile
blob: 7f462eb09119725cbd6be91d07363b21fe1b6d7e (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
# New ports collection makefile for:    py-plex
# Date created:     11 April 2002
# Whom:         Hye-Shik Chang
#
# $FreeBSD$
#

PORTNAME=   plex
PORTVERSION=    1.1.3
CATEGORIES= devel python
MASTER_SITES=   http://www.cosc.canterbury.ac.nz/~greg/python/Plex/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   Plex-${PORTVERSION}

MAINTAINER= perky@FreeBSD.org

USE_PYTHON= yes
USE_PYDISTUTILS=yes

WRKSRC=     ${WRKDIR}
DOCDIR=     share/doc/py-plex
EXAMPLESDIR=    share/examples/py-plex

post-extract:
    ${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|g' ${FILESDIR}/setup.py \
        > ${WRKSRC}/setup.py

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/${DOCDIR}
    cd ${WRKSRC}/doc && ${INSTALL_DATA} ./* ${PREFIX}/${DOCDIR}
    ${MKDIR} ${PREFIX}/${EXAMPLESDIR}
    cd ${WRKSRC}/examples && ${INSTALL_DATA} ./* ${PREFIX}/${EXAMPLESDIR}
.endif

.include <bsd.port.mk>