Update deskutils/horde-mnemo to version 4.1.3
[dports.git] / deskutils / x-tile / Makefile
1 # Created by: Pedro Garcia Freitas <sawp@sawp.com.br>
2 # $FreeBSD$
3
4 PORTNAME=       x-tile
5 PORTVERSION=    2.2.1
6 PORTREVISION=   1
7 CATEGORIES=     deskutils devel python
8 MASTER_SITES=   http://www.giuspen.com/software/
9
10 MAINTAINER=     sawp@sawp.com.br
11 COMMENT=        GNOME applet to tile the opened windows
12
13 LICENSE=        GPLv2
14
15 USE_GNOME=      pygtk2
16 USE_PYTHON=     yes
17 USE_PYDISTUTILS=        yes
18 PYDISTUTILS_PKGNAME=    X_Tile
19
20 NO_STAGE=       yes
21
22 OPTIONS_DEFINE= NLS
23
24 .include <bsd.port.options.mk>
25
26 .if ${PORT_OPTIONS:MNLS}
27 USES+=          gettext
28 PLIST_SUB+=     NLS=""
29 .else
30 PYDISTUTILS_BUILD_TARGET=       --without-gettext build
31 PYDISTUTILS_INSTALL_TARGET=     --without-gettext install
32 PLIST_SUB+=     NLS="@comment "
33 .endif
34
35 post-patch:
36         @${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' \
37                 ${WRKSRC}/x-tile ${WRKSRC}/linux/x-tile.desktop \
38                 ${WRKSRC}/modules/cons.py
39         @${REINPLACE_CMD} \
40                 -e 's,distutils\.command\.install ,setuptools\.command\.install ,' \
41                 ${WRKSRC}/setup.py
42
43 .include <bsd.port.mk>