[92311] trunk/dports/devel/dylibbundler

ryandesign at macports.org ryandesign at macports.org
Tue Apr 24 15:44:26 PDT 2012


Revision: 92311
          https://trac.macports.org/changeset/92311
Author:   ryandesign at macports.org
Date:     2012-04-24 15:44:26 -0700 (Tue, 24 Apr 2012)
Log Message:
-----------
dylibbundler: update to 0.4.1; fix version number in program and documentation; fix inconsistent line endings in documentation; rewrite master_sites to avoid redirects

Modified Paths:
--------------
    trunk/dports/devel/dylibbundler/Portfile

Added Paths:
-----------
    trunk/dports/devel/dylibbundler/files/patch-version.diff

Modified: trunk/dports/devel/dylibbundler/Portfile
===================================================================
--- trunk/dports/devel/dylibbundler/Portfile	2012-04-24 22:43:18 UTC (rev 92310)
+++ trunk/dports/devel/dylibbundler/Portfile	2012-04-24 22:44:26 UTC (rev 92311)
@@ -4,7 +4,7 @@
 PortSystem          1.0
 
 name                dylibbundler
-version             0.4
+version             0.4.1
 categories          devel
 platforms           darwin
 maintainers         strasweb.fr:rudloff openmaintainer
@@ -23,10 +23,10 @@
                     dependencies too.
 
 homepage            http://macdylibbundler.sourceforge.net/
-master_sites        sourceforge:macdylibbundler
+master_sites        sourceforge:project/macdylibbundler/macdylibbundler/${version}
 
-checksums           rmd160  8564c92b9f448615d43add757d44b46e5a728488 \
-                    sha256  a07a4f3227333faa613692e79d3e59c417f7d2fdf9dc780354d8ae97407d28a0
+checksums           rmd160  ed4d8e77a5d784f90bfa3fe6c3c60a3351900415 \
+                    sha256  93970a998a509599725bb03c82a336d250927c9748d89db590ed8d921cf73f96
 
 distname            ${name}${version}
 use_zip             yes
@@ -39,8 +39,17 @@
     }
 }
 
-patchfiles          patch-makefile.diff
+post-extract {
+    # Change mixed DOS/UNIX to only UNIX line endings.
+    reinplace "s|\r||g" ${worksrcpath}/index.html
+}
 
+patchfiles          patch-makefile.diff patch-version.diff
+
+post-patch {
+    reinplace "s|@VERSION@|${version}|g" ${worksrcpath}/index.html ${worksrcpath}/src/main.cpp
+}
+
 use_configure       no
 
 variant universal {}

Added: trunk/dports/devel/dylibbundler/files/patch-version.diff
===================================================================
--- trunk/dports/devel/dylibbundler/files/patch-version.diff	                        (rev 0)
+++ trunk/dports/devel/dylibbundler/files/patch-version.diff	2012-04-24 22:44:26 UTC (rev 92311)
@@ -0,0 +1,22 @@
+--- index.html.orig	2009-11-01 14:32:24.000000000 -0600
++++ index.html	2012-04-24 17:22:11.000000000 -0500
+@@ -55,7 +55,7 @@
+ <!--- REMOVE -->
+ <h3>Download</h3>
+ <blockquote>
+-<A href="http://downloads.sourceforge.net/macdylibbundler/dylibbundler0.3.1.zip">Download version 0.3.1 now</A><br/>
++<A href="http://downloads.sourceforge.net/macdylibbundler/dylibbundler@VERSION@.zip">Download version @VERSION@ now</A><br/>
+ dylibbundler is not yet considered stable but already usable.<br/>
+ <b>Note that version 0.3 is not compatible with version 0.25, as it makes no more use of config files and the terminal syntax has changed a little.</b>
+ </blockquote>
+--- src/main.cpp.orig	2008-06-28 15:58:44.000000000 -0500
++++ src/main.cpp	2012-04-24 17:22:20.000000000 -0500
+@@ -30,7 +30,7 @@
+  
+  */
+ 
+-const std::string VERSION = "0.3.1";
++const std::string VERSION = "@VERSION@";
+ 
+ 
+ // FIXME - no memory management is done at all (anyway the program closes immediately so who cares?)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120424/70aeb7fa/attachment.html>


More information about the macports-changes mailing list