- Respect PORTEXAMPLES
- Add EXAMPLES option - Convert to new options target helper - Add NO_ARCH - Use BROKEN_RUBY22 - Remove contiguous blank lines - Sort PLIST - Pass maintainership to ruby@
This commit is contained in:
parent
9c7068251f
commit
0d8fcca43f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=395996
3 changed files with 19 additions and 29 deletions
|
@ -8,9 +8,14 @@ MASTER_SITES= http://www.funaba.org/archive/
|
|||
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
||||
DIST_SUBDIR= ruby
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= ruby@FreeBSD.org
|
||||
COMMENT= Alternative date class for Ruby
|
||||
|
||||
BROKEN_RUBY22= yes
|
||||
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
|
||||
NO_ARCH= yes
|
||||
USE_RUBY= yes
|
||||
USE_RUBY_SETUP= yes
|
||||
RUBY_SETUP= install.rb
|
||||
|
@ -20,28 +25,14 @@ DOCS_JA= MANUAL MANUAL.rd MANUAL.html README
|
|||
EXAMPLES_EN= cal.rb daylight.rb goodfriday.rb
|
||||
EXAMPLES_JA= ncal.rb
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/ja
|
||||
.for f in ${EXAMPLES_EN}
|
||||
${INSTALL_DATA} ${WRKSRC}/sample/${f} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/
|
||||
.endfor
|
||||
.for f in ${EXAMPLES_JA}
|
||||
${INSTALL_DATA} ${WRKSRC}/sample/${f} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/ja/
|
||||
.endfor
|
||||
post-install-DOCS-on:
|
||||
${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
|
||||
cd ${WRKSRC}/ && ${INSTALL_DATA} ${DOCS_EN} ${STAGEDIR}${RUBY_MODDOCDIR}/
|
||||
cd ${WRKSRC}/ && ${INSTALL_DATA} ${DOCS_JA} ${STAGEDIR}${RUBY_MODDOCDIR}/ja/
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
post-install-EXAMPLES-on:
|
||||
${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/ja/
|
||||
cd ${WRKSRC}/sample/ && ${INSTALL_DATA} ${EXAMPLES_EN} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/
|
||||
cd ${WRKSRC}/sample/ && ${INSTALL_DATA} ${EXAMPLES_JA} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/ja/
|
||||
|
||||
.if ${RUBY_VER} >= 2.2
|
||||
BROKEN= Does not build
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -5,5 +5,4 @@ specified freely in this class. The procedures about holiday
|
|||
(holiday.rb) and date format (parsedate2.rb, strftime.rb and
|
||||
strptime.rb) are also available.
|
||||
|
||||
|
||||
WWW: http://www.funaba.org/en/ruby.html#date2
|
||||
|
|
|
@ -1,11 +1,7 @@
|
|||
%%RUBY_SITELIBDIR%%/date.rb
|
||||
%%RUBY_SITELIBDIR%%/parsedate.rb
|
||||
%%RUBY_SITELIBDIR%%/date/format.rb
|
||||
%%RUBY_SITELIBDIR%%/date/holiday.rb
|
||||
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/cal.rb
|
||||
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/daylight.rb
|
||||
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/goodfriday.rb
|
||||
%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/ja/ncal.rb
|
||||
%%RUBY_SITELIBDIR%%/parsedate.rb
|
||||
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/MANUAL.en
|
||||
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/MANUAL.en.html
|
||||
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/MANUAL.en.rd
|
||||
|
@ -14,3 +10,7 @@
|
|||
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/MANUAL.html
|
||||
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/MANUAL.rd
|
||||
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/README
|
||||
%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/cal.rb
|
||||
%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/daylight.rb
|
||||
%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/goodfriday.rb
|
||||
%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/ja/ncal.rb
|
||||
|
|
Loading…
Reference in a new issue