1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/graphics/ruby-image_size/Makefile
Mathieu Arnold f899c758a6 When there is a do-install target, do not use a post-install target, do
everything at once.  Sometime, rename post-install into a options helper
target.

I did not fix ports that were such a mess that I could not figure out
what they really wanted to do.  I also did not change ports that had
some version of an auto-plist code in post-install, for the same reason.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-19 11:04:13 +00:00

45 lines
1.0 KiB
Makefile

# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= image_size
PORTVERSION= 0.0.20040618
CATEGORIES= graphics ruby
MASTER_SITES= http://www.rubycgi.org/archive/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}.${PORTVERSION:E}
EXTRACT_SUFX= .tgz
DIST_SUBDIR= ruby
MAINTAINER= ruby@FreeBSD.org
COMMENT= Ruby library to measure the size of a given image file
USE_RUBY= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
RUBY_RD_FILES= readme.ja.rd readme.rd
DOCS_EN= ${RUBY_RD_FILES:N*.ja.rd} \
${RUBY_RD_HTML_FILES:N*.ja.html}
DOCS_JA= ${RUBY_RD_FILES:M*.ja.rd} \
${RUBY_RD_HTML_FILES:M*.ja.html}
OPTIONS_DEFINE= DOCS
do-install:
${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR}/
${INSTALL_DATA} ${WRKSRC}/lib/image_size.rb ${STAGEDIR}${RUBY_SITELIBDIR}/
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
.include <bsd.port.mk>