aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/tel/Makefile
blob: 209d0f6756c70abd029e76fe65d49d0750ad79c1 (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
# 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
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>