summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--editors/gedit/Makefile18
-rw-r--r--editors/gedit/pkg-plist8
2 files changed, 20 insertions, 6 deletions
diff --git a/editors/gedit/Makefile b/editors/gedit/Makefile
index d74dc7945..7fcfa1dcf 100644
--- a/editors/gedit/Makefile
+++ b/editors/gedit/Makefile
@@ -3,7 +3,7 @@
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD: ports/editors/gedit/Makefile,v 1.54 2005/11/05 04:53:20 marcus Exp $
-# $MCom: ports/editors/gedit/Makefile,v 1.12 2005/10/03 15:49:09 ahze Exp $
+# $MCom: ports/editors/gedit/Makefile,v 1.14 2005/12/14 14:22:47 marcus Exp $
#
PORTNAME= gedit
@@ -26,6 +26,7 @@ USE_GMAKE= yes
USE_AUTOTOOLS= libtool:15
USE_GNOME= gnomeprefix gnomehack intlhack \
libgnomeprintui libgnomeui eel2 gtksourceview desktopfileutils
+WANT_GNOME= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
PLIST_SUB= VERSION="2.10"
@@ -33,7 +34,20 @@ PLIST_SUB= VERSION="2.10"
MAN1= gedit.1
GCONF_SCHEMAS= gedit.schemas
+.include <bsd.port.pre.mk>
+
+.if ${HAVE_GNOME:Mpygtk2}!=""
+USE_PYTHON= yes
+.include "${PORTSDIR}/Mk/bsd.python.mk"
+USE_GNOME+= pygtk2
+CONFIGURE_ARGS+=--enable-python
+PLIST_SUB+= PYTHON=""
+.else
+CONFIGURE_ARGS+=--disable-python
+PLIST_SUB+= PYTHON="@comment "
+.endif
+
post-install:
@-update-desktop-database
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/editors/gedit/pkg-plist b/editors/gedit/pkg-plist
index c1a00e263..2db6b0dd4 100644
--- a/editors/gedit/pkg-plist
+++ b/editors/gedit/pkg-plist
@@ -41,10 +41,10 @@ lib/gedit-2/plugins/libsort.so
lib/gedit-2/plugins/libspell.so
lib/gedit-2/plugins/libtaglist.so
lib/gedit-2/plugins/libtime.so
-lib/gedit-2/plugins/pythonconsole.gedit-plugin
-lib/gedit-2/plugins/pythonconsole.py
-lib/gedit-2/plugins/pythonconsole.pyc
-lib/gedit-2/plugins/pythonconsole.pyo
+%%PYTHON%%lib/gedit-2/plugins/pythonconsole.gedit-plugin
+%%PYTHON%%lib/gedit-2/plugins/pythonconsole.py
+%%PYTHON%%lib/gedit-2/plugins/pythonconsole.pyc
+%%PYTHON%%lib/gedit-2/plugins/pythonconsole.pyo
lib/gedit-2/plugins/sample.gedit-plugin
lib/gedit-2/plugins/sort.gedit-plugin
lib/gedit-2/plugins/spell.gedit-plugin