[94470] trunk/dports/editors/mg

ryandesign at macports.org ryandesign at macports.org
Tue Jun 19 20:08:14 PDT 2012


Revision: 94470
          https://trac.macports.org/changeset/94470
Author:   ryandesign at macports.org
Date:     2012-06-19 20:08:14 -0700 (Tue, 19 Jun 2012)
Log Message:
-----------
mg: update to 20110905 (#32766); update homepage; use MacPorts ncurses; ensure we're UsingTheRightCompiler and -arch flags; install README file; fix livecheck

Modified Paths:
--------------
    trunk/dports/editors/mg/Portfile

Added Paths:
-----------
    trunk/dports/editors/mg/files/
    trunk/dports/editors/mg/files/patch-configure.diff

Modified: trunk/dports/editors/mg/Portfile
===================================================================
--- trunk/dports/editors/mg/Portfile	2012-06-20 03:01:11 UTC (rev 94469)
+++ trunk/dports/editors/mg/Portfile	2012-06-20 03:08:14 UTC (rev 94470)
@@ -3,7 +3,7 @@
 PortSystem      1.0
 
 name            mg
-version         20090107
+version         20110905
 categories      editors
 description     small Emacs-like editor
 long_description    Micro GNU/Emacs: a small, fast, lightweight, emacs-like editor.\
@@ -11,13 +11,36 @@
 platforms       darwin
 maintainers     kerbit.net:lfk
 
-homepage        http://www.han.dds.nl/software/mg
+homepage        http://homepage.boetes.org/software/mg/
 master_sites    ${homepage}
 
-checksums  md5  f25a139da44c3a2f760ffec531bd996e \
-           sha1 3191c6dea4996347b6d40b34fa4c88a57e5ef42e
+checksums       rmd160  721b2a2e9059ddf6ea637dafd205575150b58c8c \
+                sha256  1cd37d7e6a3eecc890a5718c38b8f38495057ba93856762a756ccee2f9618229
 
-# The mg sources have a cludge for a configure script that accepts no options
-# so subvert any attempt to pass args to it by setting configure.pre_args to nothing
+depends_lib     port:ncurses
+
+patchfiles      patch-configure.diff
+
+# The mg configure script does not accept any arguments.
 configure.pre_args
+configure.universal_args
+
+variant universal {}
+
+build.args      CC=${configure.cc} \
+                CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
+                LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
+
 destroot.args   prefix=${prefix} mandir=${prefix}/share/man
+
+post-destroot {
+    set docdir ${prefix}/share/doc/${name}
+    xinstall -d ${destroot}${docdir}
+    xinstall -m 644 -W ${worksrcpath} \
+        README \
+        ${destroot}${docdir}
+}
+
+livecheck.type  regex
+livecheck.url   ${homepage}
+livecheck.regex >${name}-(\[0-9\]+)${extract.suffix}<

Added: trunk/dports/editors/mg/files/patch-configure.diff
===================================================================
--- trunk/dports/editors/mg/files/patch-configure.diff	                        (rev 0)
+++ trunk/dports/editors/mg/files/patch-configure.diff	2012-06-20 03:08:14 UTC (rev 94470)
@@ -0,0 +1,20 @@
+--- configure.orig	2011-09-05 13:36:16.000000000 -0500
++++ configure	2012-06-19 21:57:10.000000000 -0500
+@@ -10,7 +10,7 @@
+ 
+ note()
+ {
+-    echo -n "Looking for $@...  "
++    printf "Looking for $@...  "
+     echo    "Looking for $@...  " >&3
+ }
+ 
+@@ -150,7 +150,7 @@
+ 
+ # With -O2 or higher you get a warning for strict-aliasing on
+ # some versions of gcc.
+-echo -n 'Testing for strict aliasing...  '
++printf 'Testing for strict aliasing...  '
+ echo 'Testing for strict aliasing...  ' >&3
+ cat << EOF > testfile.c
+ int main(void)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120619/4ee88ccd/attachment.html>


More information about the macports-changes mailing list