aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/py-martel/Makefile
blob: dd35bbfc96726420f87a740a3f7e888c46567047 (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
48
# New ports collection makefile for:    py-martel
# Date created:     19 October 2000
# Whom:             Johann Visagie <johann@egenetics.com>
#
# $FreeBSD$
#

PORTNAME=   martel
PORTVERSION=    0.5
PORTREVISION=   3
PORTEPOCH=  1
CATEGORIES= textproc biology python
MASTER_SITES=   http://www.biopython.org/~dalke/Martel/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   Martel-${PORTVERSION}

MAINTAINER= johann@egenetics.com

RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/mx/TextTools/__init__.py:${PORTSDIR}/lang/py-mx-base

USE_PYTHON= yes
PYTHON_VERSION= python2.1

MARTEL_DIR= ${PREFIX}/lib/${PYTHON_VERSION}/site-packages/Martel
MARTEL_EGDIR=   ${PREFIX}/share/examples/martel
MARTEL_DOCDIR=  ${PREFIX}/share/doc/martel

do-build:
    @ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
    @ ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}

do-install:
    @ ${MKDIR} ${MARTEL_DIR}
    @ (cd ${WRKSRC} && find *.py *.pyc *.pyo formats test \
      | cpio --quiet -pdum -R ${BINOWN}:${BINGRP} ${MARTEL_DIR})
    @ ${MKDIR} ${MARTEL_EGDIR}/builders
    @ ${INSTALL_DATA} ${WRKSRC}/examples/* ${MARTEL_EGDIR}
    @ ${INSTALL_DATA} ${WRKSRC}/builders/* ${MARTEL_EGDIR}/builders

post-install:
.if !defined(NOPORTDOCS)
    @ ${MKDIR} ${MARTEL_DOCDIR}
.for docfile in README HISTORY doc/*
    @ ${INSTALL_MAN} ${WRKSRC}/${docfile} ${MARTEL_DOCDIR}
.endfor
.endif

.include <bsd.port.mk>