Bug 16042 - chinese/CJK is out of date
Summary: chinese/CJK is out of date
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-01-10 21:30 UTC by keith
Modified: 2000-01-24 06:28 UTC (History)
0 users

See Also:


Attachments
CJK.diff.gz (10.13 KB, text/plain)
2000-01-10 21:30 UTC, keith
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description keith 2000-01-10 21:30:01 UTC
chinese/CJK is out of date.

Fix: The following patch changes the followings:

1. Change freetype-1.2 to freetype-1.3 in post-install, so
   it can find freetype sources to build ttf2pk & ttf2tfm.
2. It no longer uses moettf, but Arphic ttf instead, which
   has no character loss and IMHO much more beautiful. :)
3. Generates GB tfms from Arphic fonts.
4. Update maintainer's address.

Please commit this patch, thanks.
How-To-Repeat: 
It just don't compile.
Comment 1 keith 2000-01-20 19:17:48 UTC
This patch should be applied after the previous patch.
It fixes several bugs in *.el file, and post-install
scripts.

Please commit to unbroke chinese/CJK port, thanks.

diff -urN CJK.orig/Makefile CJK/Makefile
--- CJK.orig/Makefile	Thu Jan 20 16:05:38 2000
+++ CJK/Makefile	Thu Jan 20 17:09:03 2000
@@ -26,8 +26,10 @@
 
 post-install:
 .if !defined(NOPORTDOCS)
+	${RM} -fr ${PREFIX}/share/doc/CJK
 	${CP} -R ${WRKSRC}/doc ${PREFIX}/share/doc/CJK
 .endif
+	${RM} -fr ${PREFIX}/share/examples/CJK
 	${CP} -R ${WRKSRC}/examples ${PREFIX}/share/examples/CJK
 
 MAN1=		bg5conv.1 cef5conv.1 cefconv.1 cefsconv.1 extconv.1 \
diff -urN CJK.orig/files/md5 CJK/files/md5
--- CJK.orig/files/md5	Thu Jan 20 16:05:38 2000
+++ CJK/files/md5	Thu Jan 20 16:05:51 2000
@@ -1 +1 @@
-MD5 (cjk-current.tar.gz) = 6f5702b22863747737fe76cbc89c3a35
+MD5 (cjk-current.tar.gz) = b2a7cd7189b47b6fd4ce830f255f143c
diff -urN CJK.orig/patches/patch-aa CJK/patches/patch-aa
--- CJK.orig/patches/patch-aa	Thu Jan 20 16:05:38 2000
+++ CJK/patches/patch-aa	Thu Jan 20 17:05:19 2000
@@ -1,6 +1,6 @@
 --- Makefile.orig	Thu Jan  1 08:00:00 1970
 +++ Makefile	Sat Feb 20 08:10:54 1999
-@@ -0,0 +1,23 @@
+@@ -0,0 +1,24 @@
 +#
 +# Makefile for CJK to apply on Unix systems more smoothly.
 +#
@@ -18,6 +18,7 @@
 +	$(MAKE) -C utils $@
 +
 +install-texinput:
++	(rm -fr $(CJK_DIR)); && \
 +	(mkdir -p $(CJK_DIR)); && \
 +	($(CP) -R texinput/* $(CJK_DIR)); && \
 +	($(CHOWN) -R $(SHAREOWN).$(SHAREGRP) $(CJK_DIR))
diff -urN CJK.orig/patches/patch-ac CJK/patches/patch-ac
--- CJK.orig/patches/patch-ac	Thu Jan 20 16:05:38 2000
+++ CJK/patches/patch-ac	Thu Jan 20 17:06:43 2000
@@ -1,6 +1,6 @@
 --- utils/Makefile.orig	Thu Jan  6 20:50:10 2000
 +++ utils/Makefile	Thu Jan  6 20:52:17 2000
-@@ -0,0 +1,51 @@
+@@ -0,0 +1,52 @@
 +CC = /usr/bin/cc
 +CFLAGS = -Wall -O
 +
@@ -33,6 +33,7 @@
 +hbf2gf_install:
 +	$(CHMOD) +x hbf2gf/mkinstalldirs
 +	$(MAKE) -C hbf2gf install
++	$(RM) -fr $(TEXMF_DIR)/hbf2gf
 +	$(CP) -R hbf2gf/cfg $(TEXMF_DIR)/hbf2gf
 +
 +install: hbf2gf_install
diff -urN CJK.orig/pkg/PLIST CJK/pkg/PLIST
--- CJK.orig/pkg/PLIST	Thu Jan 20 16:05:38 2000
+++ CJK/pkg/PLIST	Thu Jan 20 16:22:23 2000
@@ -47,8 +47,8 @@
 share/doc/CJK/vertical.doc
 share/emacs/site-lisp/CJK/cjkspace.el
 share/emacs/site-lisp/CJK/cjktilde.el
-share/emacs/site-lisp/CJK/emacs-20.3/cjk-enc.el
 share/emacs/site-lisp/CJK/emacs-20/cjk-enc.el
+share/emacs/site-lisp/CJK/emacs-20.3/cjk-enc.el
 share/emacs/site-lisp/CJK/mule-2.3/cjk-enc.el
 share/examples/CJK/Big5.tex
 share/examples/CJK/Big5vert.tex
@@ -478,7 +478,7 @@
 @dirrm share/texmf/fonts/tfm/arphic/argbsung
 @dirrm share/texmf/fonts/tfm/arphic
 @dirrm share/texmf/fonts/truetype/arphic
-@dirrm share/texmf/fonts/truetype
+@unexec rmdir %D/share/texmf/fonts/truetype 2>/dev/null || true
 @dirrm share/texmf/hbf2gf
 @dirrm share/texmf/tex/latex/CJK/Bg5
 @dirrm share/texmf/tex/latex/CJK/CEF
diff -urN CJK.orig/scripts/post-install CJK/scripts/post-install
--- CJK.orig/scripts/post-install	Thu Jan 20 16:05:38 2000
+++ CJK/scripts/post-install	Thu Jan 20 16:57:45 2000
@@ -1,7 +1,7 @@
 #!/bin/sh
 PATH=/bin:/usr/bin:/usr/local/bin
 
-TEXMFMAIN=${PREFIX}/share/texmf
+TEXMFMAIN=`kpsexpand '$TEXMFMAIN'`
 
 # Some mktexpk incorrectly calls ttf2pk with -p option, delete it.
 if [ ! -z "`grep "ttf2pk -p" ${PREFIX}/bin/mktexpk`" ]
@@ -16,6 +16,7 @@
 (cd ${PORTSDIR}/print/freetype/work/freetype-1.3/contrib/ttf2pk;
  ./configure --prefix=${PREFIX} --with-kpathsea-dir=${PREFIX};
  make depend all install;
+ rm -fr ${TEXMFMAIN}/ttf2pk ${TEXMFMAIN}/ttf2tfm;
  cp -R data ${TEXMFMAIN}/ttf2pk;
  cd ${TEXMFMAIN}; ln -s ttf2pk ttf2tfm; )
 
-- 
Make it clear and strong.

keith@freebsd.sinica.edu.tw
Comment 2 Steve Price freebsd_committer freebsd_triage 2000-01-24 06:27:04 UTC
State Changed
From-To: open->closed

Committed, thanks!