aboutsummaryrefslogtreecommitdiff
path: root/korean
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2003-08-21 05:04:32 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2003-08-21 05:04:32 +0000
commit07d2d4687bd693ad675a16b01e62f729ef6c3912 (patch)
tree3e0c3f5715b02670138c9c6a4c9332bf1cd42785 /korean
parente1f613d13c7f579bd3ca4ee57e6dd6f2f3d688c6 (diff)
downloadports-07d2d4687bd693ad675a16b01e62f729ef6c3912.tar.gz
ports-07d2d4687bd693ad675a16b01e62f729ef6c3912.zip
Notes
Diffstat (limited to 'korean')
-rw-r--r--korean/gdick/Makefile33
-rw-r--r--korean/gdick/distinfo2
-rw-r--r--korean/gdick/files/setup.py7
3 files changed, 19 insertions, 23 deletions
diff --git a/korean/gdick/Makefile b/korean/gdick/Makefile
index 227ba176f900..2b11271a81c6 100644
--- a/korean/gdick/Makefile
+++ b/korean/gdick/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= gdick
-PORTVERSION= 0.6.1
+PORTVERSION= 0.6.2
CATEGORIES= korean python
MASTER_SITES= http://ddt.mirstyle.org/data/
@@ -18,28 +18,31 @@ RUN_DEPENDS= ${PYTHONPREFIX_SITELIBDIR}/gtk-2.0/atk.so:${PORTSDIR}/x11-toolkits/
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
-PLIST_SUB= GNOMEONLY=""
+OPTPLIST_SUB= GNOMEONLY=""
+PYDISTUTILS_INSTALLARGS+= --bonobo-dir="${X11BASE}/libdata/bonobo"
.else
-PLIST_SUB= GNOMEONLY="@comment "
+OPTPLIST_SUB= GNOMEONLY="@comment "
+PYDISTUTILS_INSTALLARGS+= --without-gnome
.endif
-post-extract:
- ${INSTALL_DATA} ${FILESDIR}/setup.py ${WRKSRC}
-
post-patch:
-.for f in gdick gdick_applet
- ${SED} -e 's,/usr/bin/gdick.glade,${PREFIX}/share/gdick/gdick.glade,g' \
- ${WRKSRC}/$f.py > ${WRKSRC}/$f
+.for f in gdick.py gdick_applet
+ ${REINPLACE_CMD} -e \
+ 's,/usr/share/gdick/gdick.glade,${PREFIX}/share/gdick/gdick.glade,g' \
+ ${WRKSRC}/$f
.endfor
+ ${REINPLACE_CMD} -e 's,/usr/bin/gdick,${PREFIX}/bin/gdick,g' \
+ ${WRKSRC}/GNOME_GDick.server
+ ${REINPLACE_CMD} -e 's,(sys\.argv),("--without-gnome"),g' \
+ ${WRKSRC}/setup.py
-post-install:
-.if defined(WITH_GNOME)
- ${INSTALL_DATA} ${WRKSRC}/GNOME_GDick.server ${X11BASE}/libdata/bonobo/servers/
-.endif
-
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/korean/gdick/distinfo b/korean/gdick/distinfo
index 2829e820a758..371df63fa430 100644
--- a/korean/gdick/distinfo
+++ b/korean/gdick/distinfo
@@ -1 +1 @@
-MD5 (gdick-0.6.1.tar.bz2) = 8004643749c5826d99df9fd7c418e9e3
+MD5 (gdick-0.6.2.tar.bz2) = 53e959abc11a977549c31da6368b61d1
diff --git a/korean/gdick/files/setup.py b/korean/gdick/files/setup.py
deleted file mode 100644
index ef450fa0a617..000000000000
--- a/korean/gdick/files/setup.py
+++ /dev/null
@@ -1,7 +0,0 @@
-__version__ = "$FreeBSD$"
-from distutils.core import setup
-setup( name = "gdick",
- py_modules = ["YahooDict", "YahooView"],
- scripts = ["gdick", "gdick_applet"],
- data_files = [("share/gdick", ("gdick.glade",))],
-)