Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Nov 2014 00:13:31 +0000 (UTC)
From:      Mikhail Teterin <mi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r372758 - head/russian/koi8r-ps
Message-ID:  <201411190013.sAJ0DVX4054490@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mi
Date: Wed Nov 19 00:13:31 2014
New Revision: 372758
URL: https://svnweb.freebsd.org/changeset/ports/372758
QAT: https://qat.redports.org/buildarchive/r372758/

Log:
  Fix the generation of Fontmap.diff, which I broke earlier, when trying to
  support staging...

Modified:
  head/russian/koi8r-ps/Makefile

Modified: head/russian/koi8r-ps/Makefile
==============================================================================
--- head/russian/koi8r-ps/Makefile	Tue Nov 18 23:54:17 2014	(r372757)
+++ head/russian/koi8r-ps/Makefile	Wed Nov 19 00:13:31 2014	(r372758)
@@ -3,17 +3,17 @@
 
 PORTNAME=	koi8rPS
 PORTVERSION=	1.0
+PORTREVISION=	1
 CATEGORIES=	russian print
 MASTER_SITES=	ftp://ftp.redcom.ru/pub/X/psfonts/ \
 		ftp://ftp.kapella.gpi.ru/pub/cyrillic/psfonts/
 DISTFILES=	gs-type1_koi8_fonts.tgz gs-type1_koi8_afm.tgz \
 		XFree86-Type1_fonts.dir.scale.gz
+EXTRACT_ONLY=
 
 MAINTAINER=	mi@aldan.algebra.com
 COMMENT=	Add Russian (KOI8) fonts to your PostScript fonts collection
 
-EXTRACT_ONLY=
-
 DIST_SUBDIR=	koi8r-ps
 
 .include <bsd.port.pre.mk>
@@ -25,7 +25,7 @@ FONTMAP!=	${SH} ${FILESDIR}/find-fontmap
 NO_PACKAGE=	Nothing to build, configurations only
 NO_WRKSUBDIR=	Yes
 
-CPS_DIR=	${STAGEDIR}${PREFIX}/share/koi8r-ps
+CPS_DIR=	${PREFIX}/share/koi8r-ps
 
 do-extract:
 	${MKDIR} ${WRKSRC}
@@ -43,10 +43,10 @@ do-configure:
 		< ${FILESDIR}/Fontmap.diff > ${WRKSRC}/Fontmap.diff
 
 do-install:
-	${MKDIR} ${CPS_DIR}
-	${TAR} -C ${CPS_DIR} -xzpf \
+	${MKDIR} ${STAGEDIR}${CPS_DIR}
+	${TAR} -C ${STAGEDIR}${CPS_DIR} -xzpf \
 		${DISTDIR}/${DIST_SUBDIR}/gs-type1_koi8_fonts.tgz
-	${TAR} -C ${CPS_DIR} -xzpf \
+	${TAR} -C ${STAGEDIR}${CPS_DIR} -xzpf \
 		${DISTDIR}/${DIST_SUBDIR}/gs-type1_koi8_afm.tgz
 .if !exists(${FONTMAP})
 	#################################################################
@@ -57,7 +57,6 @@ do-install:
 	###	${PREFIX}/share/ghostscript/5.50/Fontmap
 	### for GhostScript to use cyrillic fonts.
 	#################################################################
-	@test -t 0 && test -t 1 && ${ECHO} -n "Press enter" && read junk || ${TRUE}
 .else
 	@if ${GREP} -q ArialCyrMT-BoldItalic "${FONTMAP}" ; then \
 		${ECHO} Apparently, Fontmap already lists this fonts. Ok. \
@@ -69,10 +68,10 @@ do-install:
 			${RM} -f "${FONTMAP}".CyrPS ; \
 	fi
 .endif
-	${ECHO_CMD} ${FONTMAP} > ${CPS_DIR}/fontmap.path
-	${INSTALL_DATA} ${WRKSRC}/Fontmap.diff ${CPS_DIR}
-	${INSTALL_DATA} ${WRKSRC}/fonts.dir ${CPS_DIR}
-	${LN} -s fonts.dir ${CPS_DIR}/fonts.scale
+	${ECHO_CMD} ${FONTMAP} > ${STAGEDIR}${CPS_DIR}/fontmap.path
+	${INSTALL_DATA} ${WRKSRC}/Fontmap.diff ${STAGEDIR}${CPS_DIR}
+	${INSTALL_DATA} ${WRKSRC}/fonts.dir ${STAGEDIR}${CPS_DIR}
+	${LN} -s fonts.dir ${STAGEDIR}${CPS_DIR}/fonts.scale
 	${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.post.mk>



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