[75309] trunk/dports/textproc/antiword

ryandesign at macports.org ryandesign at macports.org
Fri Jan 21 01:12:23 PST 2011


Revision: 75309
          http://trac.macports.org/changeset/75309
Author:   ryandesign at macports.org
Date:     2011-01-21 01:12:23 -0800 (Fri, 21 Jan 2011)
Log Message:
-----------
antiword: support universal and non-default build_arch; install doc files; indicate license

Modified Paths:
--------------
    trunk/dports/textproc/antiword/Portfile
    trunk/dports/textproc/antiword/files/patch-Makefile.Linux

Modified: trunk/dports/textproc/antiword/Portfile
===================================================================
--- trunk/dports/textproc/antiword/Portfile	2011-01-21 09:00:05 UTC (rev 75308)
+++ trunk/dports/textproc/antiword/Portfile	2011-01-21 09:12:23 UTC (rev 75309)
@@ -4,9 +4,11 @@
 
 name                antiword
 version             0.37
+revision            1
 categories          textproc
 platforms           darwin
 maintainers         nomaintainer
+license             GPL-2+
 
 description         Utility to read Microsoft Word (.doc) files
 
@@ -26,6 +28,29 @@
 
 use_configure       no
 
-build.args          CC=${configure.cc}
+variant universal {}
+if {[variant_isset universal]} {
+    set archflags ${configure.universal_cflags}
+} else {
+    set archflags ${configure.cc_archflags}
+}
 
+build.args          CC="${configure.cc} ${archflags}"
+
 destroot.args       prefix=${destroot}${prefix}
+
+post-destroot {
+    set docdir ${destroot}${prefix}/share/doc/${name}
+    xinstall -d ${docdir}
+    xinstall -m 644 -W ${worksrcpath}/Docs \
+        ChangeLog \
+        COPYING \
+        Emacs \
+        Exmh \
+        FAQ \
+        History \
+        Mutt \
+        QandA \
+        ReadMe \
+        ${docdir}
+}

Modified: trunk/dports/textproc/antiword/files/patch-Makefile.Linux
===================================================================
--- trunk/dports/textproc/antiword/files/patch-Makefile.Linux	2011-01-21 09:00:05 UTC (rev 75308)
+++ trunk/dports/textproc/antiword/files/patch-Makefile.Linux	2011-01-21 09:12:23 UTC (rev 75309)
@@ -1,5 +1,14 @@
---- Makefile	Thu Oct 21 20:13:03 2004
-+++ Makefile.new	Sun Jan  2 11:27:21 2005
+--- Makefile.orig	2005-10-29 12:13:15.000000000 -0500
++++ Makefile	2011-01-21 03:08:54.000000000 -0600
+@@ -3,7 +3,7 @@
+ #
+ 
+ CC	= gcc
+-LD	= gcc
++LD	= $(CC)
+ 
+ INSTALL		= cp -f
+ INSTALL_PROGRAM	= $(INSTALL)
 @@ -16,7 +16,7 @@
  
  LDLIBS	=
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110121/85aff362/attachment.html>


More information about the macports-changes mailing list