aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2013-03-19 17:39:43 +0800
committerkwm <kwm@FreeBSD.org>2013-03-19 17:39:43 +0800
commitc3e347394b8a2d170aec4d27efeb7730915f6168 (patch)
tree8394b6c0568814783d0d31f37e45e08e3dc45e14 /math
parent7c74cdd8af1a0fcc235a03004611a4393785755c (diff)
downloadfreebsd-ports-gnome-c3e347394b8a2d170aec4d27efeb7730915f6168.tar.gz
freebsd-ports-gnome-c3e347394b8a2d170aec4d27efeb7730915f6168.tar.zst
freebsd-ports-gnome-c3e347394b8a2d170aec4d27efeb7730915f6168.zip
Convert to OptionsNG. trim header, use USES=pathfix instead of gnomehack.
Disable gnome option since it depends on libgsf_gnome which is deprecated.
Diffstat (limited to 'math')
-rw-r--r--math/gnumeric/Makefile40
1 files changed, 14 insertions, 26 deletions
diff --git a/math/gnumeric/Makefile b/math/gnumeric/Makefile
index c05c6a2ed86d..c207b06c8543 100644
--- a/math/gnumeric/Makefile
+++ b/math/gnumeric/Makefile
@@ -1,15 +1,11 @@
-# New ports collection makefile for: gnumeric
-# Date created: 08 October 1998
-# Whom: Yukihiro Nakai <Nakai@technologist.com>
-#
+# Created by: Yukihiro Nakai <Nakai@technologist.com>
# $FreeBSD$
# $MCom: ports-stable/math/gnumeric/Makefile,v 1.5 2010/06/29 11:24:22 kwm Exp $
-#
# When updating, remember to update pkg-plist of gchemutils.
PORTNAME= gnumeric
PORTVERSION= 1.10.17
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= math gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2
@@ -21,24 +17,23 @@ LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= rarian-sk-config:${PORTSDIR}/textproc/rarian
-LIB_DEPENDS= goffice-0.8.8:${PORTSDIR}/devel/goffice \
- psiconv.10:${PORTSDIR}/converters/psiconv
+LIB_DEPENDS= goffice-0.8:${PORTSDIR}/devel/goffice \
+ psiconv:${PORTSDIR}/converters/psiconv
RUN_DEPENDS= rarian-sk-config:${PORTSDIR}/textproc/rarian
USE_XZ= yes
USE_GETTEXT= yes
USE_GMAKE= yes
-USE_GNOME= gnomeprefix intlhack gnomehack gnomehier pygtk2 \
- desktopfileutils
-WANT_GNOME= yes
+USES= pathfix
+USE_GNOME= gnomeprefix intlhack gnomehier pygtk2 \
+ desktopfileutils libgsf
USE_PYTHON= yes
INSTALLS_OMF= yes
USE_LDCONFIG= yes
USE_CSTD= gnu89
-WANT_PERL= yes
INSTALLS_ICONS= yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-gnome --disable-silent-rules
+CONFIGURE_ARGS= --with-gnome=no --disable-silent-rules
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib -liconv ${PTHREAD_LIBS}" \
python_prog=${PYTHON_VERSION}
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
@@ -52,20 +47,13 @@ MAN1= gnumeric.1 ssconvert.1 ssindex.1 ssgrep.1
PLIST_SUB= VERSION=${PORTVERSION} GOFFICE=0.8.17
-OPTIONS= PERL "Enable Perl as extension language" on
-#GNOMEDB "Enable libgnomedb support" off
+OPTIONS_DEFINE= PERL
+OPTIONS_DEFAULT=PERL
+PERL_DESC= Support Perl as extension language
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if ${HAVE_GNOME:Mlibgnomeui}!=""
-CONFIGURE_ARGS+=--with-gnome=yes
-USE_GNOME+= libgnomeui libgsf_gnome
-.else
-CONFIGURE_ARGS+=--with-gnome=no
-USE_GNOME+= libgsf
-.endif
-
-.if defined(WITH_PERL)
+.if ${PORT_OPTIONS:MPERL}
USE_PERL5= yes
PLIST_SUB+= PERL=""
.else
@@ -97,4 +85,4 @@ post-install:
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/${dir}/gnumeric
.endfor
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>