From owner-svn-ports-head@FreeBSD.ORG Mon Sep 1 09:21:45 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4DE626B7; Mon, 1 Sep 2014 09:21:45 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 392DC1EE7; Mon, 1 Sep 2014 09:21:45 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s819LjbL015633; Mon, 1 Sep 2014 09:21:45 GMT (envelope-from vanilla@FreeBSD.org) Received: (from vanilla@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s819Lia2015631; Mon, 1 Sep 2014 09:21:44 GMT (envelope-from vanilla@FreeBSD.org) Message-Id: <201409010921.s819Lia2015631@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: vanilla set sender to vanilla@FreeBSD.org using -f From: "Vanilla I. Shu" Date: Mon, 1 Sep 2014 09:21:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r366853 - in head/x11-fonts/sgifonts: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2014 09:21:45 -0000 Author: vanilla Date: Mon Sep 1 09:21:44 2014 New Revision: 366853 URL: http://svnweb.freebsd.org/changeset/ports/366853 QAT: https://qat.redports.org/buildarchive/r366853/ Log: Support STAGEDIR. PR: ports/193173 Submitted by: Ports Fury. Added: head/x11-fonts/sgifonts/files/ head/x11-fonts/sgifonts/files/pkg-message.in (contents, props changed) Modified: head/x11-fonts/sgifonts/Makefile Modified: head/x11-fonts/sgifonts/Makefile ============================================================================== --- head/x11-fonts/sgifonts/Makefile Mon Sep 1 09:18:32 2014 (r366852) +++ head/x11-fonts/sgifonts/Makefile Mon Sep 1 09:21:44 2014 (r366853) @@ -3,49 +3,60 @@ PORTNAME= sgifonts PORTVERSION= 1.0.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= x11-fonts -MASTER_SITES= ftp://patches-europe.sgi.com/pub/linux/ProPack1.4/SRPMS/ \ - ftp://ftp.rediris.es/sites/patches-europe.sgi.com/pub/linux/ProPack1.4/SRPMS/ +MASTER_SITES= ftp://patches.sgi.com/pub/linux/ProPack1.4/SRPMS/ DISTNAME= sgi-fonts-1.0-1.src EXTRACT_SUFX= .rpm MAINTAINER= ports@FreeBSD.org COMMENT= Fonts from the SGI ProPack 1.4 (originally for Linux) -BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf \ - mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir +LICENSE= MIT -PLIST= ${WRKDIR}/pkg-plist +BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf \ + mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir + +NO_ARCH= yes +NO_WRKSUBDIR= yes + +SUB_FILES= pkg-message + +PLIST_FILES= lib/X11/fonts/local/sgi/fonts.alias \ + lib/X11/fonts/local/sgi/fonts.dir \ + ${FONTS:S!^!lib/X11/fonts/local/sgi/!:S!$!.pcf.gz!} PLIST_DIRS= lib/X11/fonts/local/sgi -PKGMESSAGE= ${WRKDIR}/pkg-message -USES= imake -EXTRACT_CMD= ${TAR} -EXTRACT_BEFORE_ARGS= -O -xf -EXTRACT_AFTER_ARGS= sgi-fonts.tar.gz | ${TAR} -xf - -WRKSRC= ${WRKDIR}/sgi-fonts - -NO_STAGE= yes -pre-install: - @${RM} -f ${PLIST} - @cd ${WRKSRC}; for ii in `${LS} *gz fonts.alias fonts.dir|${SORT}`; do \ - ${ECHO_CMD} lib/X11/fonts/local/sgi/$${ii} >> ${PLIST}; \ - done - @${ECHO_CMD} "******************************************" >${PKGMESSAGE} - @${ECHO_CMD} "Add a line" >> ${PKGMESSAGE} - @${ECHO_CMD} "FontPath \"${PREFIX}/lib/X11/fonts/local/sgi\"" \ - >> ${PKGMESSAGE} - @${ECHO_CMD} \ - "to your XF86Config." >> ${PKGMESSAGE} - @${ECHO_CMD} "Then, restart the X server or do \"xset fp rehash\"."\ - >> ${PKGMESSAGE} - @${ECHO_CMD} "*****************************************" >>${PKGMESSAGE} + +FONTS= Scr7 Scr8 Scr9 Scr10 Scr11 Scr12 \ + Scr13 Scr14 Scr15 Scr16 Scr18 \ + ScrB7 ScrB8 ScrB9 ScrB10 ScrB11 ScrB12 \ + ScrB13 ScrB14 ScrB15 ScrB16 ScrB18 \ + haeberli12 haeberli24 haeberli36 \ + intl15 iris10 iris12 iris13 \ + rock12 rock18 rock24 rock36 \ + space10 type13 + +post-extract: + @(cd ${WRKSRC} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \ + sgi-fonts.tar.gz ${EXTRACT_AFTER_ARGS}) + +post-patch: + @${FIND} ${WRKSRC}/sgi-fonts/sgi -name "*.bdf" | ${XARGS} \ + ${REINPLACE_CMD} -e \ + '/^FOUNDRY/s|""|"SGI"|' + +do-build: +.for i in ${FONTS} + (cd ${WRKSRC}/sgi-fonts/sgi \ + && bdftopcf ${i}.bdf | ${GZIP_CMD} > ${i}.pcf.gz) +.endfor do-install: - ${MKDIR} ${PREFIX}/lib/X11/fonts/local/sgi - cd ${WRKSRC}; \ - ${INSTALL_DATA} *gz fonts.alias fonts.dir \ - ${PREFIX}/lib/X11/fonts/local/sgi - @${CAT} ${PKGMESSAGE} + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/fonts/local/sgi + (cd ${WRKSRC}/sgi-fonts/sgi && ${INSTALL_DATA} fonts.alias \ + ${STAGEDIR}${PREFIX}/lib/X11/fonts/local/sgi) + (cd ${WRKSRC}/sgi-fonts/sgi && ${INSTALL_DATA} *.pcf.gz \ + ${STAGEDIR}${PREFIX}/lib/X11/fonts/local/sgi) + (cd ${STAGEDIR}${PREFIX}/lib/X11/fonts/local/sgi && mkfontdir) .include Added: head/x11-fonts/sgifonts/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-fonts/sgifonts/files/pkg-message.in Mon Sep 1 09:21:44 2014 (r366853) @@ -0,0 +1,6 @@ +****************************************** +Add a line +FontPath "%%PREFIX%%/lib/X11/fonts/local/sgi" +to your xorg.conf. +Then, restart the X server or do "xset fp rehash". +*****************************************