freebsd-ports/mail/pygmy/Makefile
Maxim Sobolev dd85694bb4 - Fix on python2.1;
- install source .py files in addition to the byte-compiled versions.
2001-05-04 21:25:07 +00:00

39 lines
1.1 KiB
Makefile

# New ports collection makefile for: pygmy
# Date created: 15 August 2000
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= pygmy
PORTVERSION= 0.5.5
PORTREVISION= 1
CATEGORIES= mail python gnome
MASTER_SITES= http://pygmy.sourceforge.net/
MAINTAINER= sobomax@FreeBSD.org
BUILD_DEPENDS= ${PYTHON_LIBDIR}/site-packages/_gnomemodule.so:${PORTSDIR}/x11-toolkits/py-gnome
RUN_DEPENDS= ${PYTHON_LIBDIR}/site-packages/_gnomemodule.so:${PORTSDIR}/x11-toolkits/py-gnome
USE_PYTHON= yes
MAKE_ENV= PYTHON_VERSION="${PYTHON_VERSION}"
ALL_TARGET= pythonprogs
do-configure:
@${ECHO} "PYGMY_PREFIX='${PREFIX}/share'" > ${WRKSRC}/prefix.py
do-install:
${MKDIR} ${PREFIX}/share/pygmy/icons
.for ext in py pyc pyo
${INSTALL_DATA} ${WRKSRC}/*.${ext} ${PREFIX}/share/pygmy
.endfor
${INSTALL_DATA} ${WRKSRC}/icons/* ${PREFIX}/share/pygmy/icons
${INSTALL_DATA} ${WRKSRC}/pygmy ${PREFIX}/share/pygmy
@printf "#!/bin/sh\n${PYTHON_CMD} ${PREFIX}/share/pygmy/pygmy" > \
${WRKDIR}/pygmy.sh
${INSTALL_SCRIPT} ${WRKDIR}/pygmy.sh ${PREFIX}/bin/pygmy
.include <bsd.port.mk>