aboutsummaryrefslogtreecommitdiffstats
path: root/print/ruby-pdflib/Makefile
blob: 668517ee1524c7be38368234822a365d14a23259 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# 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=   5
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= ruby@FreeBSD.org
COMMENT=    A Ruby extension library to access PDFlib

LIB_DEPENDS=    jpeg.11:${PORTSDIR}/graphics/jpeg \
        png.6:${PORTSDIR}/graphics/png \
        tiff.4:${PORTSDIR}/graphics/tiff \
        pdf.8:${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:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${RUBY_MODEXAMPLESDIR}/ja
.for f in ${EXAMPLES_EN}
    ${INSTALL_DATA} ${WRKSRC}/sample/${f} ${RUBY_MODEXAMPLESDIR}/
.endfor
.for f in ${EXAMPLES_JA}
    ${INSTALL_DATA} ${WRKSRC}/sample/${f} ${RUBY_MODEXAMPLESDIR}/ja/
.endfor
    ${MKDIR} ${RUBY_MODDOCDIR}/ja
.for f in ${DOCS_EN}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
.for f in ${DOCS_JA}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
.endfor
.endif

.include <bsd.port.pre.mk>
.if ${RUBY_VER} == 1.9
BROKEN= does not build with ruby 1.9
.endif
.include <bsd.port.post.mk>