Skip to content

Commit

Permalink
chinese/jis2gb: 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 3f26710 commit d4fc766
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
3 changes: 1 addition & 2 deletions chinese/jis2gb/Makefile
@@ -1,5 +1,6 @@
PORTNAME= jis2gb
PORTVERSION= 1.5
PORTREVISION= 1
CATEGORIES= chinese
MASTER_SITES= http://kanji.zinbun.kyoto-u.ac.jp/~yasuoka/ftp/program/
DISTFILES= jis2gb.tar.Z
Expand All @@ -10,6 +11,4 @@ COMMENT= Convert JIS Kanji to GuoBiao Hanzi
WRKSRC= ${WRKDIR}/${PORTNAME}
ALL_TARGET=

#MAN1= ${PORTNAME}.1

.include <bsd.port.mk>
14 changes: 6 additions & 8 deletions chinese/jis2gb/files/patch-Makefile
@@ -1,19 +1,17 @@
--- Makefile.orig 1995-10-05 16:21:32.000000000 +0800
+++ Makefile 2013-09-26 21:15:32.000000000 +0800
@@ -1,6 +1,11 @@
--- Makefile.orig 1995-10-05 08:21:32 UTC
+++ Makefile
@@ -1,6 +1,9 @@ SHELL = /bin/sh
SHELL = /bin/sh

-CFLAGS = -O -DUNDEFCHAR=0xa1f5
+CC?= cc
+CFLAGS?= -O -pipe
+CFLAGS+= -DUNDEFCHAR=0xa1f5
+PREFIX?= /usr/local
+MANPREFIX?= ${PREFIX}
+MAN1PREFIX?= ${MANPREFIX}

TABLEC = JX0208GB2312.c JX0208GB8565.c JX0212GB2312.c JX0212GB8565.c \
MSSJISGB2312.c MSSJISJX0208.c MSSJISJX0212.c
@@ -13,19 +18,20 @@ TABLEO = JX0208GB2312.o JX0208GB8565.o J
@@ -13,19 +16,20 @@ TABLEO = JX0208GB2312.o JX0208GB8565.o JX0212GB2312.o
./t2c $< $@

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

clean:
@@ -36,7 +42,7 @@ check: $(TABLEC)
@@ -36,7 +40,7 @@ t2c: t2c.c
-egrep '0x([2-9]|a[1-b]|f[0-9]|..[2-9])' JX0208GB8565.c JX0212GB8565.c

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

0 comments on commit d4fc766

Please sign in to comment.