1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Support stage

This commit is contained in:
Baptiste Daroussin 2014-04-07 14:39:59 +00:00
parent a09d4443fd
commit a5a95d8603
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350490

View File

@ -8,9 +8,9 @@ CATEGORIES= graphics ruby www
MASTER_SITES= http://www.markhj.com/rubyphoto/files/ MASTER_SITES= http://www.markhj.com/rubyphoto/files/
MAINTAINER= ruby@FreeBSD.org MAINTAINER= ruby@FreeBSD.org
COMMENT= A program for creating web image galleries COMMENT= program for creating web image galleries
LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2 LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2
RUN_DEPENDS= convert:${PORTSDIR}/graphics/ImageMagick \ RUN_DEPENDS= convert:${PORTSDIR}/graphics/ImageMagick \
${RUBY_SITELIBDIR}/image_size.rb:${PORTSDIR}/graphics/ruby-image_size \ ${RUBY_SITELIBDIR}/image_size.rb:${PORTSDIR}/graphics/ruby-image_size \
${RUBY_SITELIBDIR}/xml/parser.rb:${PORTSDIR}/textproc/ruby-xmlparser ${RUBY_SITELIBDIR}/xml/parser.rb:${PORTSDIR}/textproc/ruby-xmlparser
@ -21,40 +21,26 @@ USE_RUBY= yes
RUBY_SHEBANG_FILES= ruby_photo.rb RUBY_SHEBANG_FILES= ruby_photo.rb
SUB_FILES= pkg-message SUB_FILES= pkg-message
NO_STAGE= yes
do-install: do-install:
${INSTALL_SCRIPT} ${WRKSRC}/abspath.rb ${RUBY_SITELIBDIR} @${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR}
${INSTALL_SCRIPT} ${WRKSRC}/findbin.rb ${RUBY_SITELIBDIR} ${INSTALL_SCRIPT} ${WRKSRC}/abspath.rb ${STAGEDIR}${RUBY_SITELIBDIR}
@${MKDIR} ${DATADIR} ${INSTALL_SCRIPT} ${WRKSRC}/findbin.rb ${STAGEDIR}${RUBY_SITELIBDIR}
@${MKDIR} ${DATADIR}/sample_input @${MKDIR} ${STAGEDIR}${DATADIR}/sample_input
@${MKDIR} ${DATADIR}/templates @${MKDIR} ${STAGEDIR}${DATADIR}/templates/alternate
@${MKDIR} ${DATADIR}/templates/alternate @${MKDIR} ${STAGEDIR}${DATADIR}/swigs-converters
@${MKDIR} ${DATADIR}/swigs-converters @${MKDIR} ${STAGEDIR}${DATADIR}/xml-generators
@${MKDIR} ${DATADIR}/xml-generators ${INSTALL_DATA} ${WRKSRC}/COPYING ${WRKSRC}/README.html \
${INSTALL_DATA} ${WRKSRC}/COPYING ${DATADIR} ${WRKSRC}/album.rb ${WRKSRC}/config.rb ${WRKSRC}/dyn_resize.rb \
${INSTALL_DATA} ${WRKSRC}/README.html ${DATADIR} ${WRKSRC}/image_cat.rb ${WRKSRC}/image_size_cache.rb \
${INSTALL_DATA} ${WRKSRC}/album.rb ${DATADIR} ${WRKSRC}/joke.rb ${WRKSRC}/myxml.rb ${WRKSRC}/photo.rb \
${INSTALL_DATA} ${WRKSRC}/config.rb ${DATADIR} ${WRKSRC}/rp_debug.rb ${WRKSRC}/ruby_photo.rb \
${INSTALL_DATA} ${WRKSRC}/dyn_resize.rb ${DATADIR} ${WRKSRC}/template.rb ${WRKSRC}/urlencode.rb ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/image_cat.rb ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/sample_input/* ${STAGEDIR}${DATADIR}/sample_input
${INSTALL_DATA} ${WRKSRC}/image_size_cache.rb ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/templates/album.xml ${WRKSRC}/templates/image.xml \
${INSTALL_DATA} ${WRKSRC}/joke.rb ${DATADIR} ${WRKSRC}/templates/shared.xml ${WRKSRC}/templates/tree.xml \
${INSTALL_DATA} ${WRKSRC}/myxml.rb ${DATADIR} ${STAGEDIR}${DATADIR}/templates
${INSTALL_DATA} ${WRKSRC}/photo.rb ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/templates/alternate/* ${STAGEDIR}${DATADIR}/templates/alternate
${INSTALL_DATA} ${WRKSRC}/rp_debug.rb ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/swigs-converters/* ${STAGEDIR}${DATADIR}/swigs-converters
${INSTALL_DATA} ${WRKSRC}/ruby_photo.rb ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/xml-generators/* ${STAGEDIR}${DATADIR}/xml-generators
${INSTALL_DATA} ${WRKSRC}/template.rb ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/urlencode.rb ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/sample_input/* ${DATADIR}/sample_input
${INSTALL_DATA} ${WRKSRC}/templates/album.xml ${DATADIR}/templates
${INSTALL_DATA} ${WRKSRC}/templates/image.xml ${DATADIR}/templates
${INSTALL_DATA} ${WRKSRC}/templates/shared.xml ${DATADIR}/templates
${INSTALL_DATA} ${WRKSRC}/templates/tree.xml ${DATADIR}/templates
${INSTALL_DATA} ${WRKSRC}/templates/alternate/* ${DATADIR}/templates/alternate
${INSTALL_DATA} ${WRKSRC}/swigs-converters/* ${DATADIR}/swigs-converters
${INSTALL_DATA} ${WRKSRC}/xml-generators/* ${DATADIR}/xml-generators
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk> .include <bsd.port.mk>