blob: 6a1ccfd9938a19e8b65c4605ef39353fa89a3f30 (
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
|
# New ports collection makefile for: pydbdesigner
# Date created: 2003-01-02
# Whom: Alan Eldridge <alane@geeksrus.net>
#
# $FreeBSD$
#
PORTNAME= pydbdesigner
PORTVERSION= 0.1.4.1
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=${PORTNAME}
MAINTAINER= xride@FreeBSD.org
COMMENT= Graphical designer for relational databases
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/wxPython/__init__.py:${PORTSDIR}/x11-toolkits/py-wxPython24
EXTRACT_AFTER_ARGS= | ${TAR} --exclude CVS -xf -
USE_PYTHON= 2.2+
REINPLACE_ARGS= -i ""
WRKSRC= ${WRKDIR}/PyDBDesigner
NO_BUILD= yes
MY_SITELIBDIR= ${PYTHON_SITELIBDIR}/${PORTNAME}
post-patch:
@${REINPLACE_CMD} -e 's,/usr/bin/env *python,${PYTHON_CMD},' \
${WRKSRC}/main.py
do-install:
${MKDIR} ${MY_SITELIBDIR}
cd ${WRKSRC};\
${FIND} . | cut -c3- \
| ${CPIO} -pdmv -R ${LIBOWN}:${LIBGRP} ${MY_SITELIBDIR};\
cd ${MY_SITELIBDIR};\
${FIND} . -type d | cut -c3- | ${XARGS} ${CHMOD} ${BINMODE};\
${FIND} . -type f | cut -c3- | ${XARGS} ${CHMOD} ${LIBMODE};\
${RM} -f ${PREFIX}/bin/${PORTNAME};\
${LN} -s ${MY_SITELIBDIR}/main.py ${PREFIX}/bin/${PORTNAME}
${CHMOD} ${BINMODE} ${MY_SITELIBDIR}/main.py
.include <bsd.port.mk>
|