Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Sep 2015 17:30:36 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r397265 - head/devel/ruby-tzfile
Message-ID:  <201509181730.t8IHUa2R077534@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri Sep 18 17:30:36 2015
New Revision: 397265
URL: https://svnweb.freebsd.org/changeset/ports/397265

Log:
  - Fix doc handling
  - Switch to options helpers
  
  Approved by:	portmgr blanket

Modified:
  head/devel/ruby-tzfile/Makefile

Modified: head/devel/ruby-tzfile/Makefile
==============================================================================
--- head/devel/ruby-tzfile/Makefile	Fri Sep 18 17:30:25 2015	(r397264)
+++ head/devel/ruby-tzfile/Makefile	Fri Sep 18 17:30:36 2015	(r397265)
@@ -3,6 +3,7 @@
 
 PORTNAME=	tzfile
 PORTVERSION=	0.1
+PORTREVISION=	1
 CATEGORIES=	devel ruby
 MASTER_SITES=	http://www.a-k-r.org/ruby-tzfile/
 DISTNAME=	ruby-${PORTNAME}-${PORTVERSION}
@@ -17,17 +18,16 @@ USE_RUBY=	yes
 NO_BUILD=	yes
 
 RUBY_RD_FILES=	tzfile.rb
+RUBY_RD_HTML=	yes
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
 
-DOCS=		${RUBY_RD_HTML_FILES}
-
 do-install:
 	@${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR}/
 	${INSTALL_DATA} ${WRKSRC}/tzfile.rb ${STAGEDIR}${RUBY_SITELIBDIR}/
-	@${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}
-.for f in ${DOCS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/
-.endfor
+
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}/
+	cd ${WRKSRC} && ${INSTALL_DATA} ${RUBY_RD_HTML_FILES} ${STAGEDIR}${RUBY_MODDOCDIR}/
 
 .include <bsd.port.mk>



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