Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Mar 2002 01:28:01 +0100 (CET)
From:      Thierry Thomas <thierry@pompo.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        petef@FreeBSD.org
Subject:   ports/36351: news/slrn: adding localization + dependencies
Message-ID:  <20020327002801.731A3750E@graf.pompo.net>

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

>Number:         36351
>Category:       ports
>Synopsis:       news/slrn: adding localization + dependencies
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 26 16:30:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Thierry Thomas
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD graf.pompo.net 4.5-STABLE FreeBSD 4.5-STABLE #0: Sat Mar 9 11:54:44 CET 2002 root@graf.pompo.net:/usr/obj/mntsrc/src/sys/GRAF010429 i386


	
>Description:
	The port does not detect neither libintl nor libiconv at configure,
	and it does not install the .mo files.

>How-To-Repeat:
	- make configure and look at config.log;
	- make install and run with LC_ALL set within (da, de, fr, es, ...)
	  => slrn is still in english.

>Fix:

	Apply the following patch:


diff -urN /usr/ports/news/slrn.orig/Makefile /usr/ports/news/slrn/Makefile
--- /usr/ports/news/slrn.orig/Makefile	Tue Mar 26 22:13:49 2002
+++ /usr/ports/news/slrn/Makefile	Wed Mar 27 01:13:06 2002
@@ -19,13 +19,18 @@
 
 MAINTAINER=	petef@FreeBSD.org
 
-LIB_DEPENDS=	slang.1:${PORTSDIR}/devel/libslang
+LIB_DEPENDS=	slang.1:${PORTSDIR}/devel/libslang	\
+		intl.1:${PORTSDIR}/devel/gettext	\
+		iconv.3:${PORTSDIR}/converters/libiconv
 
 USE_BZIP2=	yes
 USE_GMAKE=	yes
 
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--enable-ipv6 --disable-inews --with-slrnpull
+CONFIGURE_ARGS=	--enable-ipv6 --disable-inews --with-slrnpull	\
+		--with-libiconv-prefix=${LOCALBASE}		\
+		--with-localedir=${LOCALBASE}/share/locale
+CONFIGURE_ENV=	CFLAGS="${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib"
 
 .if !defined(WITHOUT_SSL)
 USE_OPENSSL=	YES
@@ -46,6 +51,7 @@
 	@${MKDIR} ${PREFIX}/share/examples/slrn
 	${INSTALL_DATA} ${WRKSRC}/doc/slrn.rc ${PREFIX}/share/examples/slrn
 	@${MKDIR} ${PREFIX}/share/examples/slrn/slrnpull
+	(cd ${WRKSRC}/po; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install)
 .for file in FAQ README SETUP score slrn.rc slrnpull.conf slrnpull.sh
 	${INSTALL_DATA} ${WRKSRC}/doc/slrnpull/${file} ${PREFIX}/share/examples/slrn/slrnpull
 .endfor
diff -urN /usr/ports/news/slrn.orig/pkg-plist /usr/ports/news/slrn/pkg-plist
--- /usr/ports/news/slrn.orig/pkg-plist	Sun Nov 25 21:46:35 2001
+++ /usr/ports/news/slrn/pkg-plist	Wed Mar 27 01:18:06 2002
@@ -8,6 +8,15 @@
 share/examples/slrn/slrnpull/slrn.rc
 share/examples/slrn/slrnpull/slrnpull.conf
 share/examples/slrn/slrnpull/slrnpull.sh
+share/locale/da/LC_MESSAGES/slrn.mo
+share/locale/de/LC_MESSAGES/slrn.mo
+share/locale/es/LC_MESSAGES/slrn.mo
+share/locale/fr/LC_MESSAGES/slrn.mo
+share/locale/it/LC_MESSAGES/slrn.mo
+share/locale/ko/LC_MESSAGES/slrn.mo
+share/locale/nl/LC_MESSAGES/slrn.mo
+share/locale/pl/LC_MESSAGES/slrn.mo
+share/locale/ru/LC_MESSAGES/slrn.mo
 %%PORTDOCS%%share/doc/slrn/FAQ
 %%PORTDOCS%%share/doc/slrn/README.GroupLens
 %%PORTDOCS%%share/doc/slrn/README.SSL
@@ -23,3 +32,12 @@
 %%PORTDOCS%%@dirrm share/doc/slrn
 @dirrm share/examples/slrn/slrnpull
 @dirrm share/examples/slrn
+@dirrm share/locale/da/LC_MESSAGES
+@dirrm share/locale/de/LC_MESSAGES
+@dirrm share/locale/es/LC_MESSAGES
+@dirrm share/locale/fr/LC_MESSAGES
+@dirrm share/locale/it/LC_MESSAGES
+@dirrm share/locale/ko/LC_MESSAGES
+@dirrm share/locale/nl/LC_MESSAGES
+@dirrm share/locale/pl/LC_MESSAGES
+@dirrm share/locale/ru/LC_MESSAGES


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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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