Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Mar 2016 09:49:18 +0000 (UTC)
From:      Koop Mast <kwm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r411829 - head/news/pan
Message-ID:  <201603250949.u2P9nI9d083633@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kwm
Date: Fri Mar 25 09:49:17 2016
New Revision: 411829
URL: https://svnweb.freebsd.org/changeset/ports/411829

Log:
  * Add gnutls options for SSL news servers (default on)
  * Make gettext optional.
  * Turn toolkit selection into a radio option.
  
  PR:		208165 (with minor tweaks)
  Submitted by:	cpet <freebsd@shotmail.ru>

Modified:
  head/news/pan/Makefile

Modified: head/news/pan/Makefile
==============================================================================
--- head/news/pan/Makefile	Fri Mar 25 09:40:48 2016	(r411828)
+++ head/news/pan/Makefile	Fri Mar 25 09:49:17 2016	(r411829)
@@ -4,7 +4,7 @@
 
 PORTNAME=	pan
 PORTVERSION=	0.139
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	news gnome
 MASTER_SITES=	http://pan.rebelbase.com/download/releases/${PORTVERSION}/source/
 DIST_SUBDIR=	gnome2
@@ -17,7 +17,7 @@ LICENSE=	GPLv2
 LIB_DEPENDS=	libpcre.so:${PORTSDIR}/devel/pcre \
 		libgmime-2.6.so:${PORTSDIR}/mail/gmime26
 
-USES=		gmake gettext iconv pathfix pkgconfig tar:bzip2
+USES=		gmake iconv pathfix pkgconfig tar:bzip2
 USE_GNOME=	intlhack
 USE_GCC=	any
 GNU_CONFIGURE=	yes
@@ -25,27 +25,29 @@ CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-static-libgcc -static-libstdc++ -L${LOCALBASE}/lib \
 		-lgnuregex ${ICONV_LIB}
 
-OPTIONS_DEFINE=	GTKSPELL GTK3
-OPTIONS_DEFAULT=GTKSPELL
+OPTIONS_DEFINE=	GTKSPELL GNUTLS NLS
+OPTIONS_RADIO= GTK
+OPTIONS_RADIO_GTK=	GTK2 GTK3
+OPTIONS_SUB=	yes
+OPTIONS_DEFAULT=GTKSPELL GNUTLS GTK2
 GTKSPELL_DESC=	Spell checking support (gtk+2 only)
-GTK3_DESC=	Use gtk+3 based UI instead of gtk+2
 
-.include <bsd.port.options.mk>
+GNUTLS_LIB_DEPENDS=	libgnutls.so:${PORTSDIR}/security/gnutls
+GNUTLS_USES=	pkgconfig
+GNUTLS_CONFIGURE_WITH=	gnutls
 
-.if ${PORT_OPTIONS:MGTK3}
-USE_GNOME+=	gtk30
-CONFIGURE_ARGS+=--with-gtk3
-.else
-USE_GNOME+=	gtk20
-CONFIGURE_ARGS+=--without-gtk3
-.endif
-
-.if !${PORT_OPTIONS:MGTKSPELL} || ${PORT_OPTIONS:MGTK3}
-CONFIGURE_ARGS+=	--without-gtkspell
-.else
-LIB_DEPENDS+=		libgtkspell.so:${PORTSDIR}/textproc/gtkspell
-CONFIGURE_ARGS+=	--with-gtkspell
-.endif
+GTK3_CONFIGURE_WITH=	gtk3
+GTK3_USE=	gnome=gtk30
+
+GTK2_USE=	gnome=gtk20
+
+GTKSPELL_LIB_DEPENDS=	libgtkspell.so:${PORTSDIR}/textproc/gtkspell
+GTKSPELL_CONFIGURE_WITH=	gtkspell
+
+GTK3_PREVENTS=	GTKSPELL
+
+NLS_USES=	gettext
+NLS_CONFIGURE_ENABLE=	nls
 
 post-patch:
 	@${FIND} ${WRKSRC} -name "Makefile.in"| ${XARGS} ${REINPLACE_CMD} -e \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603250949.u2P9nI9d083633>