[72118] trunk/dports/devel/gettext-lint

Ryan Schmidt ryandesign at macports.org
Mon Oct 4 00:27:46 PDT 2010


On Oct 4, 2010, at 02:16, afb at macports.org wrote:

> Revision: 72118
>          http://trac.macports.org/changeset/72118
> Author:   afb at macports.org
> Date:     2010-10-04 00:16:00 -0700 (Mon, 04 Oct 2010)
> Log Message:
> -----------
> gettext-lint: fix shebang issues (#25542)

> Modified: trunk/dports/devel/gettext-lint/Portfile

> @@ -17,9 +18,12 @@
> master_sites	sourceforge:gettext-lint
> checksums	md5 9db81f7c3df06147ba27ee331222e057
> 
> -depends_lib	port:automake port:autoconf port:python25
> +depends_lib	port:automake port:autoconf port:python25 bin:dos2unix:dos2unix
> 
> +patchfiles	patch-python.diff
> +
> post-extract	{ delete ${worksrcpath}/INSTALL ${worksrcpath}/install-sh ${worksrcpath}/missing }
> +post-patch	{ system "dos2unix -k ${worksrcpath}/src/POFileClean.in" }

You don't need dos2unix or any other additional program to translate DOS to UNIX line endings; just use a reinplace. I do this in many ports already.

post-patch {
	reinplace "s|\r||g" ${worksrcpath}/src/POFileClean.in
}





More information about the macports-dev mailing list