blob: 67a279d163e0b2aff4388a635b01311acfe54622 (
plain)
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
57
58
59
60
61
62
63
64
65
|
# New ports collection makefile for: emesene
# Date created: 31 May 2007
# Whom: Yinghong Liu <relaxbsd@gmail.com>
#
# $FreeBSD$
#
PORTNAME= emesene
PORTVERSION= 1.0
CATEGORIES= net-im python
MASTER_SITES= SF
MAINTAINER= acm@FreeBSD.org
COMMENT= A MSN Messenger client writen in python
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/dbus/__init__.py:${PORTSDIR}/devel/py-dbus \
${PYTHON_SITELIBDIR}/gtk-2.0/pynotify/__init__.py:${PORTSDIR}/devel/py-notify
RUN_DEPENDS:= ${BUILD_DEPENDS}
USE_PYTHON= yes
USE_GETTEXT= yes
USE_GNOME= pygtk2
REINPLACE_ARGS= -i ""
PLIST= ${WRKDIR}/pkg-plist
WRKSRC= ${WRKDIR}/${PORTNAME}
DESKTOP_ENTRIES="${PORTNAME}" \
"${COMMENT}" \
"${DATADIR}/themes/default/userPanel.png" \
"${PORTNAME}" \
"Network;InstantMessaging;GTK;" \
"false"
post-extract:
@cd ${WRKSRC} && \
${RM} -f GPL LGPL README
post-patch:
@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/${PORTNAME}
do-build:
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKDIR}
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKDIR}
@${ECHO_CMD} "cd ${DATADIR} || exit 1" >> ${WRKDIR}/run.sh
@${ECHO_CMD} "exec ${PYTHON_CMD} ./${PORTNAME}" >> ${WRKDIR}/run.sh
pre-install:
@${RM} -f ${PLIST}
@cd ${WRKSRC} && \
${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
@${ECHO_CMD} "@dirrm %%DATADIR%%" >> ${PLIST}
@${ECHO_CMD} "bin/${PORTNAME}" >> ${PLIST}
do-install:
@${MKDIR} ${DATADIR}
cd ${WRKSRC} && \
${FIND} * -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
${INSTALL_SCRIPT} ${WRKDIR}/run.sh ${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>
|