Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Feb 2009 14:04:41 -0800
From:      Timothy Beyer <beyert@cs.ucr.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Timothy Beyer <beyert@cs.ucr.edu>
Subject:   ports/131436: add options to port: math/gnumeric (perl and guile)
Message-ID:  <871vucv8ue.wl%beyert@cs.ucr.edu>
Resent-Message-ID: <200902052220.n15MK1AD021518@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         131436
>Category:       ports
>Synopsis:       add options to port: math/gnumeric (perl and guile)
>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:   Thu Feb 05 22:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Timothy Beyer
>Release:        FreeBSD 7.1-RELEASE-p2 i386
>Organization:
no organization
>Environment:
System: FreeBSD aeonserv.aeonnet 7.1-RELEASE-p2 FreeBSD 7.1-RELEASE-p2 #4: Sun Jan 25 21:45:5
3 PST 2009 beyert@aeonserv.aeonnet:/usr/obj/usr/src/sys/CUSTOM i386

>Description:
This patch makes the following changes:

-Add option to turn on/off guile scheme support (might as well enable it though)
-Add option to turn on/off perl support (on my system gnumeric does not compile when perl support is turned on)

The defaults have been unchanged (perl enabled, guile disabled) to avoid disrupting the compilation for users where it was already working properly.

>How-To-Repeat:
    Apply the patch
>Fix:
    The included patch

--- Makefile.diff begins here ---
--- Makefile.orig	2009-02-02 03:37:25.000000000 -0800
+++ Makefile	2009-02-05 14:02:51.000000000 -0800
@@ -8,7 +8,7 @@
 
 PORTNAME=	gnumeric
 PORTVERSION=	1.9.3
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	math gnome
 MASTER_SITES=	GNOME
 DIST_SUBDIR=	gnome2
@@ -21,7 +21,6 @@
 
 USE_BZIP2=	yes
 USE_GETTEXT=	yes
-USE_PERL5=	yes
 USE_GMAKE=	yes
 USE_GNOME=	gnomeprefix intlhack gnomehack gnomehier \
 		libgsf_gnome pygtk2 desktopfileutils libgnomeui
@@ -30,7 +29,7 @@
 USE_LDCONFIG=	yes
 INSTALLS_ICONS=	yes
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--without-guile --with-bonobo
+CONFIGURE_ARGS=	--with-bonobo
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
 		LIBS="-L${LOCALBASE}/lib -liconv ${PTHREAD_LIBS}" \
 		python_prog=${PYTHON_VERSION}
@@ -42,10 +41,25 @@
 
 PLIST_SUB=	VERSION=${PORTVERSION}
 
-OPTIONS=	GNOMEDB "Enable libgnomedb support" off
+OPTIONS=	GNOMEDB "Enable libgnomedb support" off \
+			PERL "Enable Perl as extension language" on \
+			GUILE "Enable Guile as extension language" off
 
 .include <bsd.port.pre.mk>
 
+.if defined(WITH_GUILE)
+LIB_DEPENDS+=	guile.19:${PORTSDIR}/lang/guile
+CONFIGURE_ARGS+=	--with-guile
+.else
+CONFIGURE_ARGS+=	--without-guile
+.endif
+
+.if defined(WITH_PERL)
+USE_PERL5=	yes
+.else
+CONFIGURE_ARGS+=	--without-perl
+.endif
+
 .if defined(WITH_GNOMEDB)
 USE_GNOME+=		libgnomedb
 CONFIGURE_ARGS+=	--with-gda
--- Makefile.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?871vucv8ue.wl%beyert>