Date: Thu, 3 Sep 2015 16:23:56 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r395995 - head/devel/ruby-calendar Message-ID: <201509031623.t83GNupi034688@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Thu Sep 3 16:23:56 2015 New Revision: 395995 URL: https://svnweb.freebsd.org/changeset/ports/395995 Log: - Respect PORTEXAMPLES - Add EXAMPLES option - Convert to new options target helper - Use BROKEN_RUBY22 - Strip shared library - Bump PORTREVISION for package change Modified: head/devel/ruby-calendar/Makefile head/devel/ruby-calendar/pkg-plist Modified: head/devel/ruby-calendar/Makefile ============================================================================== --- head/devel/ruby-calendar/Makefile Thu Sep 3 16:23:50 2015 (r395994) +++ head/devel/ruby-calendar/Makefile Thu Sep 3 16:23:56 2015 (r395995) @@ -3,6 +3,7 @@ PORTNAME= calendar PORTVERSION= 1.11.4r +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= devel ruby MASTER_SITES= http://www.funaba.org/archive/ @@ -12,6 +13,10 @@ DIST_SUBDIR= ruby MAINTAINER= ruby@FreeBSD.org COMMENT= Ruby modules to handle various calendars +BROKEN_RUBY22= yes + +OPTIONS_DEFINE= DOCS EXAMPLES + USE_RUBY= yes USE_RUBY_SETUP= yes RUBY_SETUP= install.rb @@ -20,25 +25,16 @@ DOCS_EN= README.en ext/sdn/README.sdncal DOCS_JA= README EXAMPLES_EN= ext/calendar/cal*.rb -OPTIONS_DEFINE= DOCS - post-install: - ${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR} -.for f in ${EXAMPLES_EN} - ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/ -.endfor - ${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}/ja -.for f in ${DOCS_EN} - ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/ -.endfor -.for f in ${DOCS_JA} - ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/ja/ -.endfor - -.include <bsd.port.pre.mk> - -.if ${RUBY_VER} >= 2.2 -BROKEN= Does not build -.endif + ${STRIP_CMD} ${STAGEDIR}${RUBY_SITEARCHLIBDIR}/*.so + +post-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}/ja/ + cd ${WRKSRC}/ && ${INSTALL_DATA} ${DOCS_EN} ${STAGEDIR}${RUBY_MODDOCDIR}/ + cd ${WRKSRC}/ && ${INSTALL_DATA} ${DOCS_JA} ${STAGEDIR}${RUBY_MODDOCDIR}/ja/ + +post-install-EXAMPLES-on: + ${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/ + cd ${WRKSRC}/ && ${INSTALL_DATA} ${EXAMPLES_EN} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/ -.include <bsd.port.post.mk> +.include <bsd.port.mk> Modified: head/devel/ruby-calendar/pkg-plist ============================================================================== --- head/devel/ruby-calendar/pkg-plist Thu Sep 3 16:23:50 2015 (r395994) +++ head/devel/ruby-calendar/pkg-plist Thu Sep 3 16:23:56 2015 (r395995) @@ -1,8 +1,8 @@ %%RUBY_SITEARCHLIBDIR%%/calendar.so %%RUBY_SITEARCHLIBDIR%%/getdate.so %%RUBY_SITEARCHLIBDIR%%/sdn.so -%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/cal.rb -%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/calclass.rb %%PORTDOCS%%%%RUBY_MODDOCDIR%%/README.en %%PORTDOCS%%%%RUBY_MODDOCDIR%%/README.sdncal20 %%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/README +%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/cal.rb +%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/calclass.rb
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509031623.t83GNupi034688>