mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
44eaadcb75
Where possible, correct a few instances where PORTDOCS was being used to flag stuff in EXAMPLESDIR. For some ports, mostly those owned by ruby@, PORTDOCS is applied to pretty much everything whether it's documentation or example.
42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= date2
|
|
PORTVERSION= 4.0.19
|
|
CATEGORIES= devel ruby
|
|
MASTER_SITES= http://www.funaba.org/archive/
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
DIST_SUBDIR= ruby
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Alternative date class for Ruby
|
|
|
|
USE_RUBY= yes
|
|
USE_RUBY_SETUP= yes
|
|
RUBY_SETUP= install.rb
|
|
|
|
DOCS_EN= MANUAL.en MANUAL.en.rd MANUAL.en.html README.en
|
|
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
|
|
${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.mk>
|