[93563] trunk/dports/textproc/dos2unix/Portfile
ryandesign at macports.org
ryandesign at macports.org
Sat May 26 22:18:08 PDT 2012
Revision: 93563
https://trac.macports.org/changeset/93563
Author: ryandesign at macports.org
Date: 2012-05-26 22:18:05 -0700 (Sat, 26 May 2012)
Log Message:
-----------
dos2unix: update to 6.0; simplify specifying CFLAGS and LDFLAGS; rewrite master_sites to avoid redirects
Modified Paths:
--------------
trunk/dports/textproc/dos2unix/Portfile
Modified: trunk/dports/textproc/dos2unix/Portfile
===================================================================
--- trunk/dports/textproc/dos2unix/Portfile 2012-05-26 22:27:29 UTC (rev 93562)
+++ trunk/dports/textproc/dos2unix/Portfile 2012-05-27 05:18:05 UTC (rev 93563)
@@ -3,46 +3,36 @@
PortSystem 1.0
name dos2unix
-version 5.1.1
+version 6.0
license BSD
categories textproc
platforms darwin
maintainers waqar openmaintainer
description Convert text between dos, unix, and mac formats
long_description ${description}
-master_sites http://www.xs4all.nl/~waterlan/dos2unix/ sourceforge
+master_sites sourceforge:project/dos2unix/dos2unix/${version} \
+ http://www.xs4all.nl/~waterlan/dos2unix/
homepage http://www.xs4all.nl/~waterlan/dos2unix.html
-checksums sha1 c8b2121cbdf74900b9ae5fd7a0319195f6053b05 \
- rmd160 7a50cf347cb2c716693718ae3b1b08de18bdedb3
+checksums rmd160 f6b9f19e51958a7d108fbb17ca2b81f4edb970ae \
+ sha256 0a3dafe5ca3dc6f640a73197322975a4cb20e9bba699ebfecaaecc15f962389e
depends_lib port:gettext
use_configure no
-build.args prefix=${prefix} \
- CC=${configure.cc}
+variant universal {}
-set CFLAGS_OS "${configure.cflags} ${configure.cppflags}"
-set LDFLAGS_EXTRA "${configure.ldflags} -lintl"
+configure.cflags-append ${configure.cppflags} [get_canonical_archflags cc]
+configure.ldflags-append -lintl [get_canonical_archflags ld]
-pre-build {
- if {![variant_isset universal]} {
- append CFLAGS_OS " ${configure.cc_archflags}"
- append LDFLAGS_EXTRA " ${configure.cc_archflags}"
- }
- build.args-append \
- CFLAGS_OS="${CFLAGS_OS}" \
- LDFLAGS_EXTRA="${LDFLAGS_EXTRA}"
-}
+build.args prefix=${prefix} \
+ CC=${configure.cc} \
+ CFLAGS_OS="[join ${configure.cflags}]" \
+ LDFLAGS_EXTRA="[join ${configure.ldflags}]"
destroot.args prefix=${prefix} \
DOCDIR=${destroot}${prefix}/share/doc/${name}
-variant universal {
- append CFLAGS_OS " ${configure.universal_cflags}"
- append LDFLAGS_EXTRA " ${configure.universal_ldflags}"
-}
-
livecheck.type regex
livecheck.regex {Stable version: (\d+(?:\.\d+)*)}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120526/4e5c83e2/attachment.html>
More information about the macports-changes
mailing list