aboutsummaryrefslogtreecommitdiffstats
path: root/korean/hpscat
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1997-06-04 16:35:44 +0800
committerasami <asami@FreeBSD.org>1997-06-04 16:35:44 +0800
commit2822226c78ec0a0db84b6723b88ced332e8c1710 (patch)
tree9f0abad76478eb4ad2d09d675c2366d296ca9438 /korean/hpscat
parent2af82f8be4125daae380e572067c627a47c71a87 (diff)
downloadfreebsd-ports-gnome-2822226c78ec0a0db84b6723b88ced332e8c1710.tar.gz
freebsd-ports-gnome-2822226c78ec0a0db84b6723b88ced332e8c1710.tar.zst
freebsd-ports-gnome-2822226c78ec0a0db84b6723b88ced332e8c1710.zip
Hangul Text Printing Utility
PR: 3341 Submitted by: Choi Jun Ho <junker@moderato.snu.ac.kr>
Diffstat (limited to 'korean/hpscat')
-rw-r--r--korean/hpscat/Makefile39
-rw-r--r--korean/hpscat/distinfo2
-rw-r--r--korean/hpscat/files/hpscat.sh32
-rw-r--r--korean/hpscat/files/patch-aa27
-rw-r--r--korean/hpscat/files/patch-ab12
-rw-r--r--korean/hpscat/pkg-comment1
-rw-r--r--korean/hpscat/pkg-descr12
-rw-r--r--korean/hpscat/pkg-plist11
-rw-r--r--korean/hpscat/pkg-req8
-rw-r--r--korean/hpscat/scripts/configure8
10 files changed, 152 insertions, 0 deletions
diff --git a/korean/hpscat/Makefile b/korean/hpscat/Makefile
new file mode 100644
index 000000000000..54e09aa2c3eb
--- /dev/null
+++ b/korean/hpscat/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: hpscat-1.3jshin
+# Version required: 1.3jshin
+# Date created: 4 Apr 1997
+# Whom: Choi Jun Ho <junker@jazz.snu.ac.kr>
+#
+# $Id$
+#
+
+DISTNAME= hpscat-jshin
+PKGNAME= kr-hpscat-1.3jshin
+CATEGORIES= korean print
+MASTER_SITES= ftp://ftp.kaist.ac.kr/pub/hangul/print/ \
+ ftp://ftp.kaist.ac.kr/pub/hangul/editor/ked/ \
+ ftp://sunsite.kren.nm.kr/pub/packages/hangul/print/ \
+ ftp://sunsite.kren.nm.kr/pub/packages/hangul/editor/ked/
+DISTFILES= hpscat-jshin.tar.gz ked.tar.gz
+
+MAINTAINER= junker@jazz.snu.ac.kr
+
+RUN_DEPENDS= hcode:$(PORTSDIR)/korean/hcode
+
+pre-configure:
+ ${CP} ${FILESDIR}/hpscat.sh ${WRKSRC}/
+
+do-install:
+ @cd ${WRKSRC}; \
+ ${MKDIR} ${PREFIX}/share/fonts/ked-hpscat; \
+ ${INSTALL_PROGRAM} hpscat ${PREFIX}/bin; \
+ ${INSTALL_SCRIPT} hpscat.sh ${PREFIX}/bin; \
+ ${INSTALL_DATA} ${WRKDIR}/ked/Header ${PREFIX}/share/fonts/ked-hpscat; \
+ ${INSTALL_DATA} ${WRKDIR}/ked/Munjo ${PREFIX}/share/fonts/ked-hpscat; \
+ ${INSTALL_DATA} ${WRKDIR}/ked/MunjoBold ${PREFIX}/share/fonts/ked-hpscat; \
+ ${INSTALL_DATA} ${WRKDIR}/ked/PCMunjo ${PREFIX}/share/fonts/ked-hpscat; \
+ ${INSTALL_DATA} ${WRKDIR}/ked/Gotic ${PREFIX}/share/fonts/ked-hpscat; \
+ ${INSTALL_DATA} README ${PREFIX}/share/fonts/ked-hpscat; \
+ ${INSTALL_DATA} README.jshin ${PREFIX}/share/fonts/ked-hpscat;\
+ ${INSTALL_DATA} README.jshin.ks ${PREFIX}/share/fonts/ked-hpscat
+
+.include <bsd.port.mk>
diff --git a/korean/hpscat/distinfo b/korean/hpscat/distinfo
new file mode 100644
index 000000000000..1b85b03195ca
--- /dev/null
+++ b/korean/hpscat/distinfo
@@ -0,0 +1,2 @@
+MD5 (hpscat-jshin.tar.gz) = 728d5f2fe51f617be7221a88f7812f21
+MD5 (ked.tar.gz) = f0b337dd1f17764191f204b619a559a2
diff --git a/korean/hpscat/files/hpscat.sh b/korean/hpscat/files/hpscat.sh
new file mode 100644
index 000000000000..7877b51483d7
--- /dev/null
+++ b/korean/hpscat/files/hpscat.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# hpscat fontend for FreeBSD ports
+#
+# 4 Apr 1997, Choi Jun Ho <junker@jazz.snu.ac.kr>
+#
+# It enables hpscat to print file without loading font in gs
+#
+
+HFONTPATH=%%PREFIX%%/share/fonts/ked-hpscat
+
+options=$*
+fileoutput=0
+
+# check if -f option is specified
+for i in $*
+do
+ case $i in
+ -f) fileoutput=1; shift;;
+ esac
+done
+
+if [ $fileoutput != 1 ]; then
+# print font header
+ cat $HFONTPATH/Header
+ for hfont in Munjo Gotic MunjoBold PCMunjo
+ do
+ cat $HFONTPATH/$hfont
+ done
+fi
+
+exec hpscat $options
diff --git a/korean/hpscat/files/patch-aa b/korean/hpscat/files/patch-aa
new file mode 100644
index 000000000000..e8fbf3894bed
--- /dev/null
+++ b/korean/hpscat/files/patch-aa
@@ -0,0 +1,27 @@
+*** Makefile.orig Thu Nov 23 00:42:41 1995
+--- Makefile Fri Apr 4 13:44:29 1997
+***************
+*** 11,20 ****
+ DADVHF = -DADV_HFONT
+ #DADVHF =
+ # define if you want to make the default paper size US letter instead of A4
+! DUS = -DUS_VERSION
+! #DUS =
+ CFLAGS = -O $(DHPS) $(DADVHF) $(DUS)
+ LDFLAGS = -s
+
+ $(PRG): $(OBJ)
+ $(CC) $(LDFLAGS) -o $@ $(OBJ)
+--- 11,22 ----
+ DADVHF = -DADV_HFONT
+ #DADVHF =
+ # define if you want to make the default paper size US letter instead of A4
+! #DUS = -DUS_VERSION
+! DUS =
+ CFLAGS = -O $(DHPS) $(DADVHF) $(DUS)
+ LDFLAGS = -s
++
++ all: $(PRG)
+
+ $(PRG): $(OBJ)
+ $(CC) $(LDFLAGS) -o $@ $(OBJ)
diff --git a/korean/hpscat/files/patch-ab b/korean/hpscat/files/patch-ab
new file mode 100644
index 000000000000..4ea18b447540
--- /dev/null
+++ b/korean/hpscat/files/patch-ab
@@ -0,0 +1,12 @@
+*** user.c.old Fri Apr 4 13:40:38 1997
+--- user.c Fri Apr 4 13:40:42 1997
+***************
+*** 37,43 ****
+ char buf[BUFSIZ];
+ char *home;
+ FILE *fp;
+- extern char *getenv PROT((char *));
+ home = getenv("HOME");
+ if(strlen(home)==0)
+ return;
+--- 37,42 ----
diff --git a/korean/hpscat/pkg-comment b/korean/hpscat/pkg-comment
new file mode 100644
index 000000000000..5ced9fa54250
--- /dev/null
+++ b/korean/hpscat/pkg-comment
@@ -0,0 +1 @@
+Hangul Text Printing Utility
diff --git a/korean/hpscat/pkg-descr b/korean/hpscat/pkg-descr
new file mode 100644
index 000000000000..0c5aacd0f0c5
--- /dev/null
+++ b/korean/hpscat/pkg-descr
@@ -0,0 +1,12 @@
+hpscat-1.3jshin
+-------------------
+
+hpscat is a small printing utility that print Hangul characters in
+any PostScript printer(including ghostscript). It use the hangul PS
+font in ked, so you must load the font before printing the document
+processed by hpscat.
+
+This version is revised by Jungshik Shin <jshin@minerva.cis.yale.edu>.
+
+--
+Ports by Choi Jun Ho <junker@jazz.snu.ac.kr>
diff --git a/korean/hpscat/pkg-plist b/korean/hpscat/pkg-plist
new file mode 100644
index 000000000000..057c5f317db3
--- /dev/null
+++ b/korean/hpscat/pkg-plist
@@ -0,0 +1,11 @@
+bin/hpscat
+bin/hpscat.sh
+share/fonts/ked-hpscat/Header
+share/fonts/ked-hpscat/Munjo
+share/fonts/ked-hpscat/MunjoBold
+share/fonts/ked-hpscat/PCMunjo
+share/fonts/ked-hpscat/Gotic
+share/fonts/ked-hpscat/README
+share/fonts/ked-hpscat/README.jshin
+share/fonts/ked-hpscat/README.jshin.ks
+@dirrm share/fonts/ked-hpscat
diff --git a/korean/hpscat/pkg-req b/korean/hpscat/pkg-req
new file mode 100644
index 000000000000..3a17a1131cf2
--- /dev/null
+++ b/korean/hpscat/pkg-req
@@ -0,0 +1,8 @@
+#!/bin/sh
+if [ "$2" = "DEINSTALL" ]; then
+ exit 0
+fi
+
+echo "To use hpscat with font loading in gs, use hpscat.sh instead"
+echo "Otherwise, you must setup ghostscript to load font first."
+echo "Read /usr/local/share/fonts/ked-hpscat/README.jshin(.ks)"
diff --git a/korean/hpscat/scripts/configure b/korean/hpscat/scripts/configure
new file mode 100644
index 000000000000..31ccb334e762
--- /dev/null
+++ b/korean/hpscat/scripts/configure
@@ -0,0 +1,8 @@
+#!/usr/bin/perl
+#
+
+eval '(exit $?0)' && eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
+& eval 'exec /usr/bin/perl -S $0 $argv:q'
+if 0;
+
+system( "/usr/bin/perl -pi -e 's|%%PREFIX%%|$ENV{'PREFIX'}|g' $ENV{'WRKSRC'}/hpscat.sh" );