Subject: pkg/32851: gnumeric needs options to config perl/python plugins
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <ggm@pobox.com>
List: pkgsrc-bugs
Date: 02/16/2006 04:30:01
>Number: 32851
>Category: pkg
>Synopsis: gnumeric needs options to control perl/python plugins
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Feb 16 04:30:00 +0000 2006
>Originator: George Michaelson
>Release: NetBSD 3.99.15
>Organization:
George Michaelson | APNIC
Email: ggm@apnic.net | PO Box 2131 Milton
Phone: +61 7 3858 3150 | QLD 4064 Australia
Fax: +61 7 3858 3199 | http://www.apnic.net
>Environment:
System: NetBSD garlic.apnic.net 3.99.15 NetBSD 3.99.15 (GGMSMALL) #0: Thu Feb 9 14:35:52 EST 2006 ggm@garlic.apnic.net:/data/Build/obj/usr/src/sys/arch/i386/compile/GGMSMALL i386
Architecture: i386
Machine: i386
>Description:
gnumeric isn't compiling against perl right now, perl has
changed a shared lib dependency which isn't satisfied at
compile time. but in any case, gnumeric shouldn't HAVE to
be made with either the python or the perl plugin. so I
have added PKG_OPTIONS.gnumeric values to make them
configurable, and for now, made --without-perl the default.
>How-To-Repeat:
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/math/gnumeric/Makefile,v
retrieving revision 1.105
diff -u -p -r1.105 Makefile
--- Makefile 5 Feb 2006 23:10:02 -0000 1.105
+++ Makefile 16 Feb 2006 04:24:07 -0000
@@ -17,8 +17,24 @@ USE_PKGLOCALEDIR= YES
USE_TOOLS+= gmake perl:run pkg-config
USE_LIBTOOL= YES
+PKG_OPTIONS_VAR= PKG_OPTIONS.gnumeric
+PKG_SUPPORTED_OPTIONS= gnumeric-with-python gnumeric-with-perl
+PKG_SUGGESTED_OPTIONS= gnumeric-with-python
+
+.include "../../mk/bsd.options.mk"
+
+.if empty(PKG_OPTIONS:Mgnumeric-with-python)
+CONFIGURE_ARGS+= --without-python
+.else
+CONFIGURE_ARGS+= --with-python
+.endif
+.if empty(PKG_OPTIONS:Mgnumeric-with-perl)
+CONFIGURE_ARGS+= --without-perl
+.else
+CONFIGURE_ARGS+= --with-perl
+.endif
+
GNU_CONFIGURE= YES
-CONFIGURE_ARGS+= --with-python
CONFIGURE_ENV+= PYTHON=${PYTHONBIN:Q}
PYTHON_VERSIONS_ACCEPTED= 24 23
GCONF2_SCHEMAS= gnumeric-dialogs.schemas gnumeric-general.schemas \
>Unformatted: