Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Feb 2014 14:09:51 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r342297 - in head: chinese/kon2 japanese/kon2-14dot japanese/kon2-16dot japanese/kon2-16dot/files
Message-ID:  <201402021409.s12E9pjn068689@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Sun Feb  2 14:09:50 2014
New Revision: 342297
URL: http://svnweb.freebsd.org/changeset/ports/342297
QAT: https://qat.redports.org/buildarchive/r342297/

Log:
  Stage support for japanese/kon2-16dot and it's slaves
  
  PR:		port/186321 (based on)
  Submitted by:	maintainer

Modified:
  head/chinese/kon2/Makefile
  head/japanese/kon2-14dot/Makefile
  head/japanese/kon2-16dot/Makefile
  head/japanese/kon2-16dot/files/dotconfig
  head/japanese/kon2-16dot/files/patch-Makefile.FreeBSD
  head/japanese/kon2-16dot/files/patch-font_Makefile.FreeBSD
  head/japanese/kon2-16dot/files/patch-src_Makefile.FreeBSD
  head/japanese/kon2-16dot/pkg-descr
  head/japanese/kon2-16dot/pkg-plist

Modified: head/chinese/kon2/Makefile
==============================================================================
--- head/chinese/kon2/Makefile	Sun Feb  2 14:08:17 2014	(r342296)
+++ head/chinese/kon2/Makefile	Sun Feb  2 14:09:50 2014	(r342297)
@@ -19,7 +19,7 @@ PLIST_FILES=	share/fonts/bdf/kc15f.bdf.g
 		share/fonts/bdf/8x16.bdf.gz
 
 post-patch: post-patch-zhkon2
-NO_STAGE=	yes
+
 post-patch-zhkon2:
 	@${REINPLACE_CMD} -e 's,/dev/vga,/dev/ttyv0,g' ${WRKSRC}/src/term.c \
 		${WRKSRC}/src/display/vga.c
@@ -32,9 +32,12 @@ post-build-zhkon2:
 
 post-install: post-install-zhkon2
 post-install-zhkon2:
-	@${MKDIR} ${PREFIX}/share/fonts/bdf
-	cd ${KCFONTS_WRKSRC} && ./kc15f | ${GZIP_CMD} - > ${PREFIX}/share/fonts/bdf/kc15f.bdf.gz
-	cd ${CCE_WRKSRC} && ${CAT} fonts/gb16fs.bdf | ${GZIP_CMD} - > ${PREFIX}/share/fonts/bdf/gb16fs.bdf.gz
-	cd ${CCE_WRKSRC} && ${CAT} fonts/8x16.bdf | ${GZIP_CMD} - > ${PREFIX}/share/fonts/bdf/8x16.bdf.gz
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/fonts/bdf
+	cd ${KCFONTS_WRKSRC} && ./kc15f | ${GZIP_CMD} - > \
+		${STAGEDIR}${PREFIX}/share/fonts/bdf/kc15f.bdf.gz
+	cd ${CCE_WRKSRC} && ${CAT} fonts/gb16fs.bdf | ${GZIP_CMD} - > \
+		${STAGEDIR}${PREFIX}/share/fonts/bdf/gb16fs.bdf.gz
+	cd ${CCE_WRKSRC} && ${CAT} fonts/8x16.bdf | ${GZIP_CMD} - > \
+		${STAGEDIR}${PREFIX}/share/fonts/bdf/8x16.bdf.gz
 
 .include "${MASTERDIR}/Makefile"

Modified: head/japanese/kon2-14dot/Makefile
==============================================================================
--- head/japanese/kon2-14dot/Makefile	Sun Feb  2 14:08:17 2014	(r342296)
+++ head/japanese/kon2-14dot/Makefile	Sun Feb  2 14:09:50 2014	(r342297)
@@ -5,5 +5,4 @@ KONFONT=	14dot
 
 MASTERDIR=	${.CURDIR}/../kon2-16dot
 
-NO_STAGE=	yes
 .include "${MASTERDIR}/Makefile"

Modified: head/japanese/kon2-16dot/Makefile
==============================================================================
--- head/japanese/kon2-16dot/Makefile	Sun Feb  2 14:08:17 2014	(r342296)
+++ head/japanese/kon2-16dot/Makefile	Sun Feb  2 14:09:50 2014	(r342297)
@@ -14,19 +14,14 @@ DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
 EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
 
 # '+=' is for slave ports
-MAINTAINER?=	turutani@scphys.kyoto-u.ac.jp
+MAINTAINER=	turutani@scphys.kyoto-u.ac.jp
 COMMENT=	Kanji On Console -- Display kanji characters on your own console
 
 ONLY_FOR_ARCHS=	i386 amd64
 
-MAN1=		kon.1
-MANLANG=	ja
-
 PORTDOCS=	README README.FreeBSD
 SUB_LIST=	KON16FONT=${KON16FONT} \
 		KON14FONT=${KON14FONT}
-
-NO_STAGE=	yes
 .include <bsd.port.pre.mk>
 
 .if !defined(KONFONT)
@@ -48,6 +43,7 @@ post-patch:
 ${WRKSRC}/.config::
 	(${ECHO_CMD} "DISTDIR = ${DISTDIR}"; \
 	 ${ECHO_CMD} "TOPDIR = ${PREFIX}"; \
+	 ${ECHO_CMD} "S_TOPDIR = ${STAGEDIR}${PREFIX}"; \
 	 ${CAT} ${FILESDIR}/dotconfig; \
 	) > ${WRKSRC}/.config
 
@@ -64,10 +60,8 @@ post-configure:
 		done
 
 post-install:
-	${INSTALL_MAN} ${WRKSRC}/src/kon.1 ${MANPREFIX}/man/ja/man1
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
-.endif
+	${INSTALL_MAN} ${WRKSRC}/src/kon.1 ${STAGEDIR}${MANPREFIX}/man/ja/man1
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.post.mk>

Modified: head/japanese/kon2-16dot/files/dotconfig
==============================================================================
--- head/japanese/kon2-16dot/files/dotconfig	Sun Feb  2 14:08:17 2014	(r342296)
+++ head/japanese/kon2-16dot/files/dotconfig	Sun Feb  2 14:09:50 2014	(r342297)
@@ -1,10 +1,10 @@
 # $FreeBSD$
-BINDIR	= $(TOPDIR)/bin
-LIBDIR	= $(TOPDIR)/etc
-MANDIR	= $(TOPDIR)/man/ja/man
-FONTDIR	= $(TOPDIR)/share/fonts/bdf
+BINDIR	= $(S_TOPDIR)/bin
+LIBDIR	= $(S_TOPDIR)/etc
+MANDIR	= $(S_TOPDIR)/man/ja/man
+FONTDIR	= $(S_TOPDIR)/share/fonts/bdf
 CONFIG_NAME = kon.cfg
-CFLAGS  += -DCONFIG_NAME=\"$(LIBDIR)/$(CONFIG_NAME)\"
+CFLAGS  += -DCONFIG_NAME=\"$(TOPDIR)/etc/$(CONFIG_NAME)\"
 
 HAS_VGA = HAS_VGA
 FLD_MINIX = FLD_MINIX

Modified: head/japanese/kon2-16dot/files/patch-Makefile.FreeBSD
==============================================================================
--- head/japanese/kon2-16dot/files/patch-Makefile.FreeBSD	Sun Feb  2 14:08:17 2014	(r342296)
+++ head/japanese/kon2-16dot/files/patch-Makefile.FreeBSD	Sun Feb  2 14:09:50 2014	(r342297)
@@ -13,10 +13,10 @@
  	(cd ${.CURDIR}/src ; make install)
  	(cd ${.CURDIR}/font ; make install)
 -	install -g wheel -o root -m 0644  -c kon.cfg.FreeBSD /usr/local/etc/kon.cfg
-+	install -g wheel -o root -m 0644  -c kon.cfg.FreeBSD ${LIBDIR}/kon.cfg
++	install -m 0644  -c kon.cfg.FreeBSD ${LIBDIR}/kon.cfg
 +	@sh tools/makedir ${FONTDIR}
 +	@for i in k14.bdf 7x14rk.bdf jiskan16.bdf 8x16rk.bdf; do\
-+	install -c -m 644 -o bin -g bin $(DISTDIR)/$$i ${FONTDIR};\
++	install -c -m 644 $(DISTDIR)/$$i ${FONTDIR};\
 +	gzip -f -9 ${FONTDIR}/$$i;\
 +	done
  

Modified: head/japanese/kon2-16dot/files/patch-font_Makefile.FreeBSD
==============================================================================
--- head/japanese/kon2-16dot/files/patch-font_Makefile.FreeBSD	Sun Feb  2 14:08:17 2014	(r342296)
+++ head/japanese/kon2-16dot/files/patch-font_Makefile.FreeBSD	Sun Feb  2 14:09:50 2014	(r342297)
@@ -1,5 +1,5 @@
 --- font/Makefile.FreeBSD.orig	1997-01-25 19:08:44.000000000 +0900
-+++ font/Makefile.FreeBSD	2012-05-10 00:14:28.693551770 +0900
++++ font/Makefile.FreeBSD	2014-01-31 11:01:37.000000000 +0900
 @@ -11,6 +11,7 @@
  .endif
  
@@ -8,3 +8,11 @@
  
  .if exists(${.OBJDIR}/../lib)
  LIBOBJ=	-L${.OBJDIR}/../lib
+@@ -20,4 +21,7 @@
+ 
+ LDADD=	${LIBOBJ} -lgon
+ 
++install: ${PROG}
++	/usr/bin/install -s ${PROG} ${BINDIR}
++
+ .include <bsd.prog.mk>

Modified: head/japanese/kon2-16dot/files/patch-src_Makefile.FreeBSD
==============================================================================
--- head/japanese/kon2-16dot/files/patch-src_Makefile.FreeBSD	Sun Feb  2 14:08:17 2014	(r342296)
+++ head/japanese/kon2-16dot/files/patch-src_Makefile.FreeBSD	Sun Feb  2 14:09:50 2014	(r342297)
@@ -1,14 +1,14 @@
 --- src/Makefile.FreeBSD.orig	1997-01-30 10:29:25.000000000 +0900
-+++ src/Makefile.FreeBSD	2012-05-10 02:50:12.820551080 +0900
-@@ -1,12 +1,19 @@
++++ src/Makefile.FreeBSD	2014-01-31 10:53:18.000000000 +0900
+@@ -1,12 +1,17 @@
  # FreeBSD makefile for kon
  # Tatsumi Hosokawa <hosokawa@jp.FreeBSD.org>
  
 +.include <bsd.own.mk>
 +
  PROG=	kon
- BINOWN=		root
- BINMODE=	4555
+-BINOWN=		root
+-BINMODE=	4555
 -SRCS=	vt.c sock.c fnld.c vc.c mouse.c term.c main.c utmp.c errors.c child.c
 +SRCS=	vt.c sock.c fnld.c vc.c mouse.c term.c main.c errors.c child.c
 +.if exists(${INCLUDEDIR}/utmpx.h)
@@ -21,4 +21,12 @@
 +MK_MAN=	no
  CFLAGS+=	-I${.CURDIR}/../include
  CLEANFILES=	Makefile
-
+ 
+@@ -28,4 +33,7 @@
+ .include "${.CURDIR}/../.config"
+ .endif
+ 
++install: ${PROG}
++	/usr/bin/install -s ${PROG} ${BINDIR}
++
+ .include <bsd.prog.mk>

Modified: head/japanese/kon2-16dot/pkg-descr
==============================================================================
--- head/japanese/kon2-16dot/pkg-descr	Sun Feb  2 14:08:17 2014	(r342296)
+++ head/japanese/kon2-16dot/pkg-descr	Sun Feb  2 14:09:50 2014	(r342297)
@@ -2,7 +2,7 @@ KON2 is a program for displaying Kanji (
 console of Linux/FreeBSD. KON2 hooks the output of console and
 redirects to pseudo tty, drawing on the VGA display. 
 
-If KON2 would be going to somthing wrong, check shared-memories being
+If KON2 would be going to something wrong, check shared-memories being
 loading or not. If not, add "options SYSVSHM" to
 /usr/src/sys/i386/conf/GENERIC, and reconfigure the kernel.
 

Modified: head/japanese/kon2-16dot/pkg-plist
==============================================================================
--- head/japanese/kon2-16dot/pkg-plist	Sun Feb  2 14:08:17 2014	(r342296)
+++ head/japanese/kon2-16dot/pkg-plist	Sun Feb  2 14:09:50 2014	(r342297)
@@ -1,9 +1,16 @@
 bin/fld
+@mode 4555
 bin/kon
+@mode
 etc/kon.cfg
+@owner bin
+@group bin
 share/fonts/bdf/7x14rk.bdf.gz
 share/fonts/bdf/k14.bdf.gz
 share/fonts/bdf/8x16rk.bdf.gz
 share/fonts/bdf/jiskan16.bdf.gz
+@owner
+@group
+man/ja/man1/kon.1.gz
 @dirrm share/fonts/bdf
 @dirrmtry share/fonts



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402021409.s12E9pjn068689>