aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ruby-property/Makefile
blob: 2390878e7a1a4360fbe46c79f9e39a99efb0a648 (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
# New ports collection makefile for:    Ruby-property
# Date created:         7 Aug 2000
# Whom:                 Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   property
PORTVERSION=    19990308
CATEGORIES= devel   # ruby
MASTER_SITES=   http://www.ueda.info.waseda.ac.jp/~igarashi/ruby/
PKGNAMEPREFIX=  ruby-
DISTNAME=   ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}

MAINTAINER= knu@FreeBSD.org

RUN_DEPENDS=    ruby:${PORTSDIR}/lang/ruby

NO_BUILD=   yes

WRKSRC=     ${WRKDIR}/${PORTNAME}
PLIST_SUB=  RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"

RUBY=       ${LOCALBASE}/bin/ruby
RUBY_VER=   1.4
RUBY_ARCH=  ${ARCH}-freebsd${OSREL}

post-patch:
    ${PERL} -i -pe 's|rubyapi.css|../rubyapi.css|g' ${WRKSRC}/Properties-ja.html

do-install:
    ${INSTALL_DATA} ${WRKSRC}/property.rb ${PREFIX}/lib/ruby/${RUBY_VER}
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/share/doc/ruby/property/ja
.for f in property-example.rb test.default property.README Properties.html rubyapi.css
    ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/property
.endfor
.for f in property.README.ja Properties-ja.html
    ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/property/ja
.endfor
.endif

.include <bsd.port.mk>