Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jun 2013 19:37:48 +0200
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        pawel@FreeBSD.org
Subject:   ports/179779: [PATCH] x11-themes/lxappearance: Add NLS Option, docs
Message-ID:  <20130620173756.CB246D43@hub.freebsd.org>
Resent-Message-ID: <201306201740.r5KHe09V085731@freefall.freebsd.org>

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

>Number:         179779
>Category:       ports
>Synopsis:       [PATCH] x11-themes/lxappearance: Add NLS Option, docs
>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:   Thu Jun 20 17:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.1-RELEASE-p8 amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.1-RELEASE-p8 FreeBSD 9.1-RELEASE-p8 #0: Tue Jun 18 15:25:28 UTC 2013
>Description:

- Remove leading article from COMMENT
- Add docs
- Add NLS Option
- Fix NLS
- Trim pkg-plist

Port maintainer (pawel@FreeBSD.org) is cc'd.

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:
>Fix:

--- lxappearance-0.5.2_1.patch begins here ---
diff -ruN /usr/ports/x11-themes/lxappearance/Makefile ./Makefile
--- /usr/ports/x11-themes/lxappearance/Makefile	2013-06-02 18:57:02.000000000 +0200
+++ ./Makefile	2013-06-20 19:14:28.000000000 +0200
@@ -8,20 +8,42 @@
 MASTER_SITES=	SF/lxde/LXAppearance
 
 MAINTAINER=	pawel@FreeBSD.org
-COMMENT=	A desktop-independent theme switcher for GTK+
+COMMENT=	Desktop-independent theme switcher for GTK+
 
 LICENSE=	GPLv2
 
 USE_GNOME=	gnomehack gtk20 intlhack
-USES=		gettext
-USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
+USE_GMAKE=	yes
 MAKE_JOBS_SAFE=	yes
 
 MAN1=		lxappearance.1
 
+PORTDOCS=	AUTHORS README
+
+OPTIONS_DEFINE=	NLS
+
 .include <bsd.port.pre.mk>
 
+.if ${PORT_OPTIONS:MNLS}
+USES+=		gettext
+PLIST_SUB+=	NLS=""
+.else
+PLIST_SUB+=	NLS="@comment "
+.endif
+
+post-patch:
+.if ! ${PORT_OPTIONS:MNLS}
+	@${REINPLACE_CMD} -e 's|man po|man|' \
+		${WRKSRC}/Makefile.in
+.endif
+
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+		${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
+
 # earlier versions don't have mkdtemp(3) in stdlib.h
 .if ${OSVERSION} < 800000
 EXTRA_PATCHES+=	${FILESDIR}/extra-src-utils.c
diff -ruN /usr/ports/x11-themes/lxappearance/pkg-plist ./pkg-plist
--- /usr/ports/x11-themes/lxappearance/pkg-plist	2013-06-02 18:57:02.000000000 +0200
+++ ./pkg-plist	2013-06-20 18:47:51.000000000 +0200
@@ -2,59 +2,59 @@
 include/lxappearance/lxappearance.h
 libdata/pkgconfig/lxappearance.pc
 share/applications/lxappearance.desktop
-share/locale/ar/LC_MESSAGES/lxappearance.mo
-share/locale/be/LC_MESSAGES/lxappearance.mo
-share/locale/bg/LC_MESSAGES/lxappearance.mo
-share/locale/cs/LC_MESSAGES/lxappearance.mo
-share/locale/da/LC_MESSAGES/lxappearance.mo
-share/locale/de/LC_MESSAGES/lxappearance.mo
-share/locale/el/LC_MESSAGES/lxappearance.mo
-share/locale/en_GB/LC_MESSAGES/lxappearance.mo
-share/locale/es/LC_MESSAGES/lxappearance.mo
-share/locale/et/LC_MESSAGES/lxappearance.mo
-share/locale/fa/LC_MESSAGES/lxappearance.mo
-share/locale/fi/LC_MESSAGES/lxappearance.mo
-share/locale/fo/LC_MESSAGES/lxappearance.mo
-share/locale/fr/LC_MESSAGES/lxappearance.mo
-share/locale/gl/LC_MESSAGES/lxappearance.mo
-share/locale/he/LC_MESSAGES/lxappearance.mo
-share/locale/hr/LC_MESSAGES/lxappearance.mo
-share/locale/hu/LC_MESSAGES/lxappearance.mo
-share/locale/id/LC_MESSAGES/lxappearance.mo
-share/locale/it/LC_MESSAGES/lxappearance.mo
-share/locale/ja/LC_MESSAGES/lxappearance.mo
-share/locale/kk/LC_MESSAGES/lxappearance.mo
-share/locale/ko/LC_MESSAGES/lxappearance.mo
-share/locale/lg/LC_MESSAGES/lxappearance.mo
-share/locale/lt/LC_MESSAGES/lxappearance.mo
-share/locale/nl/LC_MESSAGES/lxappearance.mo
-share/locale/pa/LC_MESSAGES/lxappearance.mo
-share/locale/pl/LC_MESSAGES/lxappearance.mo
-share/locale/pt/LC_MESSAGES/lxappearance.mo
-share/locale/pt_BR/LC_MESSAGES/lxappearance.mo
-share/locale/ro/LC_MESSAGES/lxappearance.mo
-share/locale/ru/LC_MESSAGES/lxappearance.mo
-share/locale/sl/LC_MESSAGES/lxappearance.mo
-share/locale/sr/LC_MESSAGES/lxappearance.mo
-share/locale/sr@latin/LC_MESSAGES/lxappearance.mo
-share/locale/sv/LC_MESSAGES/lxappearance.mo
-share/locale/te/LC_MESSAGES/lxappearance.mo
-share/locale/tr/LC_MESSAGES/lxappearance.mo
-share/locale/tt_RU/LC_MESSAGES/lxappearance.mo
-share/locale/ug/LC_MESSAGES/lxappearance.mo
-share/locale/uk/LC_MESSAGES/lxappearance.mo
-share/locale/vi/LC_MESSAGES/lxappearance.mo
-share/locale/zh_CN/LC_MESSAGES/lxappearance.mo
-share/locale/zh_TW/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/ar/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/be/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/bg/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/da/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/de/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/el/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/en_GB/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/es/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/et/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/fa/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/fo/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/gl/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/he/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/hr/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/id/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/it/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/kk/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/ko/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/lg/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/lt/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/pa/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/pt/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/ro/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/sl/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/sr/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/sr@latin/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/te/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/tt_RU/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/ug/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/vi/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/lxappearance.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/lxappearance.mo
 %%DATADIR%%/ui/about.ui
 %%DATADIR%%/ui/lxappearance.ui
-@dirrmtry share/locale/fo/LC_MESSAGES
-@dirrmtry share/locale/fo
-@dirrmtry share/locale/lg/LC_MESSAGES
-@dirrmtry share/locale/lg
-@dirrmtry share/locale/tt_RU/LC_MESSAGES
-@dirrmtry share/locale/tt_RU
 @dirrm %%DATADIR%%/ui
 @dirrm %%DATADIR%%
-@dirrm include/lxappearance
+%%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/fo/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/fo
 @dirrmtry share/applications
+@dirrm include/lxappearance
--- lxappearance-0.5.2_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?20130620173756.CB246D43>