From owner-freebsd-ports@FreeBSD.ORG Mon Jun 9 18:41:57 2014 Return-Path: Delivered-To: freebsd-ports@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 5F1176F9 for ; Mon, 9 Jun 2014 18:41:57 +0000 (UTC) Received: from spectrum.skysmurf.nl (spectrum.skysmurf.nl [82.95.125.145]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D76BC2510 for ; Mon, 9 Jun 2014 18:41:56 +0000 (UTC) Received: from spectrum.skysmurf.nl (mail.skysmurf.nl [192.168.42.4] (may be forged)) by spectrum.skysmurf.nl (8.14.7/8.14.7) with SMTP id s59IfrZg004213 for ; Mon, 9 Jun 2014 20:41:53 +0200 (CEST) (envelope-from freebsd@skysmurf.nl) Received: by spectrum.skysmurf.nl (sSMTP sendmail emulation); Mon, 09 Jun 2014 20:41:53 +0200 Date: Mon, 9 Jun 2014 20:41:53 +0200 From: "A.J. 'Fonz' van Werven" To: FreeBSD ports mailing list Subject: [Stagedir] x11-fonts/sgifonts pending issues Message-ID: <20140609184153.GA97049@spectrum.skysmurf.nl> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="VbJkn9YxBvnuCH5J" Content-Disposition: inline X-PGP-Key: http://www.skysmurf.nl/~fonz/fonz_pubkey.asc User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2014 18:41:57 -0000 --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Attempting to stagify x11-fonts/sgifonts I'm still stuck with two issues: -1- No license is specified. There's no clue in the distfile and the WWW only reveals that this port is part of a collection of things that are either GPL or LGPL, but it doesn't specify which is which. And the authors can only be contacted by registering and requesting a support ticket. So, is it permissible-although-undesirable to leave LICENSE unspecified? Or is there another recommended solution? -2- # portmaster x11-fonts/sgifonts still results in pkg-message being displayed twice. So there must be *something* I'm doing wrong, but I can't seem to figure out what. Any advice? The Makefile as I have it now locally follows below and I've attached a patch for those who want it because I had to replace manual creation of pkg-message (using ${ECHO_CMD} stuff in the Makefile) with use of files/pkg-message.in. Thanks in advance, AvW [/usr/ports/x11-fonts/sgifonts/Makefile] # Created by: trevor # $FreeBSD: head/x11-fonts/sgifonts/Makefile 327781 2013-09-20 23:51:14Z bapt $ PORTNAME= sgifonts PORTVERSION= 1.0.1 PORTREVISION= 2 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/ \ http://www.skysmurf.nl/comp/FreeBSD/distfiles/ DISTNAME= sgi-fonts-1.0-1.src EXTRACT_SUFX= .rpm MAINTAINER= freebsd@skysmurf.nl COMMENT= Fonts from the SGI ProPack 1.4 (originally for Linux) BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf \ mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir SUB_FILES= pkg-message SUB_LIST= FONTDIR=${FONTDIR} FONTDIR= lib/X11/fonts/local/sgi PLIST= ${WRKDIR}/pkg-plist PLIST_DIRS= ${FONTDIR} USES= imake EXTRACT_CMD= ${TAR} EXTRACT_BEFORE_ARGS= -O -xf EXTRACT_AFTER_ARGS= sgi-fonts.tar.gz | ${TAR} -xf - WRKSRC= ${WRKDIR}/sgi-fonts post-build: @${RM} -f ${PLIST} @cd ${WRKSRC}; \ for foo in `${LS} *gz fonts.alias fonts.dir|${SORT}`; \ do ${ECHO_CMD} ${FONTDIR}/$${foo} >> ${PLIST}; done do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/${FONTDIR} ${INSTALL_DATA} ${WRKSRC}/*gz ${STAGEDIR}${PREFIX}/${FONTDIR} ${INSTALL_DATA} ${WRKSRC}/fonts* ${STAGEDIR}${PREFIX}/${FONTDIR} .include [eof] -- I'm not completely useless, I can be used as a bad example. --VbJkn9YxBvnuCH5J Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="sgifonts.patch" diff -ruN sgifonts.orig/Makefile sgifonts/Makefile --- sgifonts.orig/Makefile 2014-06-05 13:53:10.000000000 +0200 +++ sgifonts/Makefile 2014-06-09 20:26:37.000000000 +0200 @@ -6,46 +6,37 @@ PORTREVISION= 2 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/ + ftp://ftp.rediris.es/sites/patches-europe.sgi.com/pub/linux/ProPack1.4/SRPMS/ \ + http://www.skysmurf.nl/comp/FreeBSD/distfiles/ DISTNAME= sgi-fonts-1.0-1.src EXTRACT_SUFX= .rpm -MAINTAINER= ports@FreeBSD.org +MAINTAINER= freebsd@skysmurf.nl COMMENT= Fonts from the SGI ProPack 1.4 (originally for Linux) BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf \ mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir +SUB_FILES= pkg-message +SUB_LIST= FONTDIR=${FONTDIR} +FONTDIR= lib/X11/fonts/local/sgi PLIST= ${WRKDIR}/pkg-plist -PLIST_DIRS= lib/X11/fonts/local/sgi -PKGMESSAGE= ${WRKDIR}/pkg-message +PLIST_DIRS= ${FONTDIR} 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: +post-build: @${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} + @cd ${WRKSRC}; \ + for foo in `${LS} *gz fonts.alias fonts.dir|${SORT}`; \ + do ${ECHO_CMD} ${FONTDIR}/$${foo} >> ${PLIST}; done 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}/${FONTDIR} + ${INSTALL_DATA} ${WRKSRC}/*gz ${STAGEDIR}${PREFIX}/${FONTDIR} + ${INSTALL_DATA} ${WRKSRC}/fonts* ${STAGEDIR}${PREFIX}/${FONTDIR} .include diff -ruN sgifonts.orig/files/pkg-message.in sgifonts/files/pkg-message.in --- sgifonts.orig/files/pkg-message.in 1970-01-01 01:00:00.000000000 +0100 +++ sgifonts/files/pkg-message.in 2014-06-09 20:27:08.000000000 +0200 @@ -0,0 +1,5 @@ +Add the following line to the "Files" section of xorg.conf or XF86Config: + + FontPath "%%PREFIX%%/%%FONTDIR%%/" + +Then, restart the X server or do "xset fp rehash". --VbJkn9YxBvnuCH5J--