Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Dec 2013 12:51:40 +0100
From:      Zsolt Udvari <udvzsolt@gmail.com>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        udvzsolt@gmail.com
Subject:   ports/185289: www/newsbeuter stage support, nls and podbeuter option
Message-ID:  <52c15e62.456c0e0a.0893.42a6@mx.google.com>
Resent-Message-ID: <201312301200.rBUC00nA071880@freefall.freebsd.org>

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

>Number:         185289
>Category:       ports
>Synopsis:       www/newsbeuter stage support, nls and podbeuter option
>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:   Mon Dec 30 12:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Zsolt Udvari
>Release:        FreeBSD 9.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD bsd-zsolt 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013 root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
www/newsbeuter support STAGEDIR (its Makefile uses DESTDIR), can build package as regular user (non-root).
Introduced NLS option support and PODCASTER option (install or not podbeuter-releated stuffs).
>How-To-Repeat:
>Fix:

--- newsbeuter-stage-nls.patch begins here ---
diff -ur /usr/ports/www/newsbeuter/Makefile newsbeuter/Makefile
--- /usr/ports/www/newsbeuter/Makefile	2013-11-09 16:57:18.000000000 +0100
+++ newsbeuter/Makefile	2013-12-30 12:39:33.000000000 +0100
@@ -17,15 +17,29 @@
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		gettext iconv ncurses gmake pkgconfig perl5
+OPTIONS_DEFINE= PODCAST
+PODCAST_DESC=	Podcast client (podbeuter)
+
+USES=		iconv ncurses gmake pkgconfig perl5
 USE_PERL5=	build
 USE_SQLITE=	yes
 USE_GNOME=	libxml2
 USE_GCC=	any
 
-MAN1=	newsbeuter.1 podbeuter.1
+.include  <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+PLIST_SUB+=	NLS=""
+USES+=gettext
+.else
+PLIST_SUB+= NLS="@comment "
+.endif
 
-NO_STAGE=	yes
+.if ${PORT_OPTIONS:MPODCAST}
+PLIST_SUB+=	PODCAST=""
+.else
+PLIST_SUB+=	PODCAST="@comment "
+.endif
 
 post-patch:
 	${REINPLACE_CMD} -e "s,share/man,man,; \
diff -ur /usr/ports/www/newsbeuter/pkg-plist newsbeuter/pkg-plist
--- /usr/ports/www/newsbeuter/pkg-plist	2013-04-02 12:02:19.000000000 +0200
+++ newsbeuter/pkg-plist	2013-12-30 12:40:19.000000000 +0100
@@ -1,23 +1,25 @@
 bin/newsbeuter
-bin/podbeuter
-share/locale/de/LC_MESSAGES/newsbeuter.mo
-share/locale/es/LC_MESSAGES/newsbeuter.mo
-share/locale/es_ES/LC_MESSAGES/newsbeuter.mo
-share/locale/fr/LC_MESSAGES/newsbeuter.mo
-share/locale/hu/LC_MESSAGES/newsbeuter.mo
-share/locale/it/LC_MESSAGES/newsbeuter.mo
-share/locale/nb/LC_MESSAGES/newsbeuter.mo
-share/locale/nl/LC_MESSAGES/newsbeuter.mo
-share/locale/pl/LC_MESSAGES/newsbeuter.mo
-share/locale/pt_BR/LC_MESSAGES/newsbeuter.mo
-share/locale/ru/LC_MESSAGES/newsbeuter.mo
-share/locale/sv/LC_MESSAGES/newsbeuter.mo
-share/locale/tr/LC_MESSAGES/newsbeuter.mo
-share/locale/uk/LC_MESSAGES/newsbeuter.mo
-share/locale/zh/LC_MESSAGES/newsbeuter.mo
-share/locale/zh_TW/LC_MESSAGES/newsbeuter.mo
+%%PODCAST%%bin/podbeuter
+%%NLS%%share/locale/de/LC_MESSAGES/newsbeuter.mo
+%%NLS%%share/locale/es/LC_MESSAGES/newsbeuter.mo
+%%NLS%%share/locale/es_ES/LC_MESSAGES/newsbeuter.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/newsbeuter.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/newsbeuter.mo
+%%NLS%%share/locale/it/LC_MESSAGES/newsbeuter.mo
+%%NLS%%share/locale/nb/LC_MESSAGES/newsbeuter.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/newsbeuter.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/newsbeuter.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/newsbeuter.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/newsbeuter.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/newsbeuter.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/newsbeuter.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/newsbeuter.mo
+%%NLS%%share/locale/zh/LC_MESSAGES/newsbeuter.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/newsbeuter.mo
 share/doc/newsbeuter/docbook-xsl.css
 share/doc/newsbeuter/newsbeuter.html
 share/doc/newsbeuter/examples/config
+man/man1/newsbeuter.1.gz
+%%PODCAST%%man/man1/podbeuter.1.gz
 @dirrm share/doc/newsbeuter/examples
 @dirrm share/doc/newsbeuter
--- newsbeuter-stage-nls.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?52c15e62.456c0e0a.0893.42a6>