[62515] trunk/dports/textproc/dos2unix/Portfile
nox at macports.org
nox at macports.org
Sat Jan 9 11:34:08 PST 2010
Revision: 62515
http://trac.macports.org/changeset/62515
Author: nox at macports.org
Date: 2010-01-09 11:34:07 -0800 (Sat, 09 Jan 2010)
Log Message:
-----------
Update dos2unix to 4.1 (#23142)
Also install documentation, enable universal support and NLS.
Modified Paths:
--------------
trunk/dports/textproc/dos2unix/Portfile
Modified: trunk/dports/textproc/dos2unix/Portfile
===================================================================
--- trunk/dports/textproc/dos2unix/Portfile 2010-01-09 19:33:54 UTC (rev 62514)
+++ trunk/dports/textproc/dos2unix/Portfile 2010-01-09 19:34:07 UTC (rev 62515)
@@ -3,21 +3,39 @@
PortSystem 1.0
name dos2unix
-version 3.1
-revision 1
+version 4.1
+license FreeBSD
categories textproc
platforms darwin
maintainers waqar
description Convert text between dos, unix, and mac formats
long_description ${description}
-master_sites http://fresh.t-systems-sfr.com/linux/src/
-homepage ${master_sites}
-checksums md5 25ff56bab202de63ea6f6c211c416e96
+master_sites http://www.sfr-fresh.com/linux/misc/
+homepage http://www.xs4all.nl/~waterlan/dos2unix.html
+
+checksums md5 11a52e01342e588584a92588291e7dae \
+ sha1 db9b0434521c2348faab6d948f1f7938adba500a \
+ rmd160 21ce3916ec698587d1b11ea4c3d8ce74f17f7f2a
+
+depends_lib port:gettext
+
use_configure no
-build {
- system "cd ${worksrcpath} && ${configure.cc} ${configure.cflags} dos2unix.c -o dos2unix" }
-destroot {
- system "install -m 755 -cs ${worksrcpath}/dos2unix ${destroot}${prefix}/bin"
- system "install -m 644 ${worksrcpath}/dos2unix.1 ${destroot}${prefix}/share/man/man1"
- system "ln -sf dos2unix ${destroot}${prefix}/bin/mac2unix" }
+build.args prefix=${prefix}
+
+set CFLAGS_OS "${configure.cflags} ${configure.cppflags}"
+set LDFLAGS_EXTRA "${configure.ldflags} -lintl"
+
+pre-build {
+ build.args-append \
+ CFLAGS_OS="${CFLAGS_OS}" \
+ LDFLAGS_EXTRA="${LDFLAGS_EXTRA}"
+}
+
+destroot.args prefix=${prefix} \
+ DOCDIR=${destroot}${prefix}/share/doc/${name}
+
+variant universal {
+ append CFLAGS_OS " ${configure.universal_cflags}"
+ append LDFLAGS_EXTRA " ${configure.universal_ldflags}"
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100109/d0603689/attachment.html>
More information about the macports-changes
mailing list