[104678] trunk/dports/tex/makejvf
ryandesign at macports.org
ryandesign at macports.org
Sun Mar 31 02:03:47 PDT 2013
Revision: 104678
https://trac.macports.org/changeset/104678
Author: ryandesign at macports.org
Date: 2013-03-31 02:03:46 -0700 (Sun, 31 Mar 2013)
Log Message:
-----------
makejvf: ensure we're UsingTheRightCompiler and -arch flags; fix build with clang by declaring a void function as void; do reinplacing in post-patch, not configure; use "use_configure no"; specify locale of file being reinplaced to fix "reinplace: sed: RE error: illegal byte sequence" on Mountain Lion (#38585)
Modified Paths:
--------------
trunk/dports/tex/makejvf/Portfile
trunk/dports/tex/makejvf/files/patch-makejvf.diff
Modified: trunk/dports/tex/makejvf/Portfile
===================================================================
--- trunk/dports/tex/makejvf/Portfile 2013-03-31 09:03:37 UTC (rev 104677)
+++ trunk/dports/tex/makejvf/Portfile 2013-03-31 09:03:46 UTC (rev 104678)
@@ -14,7 +14,7 @@
homepage http://ascii.asciimw.jp/pb/ptex/base/sources.html
master_sites macports \
ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/jvf/
-patchfiles patch-makejvf.diff
+
checksums md5 7fd15c90111732cce14c5dbb6228ecb3 \
sha1 0648f2b866978981a7752fdc66ea4f5c5907a40c \
rmd160 a3ea1675f50d14fb1f0b37a92f018a48c85fb7cc
@@ -22,13 +22,20 @@
depends_lib port:gettext
patch.pre_args -p1
+patchfiles patch-makejvf.diff
-configure {
- reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/Makefile
- reinplace "s|__DESTDIR__|${destroot}|" ${worksrcpath}/Makefile
+post-patch {
+ reinplace -locale ja_JP.eucJP "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Makefile
+ reinplace -locale ja_JP.eucJP "s|__DESTDIR__|${destroot}|g" ${worksrcpath}/Makefile
}
+use_configure no
+
+variant universal {}
+
build.target
+build.args CC="${configure.cc} [get_canonical_archflags cc]"
+
use_parallel_build yes
post-destroot {
Modified: trunk/dports/tex/makejvf/files/patch-makejvf.diff
===================================================================
--- trunk/dports/tex/makejvf/files/patch-makejvf.diff 2013-03-31 09:03:37 UTC (rev 104677)
+++ trunk/dports/tex/makejvf/files/patch-makejvf.diff 2013-03-31 09:03:46 UTC (rev 104678)
@@ -188,8 +188,8 @@
}
}
diff -Naur makejvf-1.1a.orig/write.c makejvf-1.1a/write.c
---- makejvf-1.1a.orig/write.c 2006-12-21 00:18:25.000000000 +0900
-+++ makejvf-1.1a/write.c 2006-12-21 00:19:11.000000000 +0900
+--- makejvf-1.1a.orig/write.c 2001-01-17 01:18:04.000000000 -0600
++++ makejvf-1.1a/write.c 2013-03-31 03:54:30.000000000 -0500
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
@@ -197,3 +197,11 @@
extern char *vtfmname,*kanatfm;
extern int unit,zh,zw,jfm_id;
+@@ -52,6 +53,7 @@
+ return fp;
+ }
+
++void
+ writevf(code,fp)
+ int code;
+ FILE *fp;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130331/e9771f93/attachment.html>
More information about the macports-changes
mailing list