summaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2005-12-19 12:14:53 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2005-12-19 12:14:53 +0800
commit56c4eb750f4338860d4e842ac771c32a03451533 (patch)
treeb4e86e772ee84857f125e1933665f12976a14d66 /editors
parente5b39f28300d435b0c2285ec4ee77ea802c3c011 (diff)
downloadmarcuscom-ports-56c4eb750f4338860d4e842ac771c32a03451533.tar
marcuscom-ports-56c4eb750f4338860d4e842ac771c32a03451533.tar.gz
marcuscom-ports-56c4eb750f4338860d4e842ac771c32a03451533.tar.bz2
marcuscom-ports-56c4eb750f4338860d4e842ac771c32a03451533.tar.lz
marcuscom-ports-56c4eb750f4338860d4e842ac771c32a03451533.tar.xz
marcuscom-ports-56c4eb750f4338860d4e842ac771c32a03451533.tar.zst
marcuscom-ports-56c4eb750f4338860d4e842ac771c32a03451533.zip
Make pygtk2 support optional, and correct the plist.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@5307 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'editors')
-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