[109481] trunk/dports/textproc/multimarkdown

ryandesign at macports.org ryandesign at macports.org
Thu Aug 15 19:38:59 PDT 2013


Revision: 109481
          https://trac.macports.org/changeset/109481
Author:   ryandesign at macports.org
Date:     2013-08-15 19:38:58 -0700 (Thu, 15 Aug 2013)
Log Message:
-----------
multimarkdown: update to 4.2.1 (#40135)

Modified Paths:
--------------
    trunk/dports/textproc/multimarkdown/Portfile

Added Paths:
-----------
    trunk/dports/textproc/multimarkdown/files/
    trunk/dports/textproc/multimarkdown/files/patch-Makefile.diff

Modified: trunk/dports/textproc/multimarkdown/Portfile
===================================================================
--- trunk/dports/textproc/multimarkdown/Portfile	2013-08-16 02:32:35 UTC (rev 109480)
+++ trunk/dports/textproc/multimarkdown/Portfile	2013-08-16 02:38:58 UTC (rev 109481)
@@ -3,10 +3,12 @@
 PortSystem          1.0
 PortGroup           github 1.0
 
-github.setup        fletcher peg-multimarkdown 3.7
+github.setup        fletcher MultiMarkdown-4 4.2.1
 name                multimarkdown
 categories          textproc
-license             GPL-2+ MIT
+# peg-markdown is released under both the GPL and MIT licenses.
+# You may pick the license that best fits your needs.
+license             {GPL-2+ MIT}
 maintainers         nomaintainer
 installs_libs       no
 
@@ -20,7 +22,7 @@
                     It adds multiple syntax features (tables, footnotes, \
                     and citations, to name a few), in addition to the \
                     various output formats listed above (Markdown only \
-                    creates HTML). Additionally, it builds in "smart" \
+                    creates HTML). Additionally, it builds in “smart” \
                     typography for various languages (proper left- and \
                     right-sided quotes, for example).
 
@@ -30,27 +32,24 @@
 fetch.type          git
 
 post-fetch {
-    system -W ${worksrcpath} "git submodule init"
-    reinplace "s|git://|https://|" ${worksrcpath}/.git/config
-    system -W ${worksrcpath} "git submodule update"
+    system -W ${worksrcpath} "git submodule update --init"
 }
 
+patchfiles          patch-Makefile.diff
+
 use_configure       no
 
 variant universal {}
+
 build.args          CC="${configure.cc} [get_canonical_archflags]"
+build.target
 
-# "make docs" builds multimarkdown as a dependency
-build.target        docs
+test.run            yes
 
 destroot {
     xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin/
-    # documentation
-    xinstall -d ${destroot}${prefix}/share/doc
-    delete ${worksrcpath}/documentation/.git
-    move ${worksrcpath}/documentation ${destroot}${prefix}/share/doc/${name}
-}
 
-depends_build       port:pkgconfig
-depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
-                    port:gettext
+    set docdir ${prefix}/share/doc/${subport}
+    xinstall -d ${destroot}${docdir}
+    xinstall -m 644 -W ${worksrcpath} LICENSE README.md ${destroot}${docdir}
+}

Added: trunk/dports/textproc/multimarkdown/files/patch-Makefile.diff
===================================================================
--- trunk/dports/textproc/multimarkdown/files/patch-Makefile.diff	                        (rev 0)
+++ trunk/dports/textproc/multimarkdown/files/patch-Makefile.diff	2013-08-16 02:38:58 UTC (rev 109481)
@@ -0,0 +1,22 @@
+--- Makefile.orig	2013-08-15 21:30:50.000000000 -0500
++++ Makefile	2013-08-15 21:31:09.000000000 -0500
+@@ -15,16 +15,16 @@
+ ALL : $(PROGRAM) enumMap.txt
+ 
+ %.o : %.c parser.h
+-	gcc -c $(CFLAGS) -o $@ $<
++	$(CC) -c $(CFLAGS) -o $@ $<
+ 
+ parser.c : parser.leg greg/greg parser.h
+ 	greg/greg -o parser.c parser.leg
+ 
+ $(GREG): greg
+-	CC=gcc $(MAKE) -C greg
++	$(MAKE) -C greg
+ 
+ $(PROGRAM) : $(OBJS)
+-	gcc $(CFLAGS) -o $@ $(OBJS)
++	$(CC) $(CFLAGS) -o $@ $(OBJS)
+ 
+ clean:
+ 	rm -f $(PROGRAM) $(OBJS) parser.c enumMap.txt speed*.txt; \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130815/9814cf41/attachment-0001.html>


More information about the macports-changes mailing list