summaryrefslogtreecommitdiff
path: root/misc/cuecat/Makefile
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2001-06-17 15:12:10 +0000
committerKevin Lo <kevlo@FreeBSD.org>2001-06-17 15:12:10 +0000
commite8e01cd865dbde5b773db846d5f0738adc12e0d9 (patch)
treecbe4d4645478cd85d72ebf3b0796dad9d1271300 /misc/cuecat/Makefile
parentUpdate to version 3.1.7 (diff)
Update to version 1.1
PR: 28197 Submitted by: MAINTAINER
Diffstat (limited to '')
-rw-r--r--misc/cuecat/Makefile28
1 files changed, 24 insertions, 4 deletions
diff --git a/misc/cuecat/Makefile b/misc/cuecat/Makefile
index bf902434dc00..180e20dc56bd 100644
--- a/misc/cuecat/Makefile
+++ b/misc/cuecat/Makefile
@@ -6,16 +6,22 @@
#
PORTNAME= cuecat
-PORTVERSION= 1.0
-PORTREVISION= 2
+PORTVERSION= 1.1
CATEGORIES= misc python
-MASTER_SITES= http://www.mired.org/downloads/ \
- http://mwm.tzo.com/downloads/
+MASTER_SITES= http://www.mired.org/downloads/
MAINTAINER= mwm@mired.org
+.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
@@ -24,6 +30,10 @@ pre-install:
@${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}
@@ -31,5 +41,15 @@ do-install:
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_X)
+ ${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>