aboutsummaryrefslogtreecommitdiffstats
path: root/science/py-pyaixi/Makefile
blob: bbdc1ffb8ca04828fe255fd42cbb39c027aa84a7 (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
# Created by: Johannes Meixner <xmj@chaot.net>
# $FreeBSD$

PORTNAME=   pyaixi
PORTVERSION=    1.0.3
CATEGORIES= science python
MASTER_SITES=   CHEESESHOP
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= xmj@chaot.net
COMMENT=    Implementation of the MC-AIXI-CTW AI algorithm

LICENSE=    CCbySA
LICENSE_NAME=   Creative Commons Attribution-ShareAlike 3.0 \
        Unported License
LICENSE_FILE=   ${WRKSRC}/LICENSE.txt
LICENSE_PERMS=  auto-accept dist-mirror pkg-mirror pkg-sell dist-sell

USES=   dos2unix
USE_PYTHON=     2
USE_PYDISTUTILS=    yes
PYDISTUTILS_AUTOPLIST=  yes

PORTDOCS=   changelog.txt \
        todo.txt

PORTEXAMPLES=   *

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

post-install:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} \
        ${STAGEDIR}${DOCSDIR}
    ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/conf/|} \
        ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>