ports/131436: add options to port: math/gnumeric (perl and guile)
Timothy Beyer
beyert at cs.ucr.edu
Thu Feb 5 22:20:08 UTC 2009
>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 at 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:
More information about the freebsd-ports-bugs
mailing list