blob: 893d981cbbfe4abf24983899327df8de3e68ac41 (
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
|
# Created by: Nicola Vitale <nivit@email.it>
# $FreeBSD$
PORTNAME= wax
PORTVERSION= 0.3.33
PORTREVISION= 5
CATEGORIES= x11-toolkits devel python
MASTER_SITES= SF/${PORTNAME}gui/${PORTNAME}gui/${PORTNAME}-${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= nivit@FreeBSD.org
COMMENT= A user-friendly layer on top of wxPython
RUN_DEPENDS= ${PYTHONPREFIX_SITELIBDIR}/${WX_PYTHON_DIR}/wxPython/_wx.py:${PORTSDIR}/x11-toolkits/py-wxPython26
NO_BUILD= yes
USE_PYTHON= yes
DATADIR= ${PYTHON_SITELIBDIR}
FIND_DIRS= -type d \! -empty
FIND_DATA= -type f
FIND_DELETE= \( -name "*.txt" -and -maxdepth 2 \)
.if !defined(WITH_EXAMPLES)
PLIST_SUB= PORTEXAMPLES="@comment "
.else
PLIST_SUB= PORTEXAMPLES=""
.endif
NO_STAGE= yes
do-install:
@cd ${WRKSRC} && ${FIND} . ${FIND_DIRS} -exec ${MKDIR} ${DATADIR}/{} \;
@cd ${WRKSRC} && ${FIND} . ${FIND_DELETE} -delete
@cd ${WRKSRC} && ${FIND} . ${FIND_DATA} -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
.if !defined(WITH_EXAMPLES)
${RM} -r ${DATADIR}/${PORTNAME}/examples
.else
${MV} ${DATADIR}/${PORTNAME}/examples ${EXAMPLESDIR}
.endif
.if defined(WITH_UNICODE)
WX_PYTHON_DIR= wx-2.6-gtk2-unicode
.else
WX_PYTHON_DIR= wx-2.6-gtk2-ansi
.endif
.include <bsd.port.mk>
|