From owner-freebsd-ports Sun Aug 4 0:58:39 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27A2A37B40C; Sun, 4 Aug 2002 00:58:35 -0700 (PDT) Received: from t-online.fr (mail2.in.t-online.fr [213.44.120.47]) by mx1.FreeBSD.org (Postfix) with ESMTP id F12CC43E70; Sun, 4 Aug 2002 00:58:33 -0700 (PDT) (envelope-from mat@mat.cc) Received: from t-online.fr (localhost [127.0.0.1]) by localhost.in.t-online.fr (Postfix) with ESMTP id 0FB4848FB; Sun, 4 Aug 2002 09:58:31 +0200 (CEST) Received: from tot.in.t-online.fr (tot.in.t-online.fr [213.44.126.50]) by t-online.fr (Postfix) with ESMTP id A72B748F8; Sun, 4 Aug 2002 09:58:30 +0200 (CEST) Date: Sun, 04 Aug 2002 09:59:38 +0200 From: Mathieu Arnold To: Anton Berezin , FreeBSD-gnats-submit@FreeBSD.org Cc: freebsd-ports@FreeBSD.org Subject: Re: ports/41265: New port: textproc/p5-Text-Reflow Message-ID: <57402182.1028455178@tot.in.t-online.fr> In-Reply-To: <20020803201621.GA64293@heechee.tobez.org> References: <200208030730.g737U4aF008187@freefall.freebsd.org> <20020803201621.GA64293@heechee.tobez.org> X-Mailer: Mulberry/3.0.0a3 (Win32) X-wazaaa: True, true MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --On samedi 3 ao=FBt 2002 22:16 +0200 Anton Berezin = wrote: > On Sat, Aug 03, 2002 at 12:30:04AM -0700, Mathieu Arnold wrote: >=20 >> just found out that it "require 5.005_62" >> =20 >> what is the best way to test the perl version ? >=20 > At the moment the best way is to make absolutely sure that the port in > question indeed requires perl 5.6 or above. A lot of perl modules that > require 5.005_62 do that for unimportant reasons like using `our' > instead of `use vars', using `use warnings', and ...oh well, that's > about it, I think. Such things can be trivially patched, even by > oneliners in the port's Makefile. Some examples: >=20 > textproc/p5-Text-FixedLength-Extra > www/p5-WWW-Automate > databases/p5-GraphViz-DBI >=20 > If this is not the case, and the module indeed requires more substantial > modifications to make it work with 5.005_03 (for example, some extended > operations with fields.pm, the use of @+ and @- magic arrays, unicode > stuff), the solution similar to the one you propose should work. I can't be absolutly sure, the .xs is not even compiling (for a reason behind my knowledge), and the .pm is a bit tricky to hack to get it to work alone so, here is the new shar for it : # 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-Text-Reflow # p5-Text-Reflow/Makefile # p5-Text-Reflow/distinfo # p5-Text-Reflow/pkg-comment # p5-Text-Reflow/pkg-descr # p5-Text-Reflow/pkg-plist # echo c - p5-Text-Reflow mkdir -p p5-Text-Reflow > /dev/null 2>&1 echo x - p5-Text-Reflow/Makefile sed 's/^X//' >p5-Text-Reflow/Makefile << 'END-of-p5-Text-Reflow/Makefile' X# New ports collection makefile for: textproc/p5- Text-Reflow X# Date created: 2 August 2002 X# Whom: Mathieu Arnold X# X# $FreeBSD$ X# X XPORTNAME=3D Text-Reflow XPORTVERSION=3D 1.04 XCATEGORIES=3D textproc perl5 XMASTER_SITES=3D ${MASTER_SITE_PERL_CPAN} XMASTER_SITE_SUBDIR=3D Text XPKGNAMEPREFIX=3D p5- X XMAINTAINER=3D m@absolight.net X XPERL_CONFIGURE=3D yes X XMAN3=3D Text::Reflow.3 XMANPREFIX=3D ${PREFIX}/lib/perl5/${PERL_VERSION} X Xpre-everything: X @${PERL} -M5.006 -e1 2>/dev/null || \ X ( ${ECHO_MSG} "=3D=3D=3D> Requires perl 5.6 or above (available from the = port collection)"; \ X false ) X X.include END-of-p5-Text-Reflow/Makefile echo x - p5-Text-Reflow/distinfo sed 's/^X//' >p5-Text-Reflow/distinfo << 'END-of-p5-Text-Reflow/distinfo' XMD5 (Text-Reflow-1.04.tar.gz) =3D 9b7d192cda3ffe8de76735c843352200 END-of-p5-Text-Reflow/distinfo echo x - p5-Text-Reflow/pkg-comment sed 's/^X//' >p5-Text-Reflow/pkg-comment << 'END-of-p5-Text-Reflow/pkg-comment' XPerl module for reflowing text files END-of-p5-Text-Reflow/pkg-comment echo x - p5-Text-Reflow/pkg-descr sed 's/^X//' >p5-Text-Reflow/pkg-descr << 'END-of-p5-Text-Reflow/pkg-descr' XThese routines will reflow the paragraphs in the given file, Xfilehandle, string or array using Knuth's paragraphing algorithm (as Xused in TeX) to pick "good" places to break the lines. END-of-p5-Text-Reflow/pkg-descr echo x - p5-Text-Reflow/pkg-plist sed 's/^X//' >p5-Text-Reflow/pkg-plist << 'END-of-p5-Text-Reflow/pkg-plist' Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Text/Reflow/Reflow.so Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Text/Reflow/Reflow.bs Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Text/Reflow/.packlist Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Text/Reflow.pm X@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Text/Reflow END-of-p5-Text-Reflow/pkg-plist exit --=20 Mathieu Arnold To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message