Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Aug 2006 15:52:39 GMT
From:      "Timur I. Bakeyev" <timur@com.bat.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/102024: [UPDATE] misc/p5-I18N-Charset: Fix for the pkg-list, dependencies and code
Message-ID:  <200608141552.k7EFqd4l038359@www.freebsd.org>
Resent-Message-ID: <200608141600.k7EG0WGT090953@freefall.freebsd.org>

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

>Number:         102024
>Category:       ports
>Synopsis:       [UPDATE] misc/p5-I18N-Charset: Fix for the pkg-list, dependencies and code
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 14 16:00:32 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Timur I. Bakeyev
>Release:        FreeBSD 5.4-RELEASE
>Organization:
>Environment:
FreeBSD devil.blinck.com 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Tue Oct 18 10:05:03 CEST 2005     alexis@devil.blinck.com:/usr/src/sys/i386/compile/DEVIL  i386

>Description:
There are few minor problems with existing port:

1. Package list is wrong and 'make package' fails for the port
2. There is a build dependency on a IO::Capture::Stderr, which isn't listed in the port.
3. The way, how dos2unix conversion for the files is don is dangerous - running it twice eats legitimate characters from the end of the line.

All that problems are minor, but better to be fixed.

Sorry for sending shar instead of diff -u - my original version of the port had gone and it's not easy to restore in at the moment....
>How-To-Repeat:

>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       p5-I18N-Charset
#       p5-I18N-Charset/Makefile
#       p5-I18N-Charset/distinfo
#       p5-I18N-Charset/pkg-descr
#       p5-I18N-Charset/pkg-plist
#
echo c - p5-I18N-Charset
mkdir -p p5-I18N-Charset > /dev/null 2>&1
echo x - p5-I18N-Charset/Makefile
sed 's/^X//' >p5-I18N-Charset/Makefile << 'END-of-p5-I18N-Charset/Makefile'
X# New ports collection makefile for:    misc/p5-I18N-Charset
X# Date created:                        26 December 1999
X# Whom:                                Dmitry Sivachenko <dima@Chg.RU>
X#
X# $FreeBSD: ports/misc/p5-I18N-Charset/Makefile,v 1.21 2006/08/04 08:34:16 erwin Exp $
X#
X
XPORTNAME=      I18N-Charset
XPORTVERSION=   1.37.9
XCATEGORIES=    misc perl5
XMASTER_SITES=  ${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=    I18N
XPKGNAMEPREFIX= p5-
XDISTNAME=      ${PORTNAME}-${PORTVERSION:C/\.(.)$/\1/}
X
XMAINTAINER=    demon@FreeBSD.org
XCOMMENT=       Module which maps CharSet names to the names registered with IANA
X
XBUILD_DEPENDS= ${SITE_PERL}/IO/String.pm:${PORTSDIR}/devel/p5-IO-String \
X               ${SITE_PERL}/Unicode/MapUTF8.pm:${PORTSDIR}/converters/p5-Unicode-MapUTF8 \
X               ${SITE_PERL}/App/Info/Lib/Iconv.pm:${PORTSDIR}/devel/p5-App-Info
XRUN_DEPENDS=   ${BUILD_DEPENDS}
XBUILD_DEPENDS+=        ${SITE_PERL}/IO/Capture/Stderr.pm:${PORTSDIR}/devel/p5-IO-Capture
X
XPERL_CONFIGURE=        yes
X
XMAN3=          I18N::Charset.3
X
Xpost-patch:
X               @${PERL} -pi -e 's#\r$$##g' ${WRKSRC}/lib/I18N/Charset.pm
X               @${PERL} -pi -e 's#\r$$##g' ${WRKSRC}/lib/I18N/Charset/character-sets
X
X.include <bsd.port.mk>
END-of-p5-I18N-Charset/Makefile
echo x - p5-I18N-Charset/distinfo
sed 's/^X//' >p5-I18N-Charset/distinfo << 'END-of-p5-I18N-Charset/distinfo'
XMD5 (I18N-Charset-1.379.tar.gz) = eec7de0bf3eaa8cc6d7882b57091350d
XSHA256 (I18N-Charset-1.379.tar.gz) = a684f8ebe04b77c0ecae4443bd11dd525a309911ed939fdf811b1f9633f8b144
XSIZE (I18N-Charset-1.379.tar.gz) = 45196
END-of-p5-I18N-Charset/distinfo
echo x - p5-I18N-Charset/pkg-descr
sed 's/^X//' >p5-I18N-Charset/pkg-descr << 'END-of-p5-I18N-Charset/pkg-descr'
XThis distribution contains a module I18N::Charset which maps Character
XSet names to the names officially registered with IANA.  For example,
X'Shift_JIS' is the official name of 'x-sjis'.
X
XIt also maps character set names to Unicode::Map8 conversion scheme
Xnames (if Unicode::Map8 is installed).  For example, the Unicode::Map8
Xscheme name for 'windows-1251' is 'cp1251'.
X
XWWW: http://search.cpan.org/dist/I18N-Charset/
X
X--dima
Xdima@Chg.RU
END-of-p5-I18N-Charset/pkg-descr
echo x - p5-I18N-Charset/pkg-plist
sed 's/^X//' >p5-I18N-Charset/pkg-plist << 'END-of-p5-I18N-Charset/pkg-plist'
X%%SITE_PERL%%/I18N/Charset.pm
X%%SITE_PERL%%/I18N/Charset/character-sets
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/I18N/Charset/.packlist
X@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/I18N/Charset
X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/I18N
X@dirrmtry %%SITE_PERL%%/I18N/Charset
X@dirrmtry %%SITE_PERL%%/I18N
END-of-p5-I18N-Charset/pkg-plist
exit


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



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