2001-02-21 03:55:32 +00:00
|
|
|
# New ports collection makefile for: Ruby/PDFlib
|
|
|
|
# Date created: 21 February 2001
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pdflib
|
2002-03-05 18:38:32 +00:00
|
|
|
PORTVERSION= 0.71
|
2004-06-25 11:24:25 +00:00
|
|
|
PORTREVISION= 1
|
2001-02-21 03:55:32 +00:00
|
|
|
CATEGORIES= print ruby
|
2002-03-05 18:38:32 +00:00
|
|
|
MASTER_SITES= http://www-nh.scphys.kyoto-u.ac.jp/~thitoshi/ruby/pdflib/
|
2001-02-21 03:55:32 +00:00
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
|
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
2005-11-11 01:18:01 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-18 05:42:05 +00:00
|
|
|
COMMENT= A Ruby extension library to access PDFlib
|
2001-02-21 03:55:32 +00:00
|
|
|
|
2002-03-05 18:38:32 +00:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
2001-09-11 02:59:20 +00:00
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
2002-03-31 06:55:48 +00:00
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff \
|
2004-06-25 11:24:25 +00:00
|
|
|
pdf.7:${PORTSDIR}/print/pdflib
|
2001-02-21 03:55:32 +00:00
|
|
|
|
|
|
|
USE_RUBY= yes
|
|
|
|
USE_RUBY_EXTCONF= yes
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
INSTALL_TARGET= site-install
|
|
|
|
|
2002-12-06 17:17:38 +00:00
|
|
|
RUBY_RD_FILES= pdflib-api.rd pdflib-api-jp.rd
|
|
|
|
|
2001-02-21 03:55:32 +00:00
|
|
|
DOCS_EN= ChangeLog README \
|
2002-12-06 17:17:38 +00:00
|
|
|
${RUBY_RD_FILES:N*-jp.rd} \
|
|
|
|
${RUBY_RD_HTML_FILES:N*-jp.html}
|
2001-02-21 03:55:32 +00:00
|
|
|
DOCS_JA= ChangeLog.jp README.jp \
|
2002-12-06 17:17:38 +00:00
|
|
|
${RUBY_RD_FILES:M*-jp.rd} \
|
|
|
|
${RUBY_RD_HTML_FILES:M*-jp.html}
|
|
|
|
|
2001-02-21 03:55:32 +00:00
|
|
|
EXAMPLES_EN= hello.rb pdfclock.rb pdfgraph.rb \
|
|
|
|
pdfimage.rb text2pdf.rb
|
|
|
|
EXAMPLES_JA= jtext2pdf.rb
|
|
|
|
|
2002-12-06 17:17:38 +00:00
|
|
|
post-install: doc-install
|
2001-02-21 03:55:32 +00:00
|
|
|
|
2002-12-06 17:17:38 +00:00
|
|
|
.include <bsd.port.mk>
|
|
|
|
|
|
|
|
doc-install:
|
2001-02-21 03:55:32 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-10-06 21:38:34 +00:00
|
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}/ja
|
2001-02-21 03:55:32 +00:00
|
|
|
.for f in ${EXAMPLES_EN}
|
2002-10-06 21:38:34 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample/${f} ${RUBY_MODEXAMPLESDIR}/
|
2001-02-21 03:55:32 +00:00
|
|
|
.endfor
|
|
|
|
.for f in ${EXAMPLES_JA}
|
2002-10-06 21:38:34 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample/${f} ${RUBY_MODEXAMPLESDIR}/ja/
|
2001-02-21 03:55:32 +00:00
|
|
|
.endfor
|
2002-10-06 21:38:34 +00:00
|
|
|
${MKDIR} ${RUBY_MODDOCDIR}/ja
|
2001-02-21 03:55:32 +00:00
|
|
|
.for f in ${DOCS_EN}
|
2002-10-06 21:38:34 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
|
2001-02-21 03:55:32 +00:00
|
|
|
.endfor
|
|
|
|
.for f in ${DOCS_JA}
|
2002-10-06 21:38:34 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
|
2001-02-21 03:55:32 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|