Revision
98355
Author
jmr@macports.org
Date
2012-10-03 05:09:01 -0700 (Wed, 03 Oct 2012)

Log Message

dsh: probably fix build on 10.8

Modified Paths

Added Paths

Diff

Modified: trunk/dports/net/dsh/Portfile (98354 => 98355)


--- trunk/dports/net/dsh/Portfile	2012-10-03 12:06:52 UTC (rev 98354)
+++ trunk/dports/net/dsh/Portfile	2012-10-03 12:09:01 UTC (rev 98355)
@@ -22,4 +22,8 @@
 depends_run	port:openssh
 platforms	darwin
 
-patchfiles	patch-dsh.conf.diff
+# HACK: There is only one translation of the man pages in the current version.
+# If more are added in future, then the Makefile.in patch will no longer work
+# since LC_CTYPE would need to be set differently for each translation.
+# Alternatively, the files could be converted to UTF-8.
+patchfiles	patch-dsh.conf.diff patch-Makefile.in.diff

Added: trunk/dports/net/dsh/files/patch-Makefile.in.diff (0 => 98355)


--- trunk/dports/net/dsh/files/patch-Makefile.in.diff	                        (rev 0)
+++ trunk/dports/net/dsh/files/patch-Makefile.in.diff	2012-10-03 12:09:01 UTC (rev 98355)
@@ -0,0 +1,14 @@
+--- Makefile.in.orig	2007-08-15 10:02:49.000000000 +1000
++++ Makefile.in	2012-10-03 22:03:35.000000000 +1000
+@@ -1025,9 +1025,9 @@
+ 	for LANGS in $(man_languages) ; do \
+ 		mkdir -p $(DESTDIR)$(mandir)/$$LANGS/man1 ;\
+ 		mkdir -p $(DESTDIR)$(mandir)/$$LANGS/man5 ;\
+-		sed -e 's,[@]sysconfdir[@],$(sysconfdir),' < ${srcdir}/dsh.$$LANGS.1 \
++		env LC_CTYPE=ja_JP.eucJP sed -e 's,[@]sysconfdir[@],$(sysconfdir),' < ${srcdir}/dsh.$$LANGS.1 \
+ 			> $(DESTDIR)$(mandir)/$$LANGS/man1/dsh.1 ; \
+-		sed -e 's,[@]sysconfdir[@],$(sysconfdir),' < ${srcdir}/dsh.conf.$$LANGS.5 \
++		env LC_CTYPE=ja_JP.eucJP sed -e 's,[@]sysconfdir[@],$(sysconfdir),' < ${srcdir}/dsh.conf.$$LANGS.5 \
+ 			> $(DESTDIR)$(mandir)/$$LANGS/man5/dsh.conf.5 ; \
+ 	done
+