Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Mar 2015 17:35:30 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r381630 - head/x11-fonts/code2001
Message-ID:  <201503191735.t2JHZU1A070869@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu Mar 19 17:35:29 2015
New Revision: 381630
URL: https://svnweb.freebsd.org/changeset/ports/381630
QAT: https://qat.redports.org/buildarchive/r381630/

Log:
  Convert to USES=fonts
  various cleanup

Deleted:
  head/x11-fonts/code2001/pkg-plist
Modified:
  head/x11-fonts/code2001/Makefile

Modified: head/x11-fonts/code2001/Makefile
==============================================================================
--- head/x11-fonts/code2001/Makefile	Thu Mar 19 17:33:11 2015	(r381629)
+++ head/x11-fonts/code2001/Makefile	Thu Mar 19 17:35:29 2015	(r381630)
@@ -3,6 +3,7 @@
 
 PORTNAME=	code2001
 PORTVERSION=	0.919
+PORTREVISION=	1
 CATEGORIES=	x11-fonts
 MASTER_SITES=	CENKES/myports/${DIST_SUBDIR}
 DISTFILES=	CODE2001.ZIP
@@ -11,26 +12,16 @@ DIST_SUBDIR=	${PORTNAME}-${PORTVERSION}
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Free Plane 1 Unicode-based Font
 
-BUILD_DEPENDS=	mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale	\
-		mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir	\
-		fc-cache:${PORTSDIR}/x11-fonts/fontconfig
-
-USES=		zip
-PLIST_SUB=	FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"
+USES=		fonts zip
 FONTNAME=	${PORTNAME}
 FONTSDIR?=	${PREFIX}/lib/X11/fonts/${FONTNAME}
-
-MKFONTSCL_CMD=	${LOCALBASE}/bin/mkfontscale
-MKFONTDIR_CMD=	${LOCALBASE}/bin/mkfontdir
-FCCACHE_CMD=	${LOCALBASE}/bin/fc-cache -f -v
+NO_BUILD=	yes
+PLIST_FILES=	${FONTSDIR}/${FONTNAME}.ttf
 
 post-extract:
 	@${MKDIR} ${WRKSRC}
 	@${MV} ${WRKDIR}/CODE2001.TTF ${WRKSRC}/${FONTNAME}.ttf
 
-do-build:
-	@cd ${WRKSRC} && ${MKFONTSCL_CMD} && ${MKFONTDIR_CMD}
-
 do-install:
 	@${MKDIR} ${STAGEDIR}${FONTSDIR}
 	${INSTALL_DATA} ${WRKSRC}/* ${STAGEDIR}${FONTSDIR}



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