1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/korean/gdick/Makefile
Hye-Shik Chang 9fdcb8ca80 Update to 0.8.2
Submitted by:	author
2003-11-10 16:25:49 +00:00

49 lines
1.3 KiB
Makefile

# New ports collection makefile for: ko-gdick
# Date created: 20 August 2003
# Whom: Hye-Shik Chang <perky@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= gdick
PORTVERSION= 0.8.2
CATEGORIES= korean python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= gdick
MAINTAINER= perky@FreeBSD.org
COMMENT= English-Korean Dictionary Client for GNOME2
RUN_DEPENDS= ${PYTHONPREFIX_SITELIBDIR}/gtk-2.0/atk.so:${PORTSDIR}/x11-toolkits/py-gtk2 \
${PYTHONPREFIX_SITELIBDIR}/cjkcodecs.pth:${PORTSDIR}/converters/py-cjkcodecs
USE_PYTHON= yes
USE_PYDISTUTILS=yes
USE_REINPLACE= yes
USE_BZIP2= yes
PLIST_SUB= ${OPTPLIST_SUB}
.include <bsd.port.pre.mk>
.if defined(WITH_GNOME)
USE_GNOME= gnomehier
RUN_DEPENDS+= ${PYTHONPREFIX_SITELIBDIR}/gtk-2.0/gconfmodule.so:${PORTSDIR}/x11-toolkits/py-gnome2
OPTPLIST_SUB= GNOMEONLY=""
.else
OPTPLIST_SUB= GNOMEONLY="@comment "
.endif
post-patch:
${REINPLACE_CMD} -e \
's,/usr/share/gdick/gdick.glade,${PREFIX}/share/gdick/gdick.glade,g' \
${WRKSRC}/lib/gdick/gdick.py
${REINPLACE_CMD} -e 's,/usr/bin/gdick,${PREFIX}/bin/gdick,g' \
${WRKSRC}/GNOME_GDick.server
.if !defined(WITH_GNOME)
${REINPLACE_CMD} -e 's/, "gdick_applet"//g' \
-e 's|, ("lib/bonobo/servers/", ("GNOME_GDick.server",))||g' \
${WRKSRC}/setup.py
.endif
.include <bsd.port.post.mk>