blob: cf2a663b66bde49d0f9ec14a4ca71ce307425ad1 (
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# New ports collection makefile for: emesene
# Date created: 31 May 2007
# Whom: Yinghong Liu <relaxbsd@gmail.com>
#
# $FreeBSD$
#
PORTNAME= emesene
PORTVERSION= 1.6.3
CATEGORIES= net-im python
#MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MASTER_SITES= ${MASTER_SITE_LOCAL:S,$,acm/${PORTNAME}/,} \
${MASTER_SITE_GOOGLE_CODE}
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}
PROJECTHOST= bsdistfiles
USE_PYTHON= yes
USE_GETTEXT= yes
USE_GNOME= pygtk2 desktopfileutils
USE_GSTREAMER= python
REINPLACE_ARGS= -i ""
PLIST= ${WRKDIR}/pkg-plist
MAN1= emesene.1
DESKTOP_ENTRIES="${PORTNAME}" \
"${COMMENT}" \
"${DATADIR}/themes/default/userPanel.png" \
"${PORTNAME}" \
"Network;InstantMessaging;GTK;" \
"false"
post-extract:
@cd ${WRKSRC} && \
${RM} -fr GPL LGPL README pygif pyisf docs && \
${MV} misc ${WRKDIR} && \
${MV} po ${WRKDIR}
post-patch:
@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/${PORTNAME}
do-build:
@cd ${WRKSRC} && \
${PYTHON_CMD} setup.py build_ext -i
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKDIR}
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKDIR}
@${ECHO_CMD} "#!/bin/sh" >> ${WRKDIR}/run.sh
@${ECHO_CMD} "" >> ${WRKDIR}/run.sh
@${ECHO_CMD} "cd ${DATADIR} || exit 1" >> ${WRKDIR}/run.sh
@${ECHO_CMD} "exec ${PYTHON_CMD} ./${PORTNAME}" >> ${WRKDIR}/run.sh
pre-install:
@${RM} -fr ${PLIST} ${WRKSRC}/build ${WRKSRC}/libmimic ${WRKSRC}/libmimic.so
@${ECHO_CMD} "share/icons/hicolor/scalable/apps/emesene.svg" >> ${PLIST}
@${ECHO_CMD} "share/pixmaps/emesene.png" >> ${PLIST}
@${ECHO_CMD} "share/pixmaps/emesene-big.png" >> ${PLIST}
@${ECHO_CMD} "bin/${PORTNAME}" >> ${PLIST}
@cd ${WRKDIR}/po && \
${FIND} * -type f | ${SORT} | ${SED} -e 's|^|share/locale/|' >> ${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} "@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true" >> ${PLIST}
@${ECHO_CMD} "@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true" >> ${PLIST}
do-install:
@${MKDIR} ${DATADIR}
cd ${WRKDIR}/po && \
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${PREFIX}/share/locale/{}" \;
cd ${WRKSRC} && \
${FIND} * -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
${INSTALL_SCRIPT} ${WRKDIR}/run.sh ${PREFIX}/bin/${PORTNAME}
${INSTALL_MAN} ${WRKDIR}/misc/${MAN1} ${PREFIX}/man/man1
${INSTALL_DATA} ${WRKDIR}/misc/emesene.svg ${PREFIX}/share/icons/hicolor/scalable/apps
${INSTALL_DATA} ${WRKDIR}/misc/emesene.png ${WRKDIR}/misc/emesene-big.png \
${PREFIX}/share/pixmaps
post-install:
-@update-desktop-database
.include <bsd.port.mk>
|