mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
78 lines
2.5 KiB
Makefile
78 lines
2.5 KiB
Makefile
# Created by: Yinghong Liu <relaxbsd@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= emesene
|
|
PORTVERSION= 1.6.3
|
|
PORTREVISION= 3
|
|
CATEGORIES= net-im python
|
|
#MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL:S,$,acm/${PORTNAME}/,} \
|
|
${MASTER_SITE_GOOGLE_CODE}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= MSN Messenger client written 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
|
|
USES= gettext desktop-file-utils
|
|
USE_GNOME= pygtk2
|
|
USE_GSTREAMER= python
|
|
INSTALLS_ICONS= yes
|
|
REINPLACE_ARGS= -i ""
|
|
|
|
DESKTOP_ENTRIES="${PORTNAME}" \
|
|
"${COMMENT}" \
|
|
"${DATADIR}/themes/default/userPanel.png" \
|
|
"${PORTNAME}" \
|
|
"Network;InstantMessaging;GTK;" \
|
|
"false"
|
|
|
|
post-extract:
|
|
@cd ${WRKSRC} && \
|
|
${RM} -fr GPL LGPL PSF 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 ${WRKSRC}/build ${WRKSRC}/libmimic
|
|
.for DIRE in ast dv fil fo gv ku la nb_NO nds oc zh_HK
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/${DIRE}/LC_MESSAGES
|
|
.endfor
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
cd ${WRKDIR}/po && \
|
|
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${PREFIX}/share/locale/{}" \;
|
|
cd ${WRKSRC} && \
|
|
${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DATADIR}/{}" \; && \
|
|
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DATADIR}/{}" \;
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/run.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
${INSTALL_MAN} ${WRKDIR}/misc/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
|
|
${INSTALL_DATA} ${WRKDIR}/misc/emesene.svg ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps
|
|
${INSTALL_DATA} ${WRKDIR}/misc/emesene.png ${WRKDIR}/misc/emesene-big.png \
|
|
${STAGEDIR}${PREFIX}/share/pixmaps
|
|
|
|
.include <bsd.port.mk>
|