summaryrefslogtreecommitdiff
path: root/textproc/pyDict/Makefile
blob: 4a681edc942145d58011600b42db1b54c34a8ae1 (plain)
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
# $NetBSD: Makefile,v 1.2 2002/06/15 09:55:53 shell Exp $

DISTNAME=	pyDict-0.2.5.1
CATEGORIES=	textproc
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=pydict/}

MAINTAINER=	rxg@netbsd.org
HOMEPAGE=	http://sourceforge.net/projects/pydict/
COMMENT=	Chinese <-> English dictionary, under both console and X11

USE_X11BASE=	yes

WRKSRC=		${WRKDIR}/dict
NO_CONFIGURE=	yes
NO_BUILD=	yes

PYTHON_PATCH_SCRIPTS=	dict.py

post-patch:
	${SED} -e 's:/bin/grep:'${GREP}':g' < ${WRKSRC}/dict.py > ${WRKSRC}/dict.py.tmp
	${SED} -e 's:/usr/X11R6:'${PREFIX}':g' < ${WRKSRC}/dict.py.tmp > ${WRKSRC}/dict.py

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/pyDict
	${INSTALL_DATA} ${WRKSRC}/[a-z].lib ${WRKSRC}/dict.xpm ${WRKSRC}/yaba.xpm ${WRKSRC}/HELP ${PREFIX}/lib/X11/pyDict
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pyDict
	${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${WRKSRC}/COPYING ${WRKSRC}/README ${PREFIX}/share/doc/pyDict
	${INSTALL_SCRIPT} ${WRKSRC}/dict.py ${PREFIX}/bin/pydict

.include "../../lang/python/application.buildlink.mk"
.include "../../x11/pygtk/buildlink.mk"
.include "../../mk/bsd.pkg.mk"