blob: d98492747ae863f4906bd78b154653ddd7841dd5 (
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
53
54
55
56
|
# New ports collection makefile for: cuecat
# Date created: 18 October 2000
# Whom: mwm@mired.org
#
# $FreeBSD$
#
PORTNAME= cuecat
PORTVERSION= 1.1
CATEGORIES= misc python
MASTER_SITES= http://www.mired.org/downloads/
MAINTAINER= mwm@mired.org
COMMENT= Tools for decoding and using the output of a :Cue:Cat(TM) wand scanner
.if !defined(WITHOUT_X11)
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter \
${PYTHON_SITELIBDIR}/Pmw/__init__.py:${PORTSDIR}/x11-toolkits/pmw
.endif
NO_BUILD= yes
MAN1= cuecat.1
.if !defined(WITHOUT_X11)
MAN1+= xcuecat.1
.endif
USE_PYTHON= yes
WRKSRC= ${WRKDIR}/cuecat
pre-install:
@${MV} ${WRKSRC}/cuecat.py ${WRKSRC}/cuecat.py-orig
@${SED} 's;/usr/opt;${PREFIX};' ${WRKSRC}/cuecat.py-orig >${WRKSRC}/cuecat.py
@${MV} ${WRKSRC}/barcode.py ${WRKSRC}/barcode.py-orig
@${SED} 's;/usr/opt;${PREFIX};' ${WRKSRC}/barcode.py-orig >${WRKSRC}/barcode.py
.if !defined(WITHOUT_X11)
@${MV} ${WRKSRC}/xcuecat.py ${WRKSRC}/xcuecat.py-orig
@${SED} 's;/usr/opt;${PREFIX};' ${WRKSRC}/xcuecat.py-orig >${WRKSRC}/xcuecat.py
.endif
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/cuecat.py ${PYTHON_SITELIBDIR}
${INSTALL_SCRIPT} ${WRKSRC}/barcode.py ${PYTHON_SITELIBDIR}
python -O -c "import barcode, cuecat"
${LN} -sf ${PYTHON_SITELIBDIR}/cuecat.py ${PREFIX}/bin/cuecat
${INSTALL_MAN} ${WRKSRC}/cuecat.1 ${PREFIX}/man/man1
.if !defined(WITHOUT_X11)
${INSTALL_SCRIPT} ${WRKSRC}/xcuecat.py ${PREFIX}/bin/xcuecat
${INSTALL_MAN} ${WRKSRC}/xcuecat.1 ${PREFIX}/man/man1
.endif
.if defined(WITHOUT_X11)
post-install:
$(MV) ${TMPPLIST} ${TMPPLIST}.orig
${GREP} -v xcuecat ${TMPPLIST}.orig > ${TMPPLIST}
.endif
.include <bsd.port.mk>
|