Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jan 2014 13:23:06 +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: r339228 - head/converters/cocot
Message-ID:  <201401091323.s09DN6b3045512@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Thu Jan  9 13:23:06 2014
New Revision: 339228
URL: http://svnweb.freebsd.org/changeset/ports/339228

Log:
  Support stage
  Use bsdtar to extract the zip file

Modified:
  head/converters/cocot/Makefile

Modified: head/converters/cocot/Makefile
==============================================================================
--- head/converters/cocot/Makefile	Thu Jan  9 13:20:36 2014	(r339227)
+++ head/converters/cocot/Makefile	Thu Jan  9 13:23:06 2014	(r339228)
@@ -8,11 +8,13 @@ MASTER_SITES=	ftp://ftp.iDaemons.org/pub
 		${MASTER_SITE_LOCAL}
 MASTER_SITE_SUBDIR=	knu
 DISTNAME=	${PORTNAME}-1.1-${PORTVERSION}
+EXTRACT_SUFX=	.zip
 
 MAINTAINER=	knu@FreeBSD.org
 COMMENT=	Code Converter on TTY
 
-USE_ZIP=	yes
+OPTIONS_DEFINE=	DOCS
+
 USES=		iconv
 WRKSRC=		${WRKDIR}/vmi-${PORTNAME}-8bc9f64
 GNU_CONFIGURE=	yes
@@ -23,20 +25,13 @@ LDFLAGS+=	-L${LOCALBASE}/lib
 DOCS_EN=	COPYING ChangeLog
 DOCS_JA=	ChangeLog.ja README.ja
 
-NO_STAGE=	yes
-
-.include <bsd.port.options.mk>
-
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${MKDIR} ${DOCSDIR}/ja
+	${MKDIR} ${STAGEDIR}${DOCSDIR}/ja
 .for f in ${DOCS_EN}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
 .endfor
 .for f in ${DOCS_JA}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/ja
+	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/ja
 .endfor
-.endif
 
 .include <bsd.port.mk>



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