svn commit: r349514 - in head/x11-fonts/cyr-rfx: . files

Dmitry Marakasov amdmi3 at FreeBSD.org
Sat Mar 29 14:05:39 UTC 2014


Author: amdmi3
Date: Sat Mar 29 14:05:38 2014
New Revision: 349514
URL: http://svnweb.freebsd.org/changeset/ports/349514
QAT: https://qat.redports.org/buildarchive/r349514/

Log:
  - Support staging
  - Install into PREFIX, not LOCALBASE
  - Fix pkg-message displaying
  
  PR:		187344
  Submitted by:	amdmi3
  Approved by:	maintainer timeout, portmgr (blanket)

Added:
  head/x11-fonts/cyr-rfx/files/pkg-message.in
     - copied, changed from r349506, head/x11-fonts/cyr-rfx/pkg-message
Deleted:
  head/x11-fonts/cyr-rfx/pkg-message
Modified:
  head/x11-fonts/cyr-rfx/Makefile

Modified: head/x11-fonts/cyr-rfx/Makefile
==============================================================================
--- head/x11-fonts/cyr-rfx/Makefile	Sat Mar 29 14:04:00 2014	(r349513)
+++ head/x11-fonts/cyr-rfx/Makefile	Sat Mar 29 14:05:38 2014	(r349514)
@@ -3,7 +3,7 @@
 
 PORTNAME=	cyr-rfx-${CYR_RFX_ENCODING}
 PORTVERSION=	1.1
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	x11-fonts ukrainian russian
 MASTER_SITES=	ftp://ftp.ptc.spbu.ru/mirror/ftp.inp.nsk.su/%SUBDIR%/ \
 		ftp://ftp.inp.nsk.su/%SUBDIR%/
@@ -26,12 +26,10 @@ CYR_RFX_ENCODING?=	koi8-o
 WRKSRC=		${WRKDIR}/${CYR_RFX_ENCODING}
 MAKEFILE=	${FILESDIR}/Makefile.bdf2pcf
 INST_DIR=	"lib/X11/fonts/${PORTNAME}"
-MAKE_ENV+=	INST_DIR="${LOCALBASE}/${INST_DIR}" MKDIR="${MKDIR}"
-PLIST_SUB+=	INST_DIR="${INST_DIR}"
+MAKE_ENV+=	INST_DIR="${STAGEDIR}${PREFIX}/${INST_DIR}" MKDIR="${MKDIR}"
+PLIST_SUB=	INST_DIR="${INST_DIR}"
 
-NO_STAGE=	yes
-post-install:
-	@${SED} -e 's,/usr/X11R6,${LOCALBASE},g' -e \
-		's,koi8-o,${CYR_RFX_ENCODING},g' < ${PKGMESSAGE}
+SUB_LIST=	CYR_RFX_ENCODING="${CYR_RFX_ENCODING}"
+SUB_FILES=	pkg-message
 
 .include <bsd.port.mk>

Copied and modified: head/x11-fonts/cyr-rfx/files/pkg-message.in (from r349506, head/x11-fonts/cyr-rfx/pkg-message)
==============================================================================
--- head/x11-fonts/cyr-rfx/pkg-message	Sat Mar 29 13:19:27 2014	(r349506, copy source)
+++ head/x11-fonts/cyr-rfx/files/pkg-message.in	Sat Mar 29 14:05:38 2014	(r349514)
@@ -1,10 +1,10 @@
 
 This port provides Cyrillic replacements for most of the standard
-	/usr/X11R6/lib/X11/fonts/misc
+	%%PREFIX%%/lib/X11/fonts/misc
 and
-	/usr/X11R6/lib/X11/fonts/75dpi
+	%%PREFIX%%/lib/X11/fonts/75dpi
 fonts.
 
 You may want to make sure, the
-	/usr/X11R6/lib/X11/fonts/cyr-rfx-koi8-o
+	%%PREFIX%%/lib/X11/fonts/cyr-rfx-%%CYR_RFX_ENCODING%%
 is listed in your fontpath before those two paths.


More information about the svn-ports-all mailing list