ports/137366: devel/libglade2: add menu option to configure dependence on Python

Carlos A. M. dos Santos unixmania at gmail.com
Sun Aug 2 21:40:05 UTC 2009


>Number:         137366
>Category:       ports
>Synopsis:       devel/libglade2: add menu option to configure dependence on Python
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 02 21:40:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Carlos A. M. dos Santos
>Release:        8.0-BETA2
>Organization:
N.A.
>Environment:
FreeBSD avatar 8.0-BETA2 FreeBSD 8.0-BETA2 #2: Tue Jul 28 23:21:41 BRT 2009     root at avatar:/usr/obj/usr/src/sys/Compaq_nx6320  amd64

>Description:
devel/libglade2/Makefile already check for a WITHOUT_PYTHON variable. Let's add a menu option allowing the user to configure it interactively. Keep the option on by default, for compatibility with previous versions.
>How-To-Repeat:
Build and install the devel/libglade2 package.
>Fix:
Apply the attached patch.

Patch attached with submission follows:

diff -dru ports/devel/libglade2/Makefile ports-local/devel/libglade2/Makefile
--- ports.orig/devel/libglade2/Makefile	2009-03-18 21:35:06.000000000 -0300
+++ ports/devel/libglade2/Makefile	2009-08-02 18:23:55.000000000 -0300
@@ -8,7 +8,7 @@
 
 PORTNAME=	libglade2
 PORTVERSION=	2.6.4
-PORTREVISION?=	0
+PORTREVISION?=	1
 CATEGORIES=	devel gnome
 MASTER_SITES=	GNOME
 MASTER_SITE_SUBDIR=	sources/${PORTNAME:S/2$//}/${PORTVERSION:C/..$//}
@@ -18,6 +18,8 @@
 MAINTAINER=	gnome at FreeBSD.org
 COMMENT=	GNOME glade library
 
+OPTIONS=	PYTHON	"Use Python"	on
+
 USE_BZIP2=	yes
 
 .if !defined(REFERENCE_PORT)
@@ -37,6 +39,8 @@
 PLIST_SUB=	XMLCATALOG="${LOCALBASE}/bin/xmlcatalog" \
 		CATALOG_PORTS_XML="${LOCALBASE}/share/xml/catalog.ports"
 
+.include <bsd.port.pre.mk>
+
 .if !defined(WITHOUT_PYTHON)
 BUILD_DEPENDS+=	${PYEXPAT}
 RUN_DEPENDS+=	${PYEXPAT}
@@ -54,6 +58,6 @@
 post-install:
 	${MKDIR} ${PREFIX}/lib/libglade/2.0
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
 
 .endif


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list