Skip to content

Commit

Permalink
chinese/gb2jis: Eliminate MAN*PREFIX usage
Browse files Browse the repository at this point in the history
While here, move manpages to share/man
  • Loading branch information
rbgarga committed Jan 11, 2024
1 parent 7074d7f commit 3f26710
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions chinese/gb2jis/Makefile
@@ -1,5 +1,6 @@
PORTNAME= gb2jis
PORTVERSION= 1.5
PORTREVISION= 1
CATEGORIES= chinese
MASTER_SITES= http://kanji.zinbun.kyoto-u.ac.jp/~yasuoka/ftp/program/
DISTFILES= ${PORTNAME}.tar.Z
Expand Down
16 changes: 8 additions & 8 deletions chinese/gb2jis/files/patch-Makefile
@@ -1,18 +1,18 @@
--- Makefile.orig 1995-02-09 12:29:35.000000000 +0800
+++ Makefile 2013-09-26 20:13:01.000000000 +0800
@@ -1,6 +1,10 @@
--- Makefile.orig 1995-02-09 04:29:35 UTC
+++ Makefile
@@ -1,7 +1,10 @@ SHELL = /bin/sh
SHELL = /bin/sh

-CFLAGS = -O -DUNDEFCHAR=0xa2a2
+CC ?= cc
+CFLAGS ?= -O -pipe
+CFLAGS += -DUNDEFCHAR=0xa2a2
+MAN1PREFIX?= ${MANPREFIX}
+

+
TABLEC = GB2312JX0208.c GB2312JX0212.c GB2312UZPJ.c
TABLEO = GB2312JX0208.o GB2312JX0212.o GB2312UZPJ.o
@@ -11,19 +15,20 @@ TABLEO = GB2312JX0208.o GB2312JX0212.o G

@@ -11,19 +14,20 @@ TABLEO = GB2312JX0208.o GB2312JX0212.o GB2312UZPJ.o
./t2c $< $@

.c.o:
Expand All @@ -33,12 +33,12 @@
- cp gb2jis /usr/local/bin/gb2jis
- cp gb2jis.1 /usr/local/man/man1/gb2jis.1
+ ${BSD_INSTALL_PROGRAM} gb2jis ${DESTDIR}${PREFIX}/bin/gb2jis
+ ${BSD_INSTALL_MAN} gb2jis.1 ${DESTDIR}${MAN1PREFIX}/man/man1/gb2jis.1
+ ${BSD_INSTALL_MAN} gb2jis.1 ${DESTDIR}${PREFIX}/share/man/man1/gb2jis.1
+ ${BSD_INSTALL_DATA} gb2jis.el ${DESTDIR}${PREFIX}/share/emacs/site-lisp/gb2jis.el
# nroff -man gb2jis.1 > /usr/local/catman/C/u_man/cat1/gb2jis.1

clean:
@@ -34,7 +39,7 @@ check: $(TABLEC)
@@ -34,7 +38,7 @@ t2c: t2c.c
-egrep '0x([2-9].[8-f]|[8-f].[2-9])' GB2312UZPJ.c

t2c: t2c.c
Expand Down
2 changes: 1 addition & 1 deletion chinese/gb2jis/pkg-plist
@@ -1,3 +1,3 @@
bin/gb2jis
man/man1/gb2jis.1.gz
share/man/man1/gb2jis.1.gz
share/emacs/site-lisp/gb2jis.el

0 comments on commit 3f26710

Please sign in to comment.