Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Aug 2012 20:20:14 +0200
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        jgh@FreeBSD.org
Subject:   ports/170751: [MAINTAINER] graphics/viewnior: Makefile changed, OptionsNG for NLS
Message-ID:  <20120818182018.60C21106566B@hub.freebsd.org>
Resent-Message-ID: <201208181830.q7IIUBI4083246@freefall.freebsd.org>

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

>Number:         170751
>Category:       ports
>Synopsis:       [MAINTAINER] graphics/viewnior: Makefile changed, OptionsNG for NLS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 18 18:30:11 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.0-RC1 amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.0-RC1 FreeBSD 9.0-RC1 #0: Tue Oct 18 18:51:43 UTC 2011
>Description:

Makefile changed:

>From bsd.gnome.mk

glib20 and gtk20 use intltool and pkgconfig

-USE_GNOME=<--->glib20 gtk20 intltool pkgconfig
+USE_GNOME=<--->glib20 gtk20


Deleted INSTALL why isn't needed after Installation.

OptionsNG

New OptionsNG for NLS

.if ${PORT_OPTIONS:MDOCS}

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:

--- viewnior-1.3_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/graphics/viewnior/Makefile ./Makefile
--- /usr/ports/graphics/viewnior/Makefile	2012-05-02 13:38:46.000000000 +0200
+++ ./Makefile	2012-08-18 20:04:04.000000000 +0200
@@ -7,6 +7,7 @@
 
 PORTNAME=	viewnior
 PORTVERSION=	1.3
+PORTREVISION=	1
 CATEGORIES=	graphics
 MASTER_SITES=	http://cloud.github.com/downloads/xsisqox/Viewnior/
 
@@ -21,29 +22,32 @@
 GNU_CONFIGURE=	yes
 USE_AUTOTOOLS=	autoconf
 USE_GMAKE=	yes
-USE_GNOME=	glib20 gtk20 intltool pkgconfig
+USE_GNOME=	glib20 gtk20
 INSTALLS_ICONS=	yes
 
 MAN1=		viewnior.1
 
-PORTDOCS=	AUTHORS ChangeLog INSTALL NEWS README TODO
+PORTDOCS=	AUTHORS ChangeLog NEWS README TODO
 
-OPTIONS=	NLS		"Enable gettext support" on
+OPTIONS_DEFINE=	NLS
+NLS_DESC=	Native Language Support via gettext
+OPTIONS_DEFAULT=	NLS
 
 .include <bsd.port.options.mk>
 
-.if defined(WITHOUT_NLS)
-CONFIGURE_ARGS+=	--disable-nls
-PLIST_SUB+=	NLS="@comment "
-.else
+.if ${PORT_OPTIONS:MNLS}
 USE_GETTEXT=	yes
 PLIST_SUB+=	NLS=""
+.else
+CONFIGURE_ARGS+=	--disable-nls
+PLIST_SUB+=	NLS="@comment "
 .endif
 
 post-install:
 	${INSTALL_MAN} ${WRKSRC}/man/${MAN1} ${MAN1PREFIX}/man/man1
-# Documentations
-.if !defined(NOPORTDOCS)
+
+# Documentation
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${DOCSDIR}
 .  for f in ${PORTDOCS}
 	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
--- viewnior-1.3_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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