ports/137136: [PATCH] Make python support in editor/gedit an explicit option
Dmitrij Tejblum
tejblum at yandex-team.ru
Sat Jul 25 19:00:13 UTC 2009
>Number: 137136
>Category: ports
>Synopsis: [PATCH] Make python support in editor/gedit an explicit option
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Jul 25 19:00:09 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Dmitrij Tejblum
>Release: 7.2-RELEASE
>Organization:
>Environment:
>Description:
The editors/gedit port check if pygtksourceview is installed, and enable or disable support for python plugins depending on it.
It is not very convenient for a newbie to install the port (without disabling any option!) and then discover that half of its features does not work for a non-obvious reason. Thus I suggest to convert it to an explicit OPTION.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
--- ports/editors/gedit/Makefile 2009-05-19 18:07:56.000000000 +0400
+++ ports/editors/gedit/Makefile 2009-07-25 22:46:30.000000000 +0400
@@ -41,9 +41,11 @@
WITH_GNOME= yes
.endif
-.include <bsd.port.pre.mk>
+OPTIONS= PYTHON "Enable Python Plugins" On
-.if ${HAVE_GNOME:Mpygtksourceview}!=""
+.include <bsd.port.options.mk>
+
+.ifdef WITH_PYTHON
USE_PYTHON= yes
.include "${PORTSDIR}/Mk/bsd.python.mk"
USE_GNOME+= pygtksourceview
@@ -63,4 +65,4 @@
post-install:
@-update-desktop-database
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list