aboutsummaryrefslogtreecommitdiffstats
path: root/games/pyching/Makefile
blob: 061a566a5d654ba8060dfdc1368e64ea231e420a (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
49
50
51
52
# New ports collection makefile for:    pyching
# Date created:         5 July 2001
# Whom:             Hye-Shik Chang <perky@python.or.kr>
#
# $FreeBSD$
#

PORTNAME=   pyching
PORTVERSION=    1.2.2
CATEGORIES= games python
MASTER_SITES=   SF/${PORTNAME}/pyChing/${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Consult a I Ching, an ancient Chinese book of wisdom

RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter

LICENSE=    GPLv2 GPLv3
LICENSE_COMB=   dual

NO_WRKSUBDIR=   yes
USE_PYTHON= yes

MAN1=       ${PORTNAME}.1

post-patch:
    @cd ${WRKSRC}; ${SED} 's|/usr/share/|${PYTHON_SITELIBDIR}/|g' \
        < ${PORTNAME}.sh > ${PORTNAME}

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

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
    @${MKDIR} ${PYTHON_SITELIBDIR}/${PORTNAME}
.for ext in py pyc pyo xbm
    ${INSTALL_DATA} ${WRKSRC}/*.${ext} ${PYTHON_SITELIBDIR}/${PORTNAME}
.endfor
.for file in COPYING CREDITS
    ${INSTALL_DATA} ${WRKSRC}/${file} ${PYTHON_SITELIBDIR}/${PORTNAME}
.endfor
    @${CHMOD} ${BINMODE} ${PYTHON_SITELIBDIR}/${PORTNAME}/${PORTNAME}.py
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for file in BUGS CHANGES NEWS README
    ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>