Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 2013 02:52:02 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/184862: x11-fonts/pcf2bdf: Support USE_GITHUB
Message-ID:  <20131217025202.776be4293e46bc0f7e373ed0@yahoo.com>
Resent-Message-ID: <201312161810.rBGIAHQL016298@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         184862
>Category:       ports
>Synopsis:       x11-fonts/pcf2bdf: Support USE_GITHUB
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 16 18:10:17 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Support USE_GITHUB

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/x11-fonts/pcf2bdf/Makefile x11-fonts/pcf2bdf/Makefile
--- /usr/ports/x11-fonts/pcf2bdf/Makefile	2013-11-06 21:51:55.000000000 +0900
+++ x11-fonts/pcf2bdf/Makefile	2013-12-17 00:00:00.000000000 +0900
@@ -4,7 +4,7 @@
 PORTNAME=	pcf2bdf
 PORTVERSION=	1.04
 CATEGORIES=	x11-fonts
-MASTER_SITES=	http://cloud.github.com/downloads/ganaware/pcf2bdf/
+MASTER_SITES=	GHC
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	ports@FreeBSD.org
@@ -12,17 +12,25 @@
 
 LICENSE=	MIT
 
-NO_WRKSUBDIR=	yes
+USE_GITHUB=	yes
+GH_ACCOUNT=	ganaware
 
-MAN1=		pcf2bdf.1
-PLIST_FILES=	bin/pcf2bdf
+WRKSRC=		${WRKDIR}/${DISTNAME}
+
+PLIST_FILES=	bin/pcf2bdf man/man1/pcf2bdf.1.gz
+
+post-extract:
+	@${MKDIR} ${WRKSRC}
+	@${LN} -sf ../pcf2bdf.cc ${WRKSRC}/pcf2bdf.cc
+	@${LN} -sf ../pcf2bdf.man ${WRKSRC}/pcf2bdf.1
 
-NO_STAGE=	yes
 do-build:
-	${CXX} ${CXXFLAGS} -o ${WRKSRC}/pcf2bdf ${WRKSRC}/pcf2bdf.cc
+	(cd ${WRKSRC} && ${CXX} ${CXXFLAGS} pcf2bdf.cc -o pcf2bdf)
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/pcf2bdf ${PREFIX}/bin
-	${INSTALL_MAN} ${WRKSRC}/pcf2bdf.man ${MANPREFIX}/man/man1/pcf2bdf.1
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} pcf2bdf \
+		${STAGEDIR}${PREFIX}/bin)
+	(cd ${WRKSRC} && ${INSTALL_MAN} pcf2bdf.1 \
+		${STAGEDIR}${MANPREFIX}/man/man1)
 
 .include <bsd.port.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:



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