ports/179698: [PATCH] x11-wm/lxsession: Add NLS option and fix, take maintainership

nemysis nemysis at gmx.ch
Wed Jun 19 01:40:00 UTC 2013


>Number:         179698
>Category:       ports
>Synopsis:       [PATCH] x11-wm/lxsession: Add NLS option and fix, take maintainership
>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:   Wed Jun 19 01:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.1-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:27:25 UTC 2013
>Description:

- Take maintainership
- Add Portscout
- Add NLS Option
- Fix NLS
- Trim pkg-plist

Generated and tested manually, tested with port test and with RedPorts, sent with FreeBSD Port Tools 0.99_7 (mode: change, diff: ports)
>How-To-Repeat:

Build log

https://redports.org/buildarchive/20130619004001-36513/

Add because not build, bad code

PORTSCOUT=<--->skipv:0.4.9.2

>Fix:

--- lxsession-0.4.6.1_1.patch begins here ---
diff -ruN /usr/ports/x11-wm/lxsession/Makefile ./Makefile
--- /usr/ports/x11-wm/lxsession/Makefile	2013-06-18 18:26:42.000000000 +0200
+++ ./Makefile	2013-06-19 02:38:12.000000000 +0200
@@ -7,7 +7,7 @@
 CATEGORIES=	x11-wm
 MASTER_SITES=	SF/lxde/LXSession%20%28session%20manager%29/LXSession%20${PORTVERSION}
 
-MAINTAINER=	ports at FreeBSD.org
+MAINTAINER=	nemysis at gmx.ch
 COMMENT=	LXDE Session Manager
 
 LIB_DEPENDS=	hal.1:${PORTSDIR}/sysutils/hal
@@ -27,14 +27,23 @@
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
+PORTSCOUT=	skipv:0.4.9.2
+
+OPTIONS_DEFINE=	NLS
+
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MNLS}
 USES+=		gettext
 PLIST_SUB+=	NLS=""
 .else
-CONFIGURE_ARGS+=--disable-nls
 PLIST_SUB+=	NLS="@comment "
 .endif
 
+post-patch:
+.if ! ${PORT_OPTIONS:MNLS}
+	@${REINPLACE_CMD} -e 's|po man|man|' \
+		${WRKSRC}/Makefile.in
+.endif
+
 .include <bsd.port.mk>
diff -ruN /usr/ports/x11-wm/lxsession/pkg-plist ./pkg-plist
--- /usr/ports/x11-wm/lxsession/pkg-plist	2013-06-02 18:56:46.000000000 +0200
+++ ./pkg-plist	2013-06-19 02:35:21.000000000 +0200
@@ -46,9 +46,9 @@
 %%NLS%%share/locale/pt_BR/LC_MESSAGES/lxsession.mo
 %%NLS%%share/locale/ro/LC_MESSAGES/lxsession.mo
 %%NLS%%share/locale/ru/LC_MESSAGES/lxsession.mo
-%%NLS%%share/locale/sl/LC_MESSAGES/lxsession.mo
 %%NLS%%share/locale/si/LC_MESSAGES/lxsession.mo
 %%NLS%%share/locale/sk/LC_MESSAGES/lxsession.mo
+%%NLS%%share/locale/sl/LC_MESSAGES/lxsession.mo
 %%NLS%%share/locale/sr/LC_MESSAGES/lxsession.mo
 %%NLS%%share/locale/sr at latin/LC_MESSAGES/lxsession.mo
 %%NLS%%share/locale/sv/LC_MESSAGES/lxsession.mo
@@ -70,31 +70,13 @@
 %%DATADIR%%/images/system-shutdown.png
 @dirrm %%DATADIR%%/images
 @dirrm %%DATADIR%%
- at dirrmtry share/locale/ast/LC_MESSAGES
- at dirrmtry share/locale/ast
- at dirrmtry share/locale/bn_IN/LC_MESSAGES
- at dirrmtry share/locale/bn_IN
- at dirrmtry share/locale/es_VE/LC_MESSAGES
- at dirrmtry share/locale/es_VE
- at dirrmtry share/locale/fo/LC_MESSAGES
- at dirrmtry share/locale/fo
- at dirrmtry share/locale/frp/LC_MESSAGES
- at dirrmtry share/locale/frp
- at dirrmtry share/locale/lg/LC_MESSAGES
- at dirrmtry share/locale/lg
- at dirrmtry share/locale/ps/LC_MESSAGES
- at dirrmtry share/locale/ps
- at dirrmtry share/locale/si/LC_MESSAGES
- at dirrmtry share/locale/si
- at dirrmtry share/locale/sr at latin/LC_MESSAGES
- at dirrmtry share/locale/sr at latin
- at dirrmtry share/locale/te/LC_MESSAGES
- at dirrmtry share/locale/te
- at dirrmtry share/locale/tt_RU/LC_MESSAGES
- at dirrmtry share/locale/tt_RU
- at dirrmtry share/locale/ur_PK/LC_MESSAGES
- at dirrmtry share/locale/ur_PK
- at dirrmtry share/locale/ur/LC_MESSAGES
- at dirrmtry share/locale/ur
- at dirrmtry share/locale/vi/LC_MESSAGES
- at dirrmtry share/locale/vi
+%%NLS%%@dirrmtry share/locale/ur_PK/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/ur_PK
+%%NLS%%@dirrmtry share/locale/tt_RU/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/tt_RU
+%%NLS%%@dirrmtry share/locale/lg/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/lg
+%%NLS%%@dirrmtry share/locale/frp/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/frp
+%%NLS%%@dirrmtry share/locale/es_VE/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/es_VE
--- lxsession-0.4.6.1_1.patch ends here ---

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


More information about the freebsd-ports-bugs mailing list