summaryrefslogtreecommitdiff
path: root/devel/ruby-rreadline/Makefile
blob: e8957e342a1bd54ee05aeb0228cbe735753753cd (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
# New ports collection makefile for:	Ruby Readline
# Date created:		29 June 2001
# Whom:			Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=	rreadline
PORTVERSION=	0.5.4
CATEGORIES=	devel ruby
MASTER_SITES=	http://www.mag.keio.ac.jp/~hiroya/ruby/rreadline/
PKGNAMEPREFIX=	${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR=	ruby

MAINTAINER=	knu@FreeBSD.org

USE_RUBY=	yes
RUBY_NO_BUILD_DEPENDS=	yes

NO_BUILD=	yes

post-extract:
	${ECHO} '#!/bin/sh' > ${WRKSRC}/rbsh
	${ECHO} 'ruby RubyShell.rb' >> ${WRKSRC}/rbsh

do-install:
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}/*.rb ${RUBY_SITELIBDIR}/
.if !defined(NOPORTDOCS)
	${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}/rbsh
	${INSTALL_SCRIPT} ${WRKSRC}/rbsh ${RUBY_EXAMPLESDIR}/${PORTNAME}/rbsh/
	${INSTALL_DATA}  ${WRKSRC}/samples/rbsh/*.rb ${RUBY_EXAMPLESDIR}/${PORTNAME}/rbsh/
	${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja
	${INSTALL_DATA}  ${WRKSRC}/README ${RUBY_DOCDIR}/${PORTNAME}/
	${INSTALL_DATA}  ${WRKSRC}/README.ja ${RUBY_DOCDIR}/${PORTNAME}/ja/
.endif

.include <bsd.port.mk>