1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/print/ruby-pdflib/Makefile

65 lines
1.6 KiB
Makefile
Raw Normal View History

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