aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1998-10-09 12:09:45 +0800
committerasami <asami@FreeBSD.org>1998-10-09 12:09:45 +0800
commitc454967169890e3a937576c0a89b7ccb2e5e801b (patch)
tree6e01fafdcee8b03a8ac51a40d62e9175a39fc69b
parenta285f12eb4c41cd32cbded9a564921656a8d60ed (diff)
downloadfreebsd-ports-gnome-c454967169890e3a937576c0a89b7ccb2e5e801b.tar.gz
freebsd-ports-gnome-c454967169890e3a937576c0a89b7ccb2e5e801b.tar.zst
freebsd-ports-gnome-c454967169890e3a937576c0a89b7ccb2e5e801b.zip
Font setup for Japanese netscape. Doesn't install anything itself,
so there's no checksum file. I changed the following from the PR submission: @ Removed files/ dir completely, all it contained was an empty md5 file and author's comments (keep that on your machine please :) @ Added "/usr/bin/perl" in front of pkg/INSTALL in post-install, so it will work even if the user doesn't get the file over a permission- preserving medium (e.g., ftp) @ I think that's all. PR: 8188 (part) Submitted by: sada@e-mail.ne.jp
-rw-r--r--japanese/alias-fonts/Makefile26
-rw-r--r--japanese/alias-fonts/pkg-comment1
-rw-r--r--japanese/alias-fonts/pkg-deinstall22
-rw-r--r--japanese/alias-fonts/pkg-descr1
-rw-r--r--japanese/alias-fonts/pkg-install41
-rw-r--r--japanese/alias-fonts/pkg-plist1
-rw-r--r--japanese/netscape-fonts/Makefile26
-rw-r--r--japanese/netscape-fonts/pkg-comment1
-rw-r--r--japanese/netscape-fonts/pkg-deinstall22
-rw-r--r--japanese/netscape-fonts/pkg-descr1
-rw-r--r--japanese/netscape-fonts/pkg-install41
-rw-r--r--japanese/netscape-fonts/pkg-plist1
12 files changed, 184 insertions, 0 deletions
diff --git a/japanese/alias-fonts/Makefile b/japanese/alias-fonts/Makefile
new file mode 100644
index 000000000000..2a23287ad515
--- /dev/null
+++ b/japanese/alias-fonts/Makefile
@@ -0,0 +1,26 @@
+# Ports collection makefile for: Japanese Font Setup for Netscape browsers
+# Version required: 1.0
+# Date created: 22 Jun 1998
+# Whom: sada
+#
+# $Id$
+#
+
+DISTNAME= ja-netscape-fonts-1.0
+CATEGORIES= japanese www x11-fonts
+DISTFILES= # empty
+
+MAINTAINER= sada@e-mail.ne.jp
+
+RUN_DEPENDS= \
+ ${PREFIX}/lib/X11/k12:${PORTSDIR}/japanese/k12 \
+ ${PREFIX}/lib/X11/fonts/misc/5x10B.pcf.Z:${PORTSDIR}/japanese/k10
+
+USE_X_PREFIX= yes
+NO_BUILD= yes
+
+do-install:
+ @${SETENV} PKG_PREFIX=${PREFIX} \
+ /usr/bin/perl ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
+
+.include <bsd.port.mk>
diff --git a/japanese/alias-fonts/pkg-comment b/japanese/alias-fonts/pkg-comment
new file mode 100644
index 000000000000..0aa243707548
--- /dev/null
+++ b/japanese/alias-fonts/pkg-comment
@@ -0,0 +1 @@
+Japanese Font Setup for Netscape Browsers.
diff --git a/japanese/alias-fonts/pkg-deinstall b/japanese/alias-fonts/pkg-deinstall
new file mode 100644
index 000000000000..c1f89ca64df8
--- /dev/null
+++ b/japanese/alias-fonts/pkg-deinstall
@@ -0,0 +1,22 @@
+#!/usr/bin/perl
+$prefix = $ENV{'PKG_PREFIX'};
+$dir = "$prefix/lib/X11/fonts/misc";
+$to = "$dir/fonts.alias";
+$from = "$to.orig";
+rename($to, $from) || die("Can't rename: $!");
+open(IN, $from) || die("Can't open $from: $!");
+open(OUT, ">$to") || die("Can't open $to: $!");
+while (<IN>) {
+ chop;
+ if (/^\s*!/ || /^\s*$/) {
+ print OUT "$_\n";
+ }
+ else {
+ @line = split(/\s+/, $_);
+ @elm = split(/-+/, $line[0]);
+ if ($elm[1] ne 'netscape' && $elm[1] ne 'netscape.k10') {
+ print OUT "$_\n";
+ }
+ }
+}
+#system("$prefix/bin/xset fp rehash");
diff --git a/japanese/alias-fonts/pkg-descr b/japanese/alias-fonts/pkg-descr
new file mode 100644
index 000000000000..0aa243707548
--- /dev/null
+++ b/japanese/alias-fonts/pkg-descr
@@ -0,0 +1 @@
+Japanese Font Setup for Netscape Browsers.
diff --git a/japanese/alias-fonts/pkg-install b/japanese/alias-fonts/pkg-install
new file mode 100644
index 000000000000..e1bc680f1ecf
--- /dev/null
+++ b/japanese/alias-fonts/pkg-install
@@ -0,0 +1,41 @@
+#!/usr/bin/perl
+$prefix = $ENV{'PKG_PREFIX'};
+$dir = "$prefix/lib/X11/fonts/misc";
+$to = "$dir/fonts.alias";
+$from = "$to.orig";
+$option = $ARGV[1];
+exit 0 if $option ne 'POST-INSTALL';
+rename($to, $from) || die("Can't rename: $!");
+open(IN, $from) || die("Can't open $from: $!");
+open(OUT, ">$to") || die("Can't open $to: $!");
+while (<IN>) {
+ chop;
+ if (/^\s*!/ || /^\s*$/) {
+ print OUT "$_\n";
+ }
+ else {
+ @line = split(/\s+/, $_);
+ @elm = split(/-+/, $line[0]);
+ if ($elm[1] ne 'netscape' && $elm[1] ne 'netscape.k10') {
+ print OUT "$_\n";
+ }
+ }
+}
+for (split(/\n/, <<"END"))
+-netscape-fixed-medium-r-normal--24-234-75-75-c-120-jisx0201.1976-0 -sony-fixed-medium-r-normal--24-170-100-100-c-120-jisx0201.1976-0
+-netscape-fixed-medium-r-normal--16-156-75-75-c-80-jisx0201.1976-0 -sony-fixed-medium-r-normal--16-120-100-100-c-80-jisx0201.1976-0
+-netscape-fixed-medium-r-normal--14-130-75-75-c-70-jisx0201.1976-0 -misc-fixed-medium-r-normal--14-130-75-75-c-70-jisx0201.1976-0
+-netscape-fixed-medium-r-normal--12-104-75-75-c-60-jisx0201.1976-0 -mnkaname-fixed-medium-r-normal--12-110-75-75-c-60-jisx0201.1976-0
+-netscape-fixed-medium-r-normal--24-234-75-75-c-240-jisx0208.1983-0 -jis-fixed-medium-r-normal--24-230-75-75-c-240-jisx0208.1983-0
+-netscape-fixed-medium-r-normal--16-156-75-75-c-160-jisx0208.1983-0 -jis-fixed-medium-r-normal--16-150-75-75-c-160-jisx0208.1983-0
+-netscape-fixed-medium-r-normal--14-130-75-75-c-140-jisx0208.1983-0 -misc-fixed-medium-r-normal--14-130-75-75-c-140-jisx0208.1983-0
+-netscape-fixed-medium-r-normal--12-104-75-75-c-120-jisx0208.1983-0 -mnkaname-fixed-medium-r-normal--12-110-75-75-c-120-jisx0208.1983-0
+-netscape-fixed-medium-r-normal--10-78-75-75-c-100-jisx0208.1983-0 -misc-fixed-medium-r-normal--10-90-75-75-c-100-jisx0208.1983-0
+-netscape-fixed-medium-r-normal--24-234-75-75-c-240-jisx0212.1990-0 -wadalab-mincho-medium-r-normal--24-231-75-75-c-240-jisx0212.1990-30
+-netscape-fixed-medium-r-normal--16-156-75-75-c-160-jisx0212.1990-0 -misc-fixed-medium-r-normal--16-150-75-75-c-160-jisx0212.1990-0
+-netscape-fixed-medium-r-normal--14-130-75-75-c-140-jisx0212.1990-0 -misc-fixed-medium-r-normal--14-132-75-75-c-140-jisx0212.1990-0
+END
+{
+ print OUT "$_\n";
+}
+#system("$prefix/bin/xset fp rehash");
diff --git a/japanese/alias-fonts/pkg-plist b/japanese/alias-fonts/pkg-plist
new file mode 100644
index 000000000000..40054c0b96ed
--- /dev/null
+++ b/japanese/alias-fonts/pkg-plist
@@ -0,0 +1 @@
+@comment WE HAVE NOTHING TO DO HERE.
diff --git a/japanese/netscape-fonts/Makefile b/japanese/netscape-fonts/Makefile
new file mode 100644
index 000000000000..2a23287ad515
--- /dev/null
+++ b/japanese/netscape-fonts/Makefile
@@ -0,0 +1,26 @@
+# Ports collection makefile for: Japanese Font Setup for Netscape browsers
+# Version required: 1.0
+# Date created: 22 Jun 1998
+# Whom: sada
+#
+# $Id$
+#
+
+DISTNAME= ja-netscape-fonts-1.0
+CATEGORIES= japanese www x11-fonts
+DISTFILES= # empty
+
+MAINTAINER= sada@e-mail.ne.jp
+
+RUN_DEPENDS= \
+ ${PREFIX}/lib/X11/k12:${PORTSDIR}/japanese/k12 \
+ ${PREFIX}/lib/X11/fonts/misc/5x10B.pcf.Z:${PORTSDIR}/japanese/k10
+
+USE_X_PREFIX= yes
+NO_BUILD= yes
+
+do-install:
+ @${SETENV} PKG_PREFIX=${PREFIX} \
+ /usr/bin/perl ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
+
+.include <bsd.port.mk>
diff --git a/japanese/netscape-fonts/pkg-comment b/japanese/netscape-fonts/pkg-comment
new file mode 100644
index 000000000000..0aa243707548
--- /dev/null
+++ b/japanese/netscape-fonts/pkg-comment
@@ -0,0 +1 @@
+Japanese Font Setup for Netscape Browsers.
diff --git a/japanese/netscape-fonts/pkg-deinstall b/japanese/netscape-fonts/pkg-deinstall
new file mode 100644
index 000000000000..c1f89ca64df8
--- /dev/null
+++ b/japanese/netscape-fonts/pkg-deinstall
@@ -0,0 +1,22 @@
+#!/usr/bin/perl
+$prefix = $ENV{'PKG_PREFIX'};
+$dir = "$prefix/lib/X11/fonts/misc";
+$to = "$dir/fonts.alias";
+$from = "$to.orig";
+rename($to, $from) || die("Can't rename: $!");
+open(IN, $from) || die("Can't open $from: $!");
+open(OUT, ">$to") || die("Can't open $to: $!");
+while (<IN>) {
+ chop;
+ if (/^\s*!/ || /^\s*$/) {
+ print OUT "$_\n";
+ }
+ else {
+ @line = split(/\s+/, $_);
+ @elm = split(/-+/, $line[0]);
+ if ($elm[1] ne 'netscape' && $elm[1] ne 'netscape.k10') {
+ print OUT "$_\n";
+ }
+ }
+}
+#system("$prefix/bin/xset fp rehash");
diff --git a/japanese/netscape-fonts/pkg-descr b/japanese/netscape-fonts/pkg-descr
new file mode 100644
index 000000000000..0aa243707548
--- /dev/null
+++ b/japanese/netscape-fonts/pkg-descr
@@ -0,0 +1 @@
+Japanese Font Setup for Netscape Browsers.
diff --git a/japanese/netscape-fonts/pkg-install b/japanese/netscape-fonts/pkg-install
new file mode 100644
index 000000000000..e1bc680f1ecf
--- /dev/null
+++ b/japanese/netscape-fonts/pkg-install
@@ -0,0 +1,41 @@
+#!/usr/bin/perl
+$prefix = $ENV{'PKG_PREFIX'};
+$dir = "$prefix/lib/X11/fonts/misc";
+$to = "$dir/fonts.alias";
+$from = "$to.orig";
+$option = $ARGV[1];
+exit 0 if $option ne 'POST-INSTALL';
+rename($to, $from) || die("Can't rename: $!");
+open(IN, $from) || die("Can't open $from: $!");
+open(OUT, ">$to") || die("Can't open $to: $!");
+while (<IN>) {
+ chop;
+ if (/^\s*!/ || /^\s*$/) {
+ print OUT "$_\n";
+ }
+ else {
+ @line = split(/\s+/, $_);
+ @elm = split(/-+/, $line[0]);
+ if ($elm[1] ne 'netscape' && $elm[1] ne 'netscape.k10') {
+ print OUT "$_\n";
+ }
+ }
+}
+for (split(/\n/, <<"END"))
+-netscape-fixed-medium-r-normal--24-234-75-75-c-120-jisx0201.1976-0 -sony-fixed-medium-r-normal--24-170-100-100-c-120-jisx0201.1976-0
+-netscape-fixed-medium-r-normal--16-156-75-75-c-80-jisx0201.1976-0 -sony-fixed-medium-r-normal--16-120-100-100-c-80-jisx0201.1976-0
+-netscape-fixed-medium-r-normal--14-130-75-75-c-70-jisx0201.1976-0 -misc-fixed-medium-r-normal--14-130-75-75-c-70-jisx0201.1976-0
+-netscape-fixed-medium-r-normal--12-104-75-75-c-60-jisx0201.1976-0 -mnkaname-fixed-medium-r-normal--12-110-75-75-c-60-jisx0201.1976-0
+-netscape-fixed-medium-r-normal--24-234-75-75-c-240-jisx0208.1983-0 -jis-fixed-medium-r-normal--24-230-75-75-c-240-jisx0208.1983-0
+-netscape-fixed-medium-r-normal--16-156-75-75-c-160-jisx0208.1983-0 -jis-fixed-medium-r-normal--16-150-75-75-c-160-jisx0208.1983-0
+-netscape-fixed-medium-r-normal--14-130-75-75-c-140-jisx0208.1983-0 -misc-fixed-medium-r-normal--14-130-75-75-c-140-jisx0208.1983-0
+-netscape-fixed-medium-r-normal--12-104-75-75-c-120-jisx0208.1983-0 -mnkaname-fixed-medium-r-normal--12-110-75-75-c-120-jisx0208.1983-0
+-netscape-fixed-medium-r-normal--10-78-75-75-c-100-jisx0208.1983-0 -misc-fixed-medium-r-normal--10-90-75-75-c-100-jisx0208.1983-0
+-netscape-fixed-medium-r-normal--24-234-75-75-c-240-jisx0212.1990-0 -wadalab-mincho-medium-r-normal--24-231-75-75-c-240-jisx0212.1990-30
+-netscape-fixed-medium-r-normal--16-156-75-75-c-160-jisx0212.1990-0 -misc-fixed-medium-r-normal--16-150-75-75-c-160-jisx0212.1990-0
+-netscape-fixed-medium-r-normal--14-130-75-75-c-140-jisx0212.1990-0 -misc-fixed-medium-r-normal--14-132-75-75-c-140-jisx0212.1990-0
+END
+{
+ print OUT "$_\n";
+}
+#system("$prefix/bin/xset fp rehash");
diff --git a/japanese/netscape-fonts/pkg-plist b/japanese/netscape-fonts/pkg-plist
new file mode 100644
index 000000000000..40054c0b96ed
--- /dev/null
+++ b/japanese/netscape-fonts/pkg-plist
@@ -0,0 +1 @@
+@comment WE HAVE NOTHING TO DO HERE.