ports/126771: net/silc-client should enable perl and international character support

Matt freebsdbugs at fjarlq.com
Sat Aug 23 21:30:02 UTC 2008


>Number:         126771
>Category:       ports
>Synopsis:       net/silc-client should enable perl and international character support
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 23 21:30:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Matt
>Release:        
>Organization:
>Environment:
>Description:
The SILC client has very good support for perl modules and international characters but the FreeBSD port does not offer those compilation options. The attached patch makes those options available. I have tested it on FreeBSD 6.1, amd64.
>How-To-Repeat:

>Fix:
See attached patch.

Patch attached with submission follows:

--- net/silc-client/Makefile.orig	Thu Aug 21 13:20:10 2008
+++ net/silc-client/Makefile	Thu Aug 21 13:21:11 2008
@@ -32,11 +32,12 @@
 USE_GNOME=	glib12
 USE_GMAKE=	yes
 CONFIGURE_ARGS=	--docdir=${DOCSDIR} \
-		--with-perl=no \
 		--without-libtoolfix
 
 OPTIONS=	PTHREADS "Enable pthreads support" off \
 		IPV6 "Enable IPv6 support" on \
+		ICONV "Enable international character support" on \
+		PERL "Enable perl support" on \
 		OPTIMIZED_ASM "Use assembler optimizations (i386 only)" on
 
 .ifdef(IRSSI_PLUGIN)
@@ -80,6 +81,23 @@
 
 .if defined(WITHOUT_IPV6)
 CONFIGURE_ARGS+=	--disable-ipv6
+.endif
+
+.if defined(WITH_ICONV)
+USE_ICONV=		yes
+CONFIGURE_ARGS+=	--with-iconv
+.else
+CONFIGURE_ARGS+=	--without-iconv
+.endif
+
+.if defined(WITH_PERL)
+USE_PERL5=		yes
+PERL_ARCHNAME!=		${PERL} -V:archname 2>/dev/null || true
+PLIST_SUB+=		WITH_PERL="" PERL_ARCHNAME=${PERL_ARCHNAME:S/archname='//:S/';//}
+CONFIGURE_ARGS+=	--with-perl-lib=${PREFIX}/lib/${PORTNAME}/perl
+.else
+CONFIGURE_ARGS+=	--without-perl
+PLIST_SUB+=		WITH_PERL="@comment "
 .endif
 
 .if defined(WITHOUT_OPTIMIZED_ASM)
--- net/silc-client/pkg-plist.orig	Sun Jul 15 19:08:16 2007
+++ net/silc-client/pkg-plist	Wed Aug 20 15:33:37 2008
@@ -1,4 +1,21 @@
 bin/silc
+%%WITH_PERL%%lib/silc/perl/%%PERL_ARCHNAME%%/Irssi.pm
+%%WITH_PERL%%lib/silc/perl/%%PERL_ARCHNAME%%/Irssi/Silc.pm
+%%WITH_PERL%%lib/silc/perl/%%PERL_ARCHNAME%%/Irssi/TextUI.pm
+%%WITH_PERL%%lib/silc/perl/%%PERL_ARCHNAME%%/Irssi/UI.pm
+%%WITH_PERL%%lib/silc/perl/%%PERL_ARCHNAME%%/auto/Irssi/.packlist
+%%WITH_PERL%%lib/silc/perl/%%PERL_ARCHNAME%%/auto/Irssi/Irssi.bs
+%%WITH_PERL%%lib/silc/perl/%%PERL_ARCHNAME%%/auto/Irssi/Irssi.so
+%%WITH_PERL%%lib/silc/perl/%%PERL_ARCHNAME%%/auto/Irssi/Silc/.packlist
+%%WITH_PERL%%lib/silc/perl/%%PERL_ARCHNAME%%/auto/Irssi/Silc/Silc.bs
+%%WITH_PERL%%lib/silc/perl/%%PERL_ARCHNAME%%/auto/Irssi/Silc/Silc.so
+%%WITH_PERL%%lib/silc/perl/%%PERL_ARCHNAME%%/auto/Irssi/TextUI/.packlist
+%%WITH_PERL%%lib/silc/perl/%%PERL_ARCHNAME%%/auto/Irssi/TextUI/TextUI.bs
+%%WITH_PERL%%lib/silc/perl/%%PERL_ARCHNAME%%/auto/Irssi/TextUI/TextUI.so
+%%WITH_PERL%%lib/silc/perl/%%PERL_ARCHNAME%%/auto/Irssi/UI/.packlist
+%%WITH_PERL%%lib/silc/perl/%%PERL_ARCHNAME%%/auto/Irssi/UI/UI.bs
+%%WITH_PERL%%lib/silc/perl/%%PERL_ARCHNAME%%/auto/Irssi/UI/UI.so
+%%WITH_PERL%%lib/silc/perl/%%PERL_ARCHNAME%%/perllocal.pod
 %%DATADIR%%/help/action
 %%DATADIR%%/help/admin
 %%DATADIR%%/help/alias
@@ -108,6 +125,15 @@
 @unexec if cmp -s %D/etc/silc.conf.sample %D/etc/silc.conf; then rm -f %D/etc/silc.conf; fi
 etc/silc.conf.sample
 @exec if [ ! -f %D/etc/silc.conf ] ; then cp -p %D/%F %B/silc.conf; fi
+%%WITH_PERL%%@dirrm lib/silc/perl/%%PERL_ARCHNAME%%/auto/Irssi/Silc
+%%WITH_PERL%%@dirrm lib/silc/perl/%%PERL_ARCHNAME%%/auto/Irssi/TextUI
+%%WITH_PERL%%@dirrm lib/silc/perl/%%PERL_ARCHNAME%%/auto/Irssi/UI
+%%WITH_PERL%%@dirrm lib/silc/perl/%%PERL_ARCHNAME%%/auto/Irssi
+%%WITH_PERL%%@dirrm lib/silc/perl/%%PERL_ARCHNAME%%/auto
+%%WITH_PERL%%@dirrm lib/silc/perl/%%PERL_ARCHNAME%%/Irssi
+%%WITH_PERL%%@dirrm lib/silc/perl/%%PERL_ARCHNAME%%
+%%WITH_PERL%%@dirrm lib/silc/perl
+ at dirrmtry lib/silc
 @dirrm %%DATADIR%%/themes
 @dirrm %%DATADIR%%/help
 @dirrm %%DATADIR%%/scripts


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



More information about the freebsd-ports-bugs mailing list