1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00
freebsd-ports/deskutils/tel/Makefile
Vanilla I. Shu 809e4c7534 Support STAGEDIR
PR:		ports/193029
Submitted by:	Ports Fury.
2014-08-28 02:49:31 +00:00

38 lines
925 B
Makefile

# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
PORTNAME= tel
PORTVERSION= 0.1.7.1
PORTREVISION= 3
CATEGORIES= deskutils
MASTER_SITES= SF/${PORTNAME}.berlios
MAINTAINER= ports@FreeBSD.org
COMMENT= Little console-based phone book manager
LICENSE= MIT
NO_ARCH= yes
USES= gettext python shebangfix tar:bzip2
SHEBANG_FILES= src/tel.py
python_OLD_CMD= /usr/bin/env python
python_CMD= ${PYTHON_CMD}
USE_PYTHON= distutils
post-patch:
@${REINPLACE_CMD} -e \
's|distutils\.command\.install |setuptools\.command\.install |' \
${WRKSRC}/appdistutils.py
@${REINPLACE_CMD} -e \
's|$${install_messages}|${PREFIX}/share/locale| ; \
s|$${install_app_modules}|${PREFIX}/lib/tel| ; \
s|$${install_app_data}|${DATADIR}|' \
${WRKSRC}/src/tel.py
post-install:
@${FIND} ${STAGEDIR}${PREFIX}/bin -type l -delete
@${LN} -sf ${PREFIX}/lib/tel/tel.py ${STAGEDIR}${PREFIX}/bin/tel
.include <bsd.port.mk>