2000-08-12 16:09:41 -04:00
|
|
|
# New ports collection makefile for: Ruby-Racc
|
|
|
|
# Date created: 7 Aug 2000
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
2000-08-07 04:20:31 -04:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= racc
|
2001-12-02 14:26:42 -05:00
|
|
|
PORTVERSION= 1.4.1
|
2000-08-16 08:21:24 -04:00
|
|
|
CATEGORIES= devel ruby
|
2002-01-03 15:30:38 -05:00
|
|
|
MASTER_SITES= http://www.loveruby.net/archive/%SUBDIR%/
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2000-09-07 03:23:43 -04:00
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
2001-09-08 09:12:56 -04:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-all
|
2000-08-08 12:08:31 -04:00
|
|
|
DIST_SUBDIR= ruby
|
2000-08-07 04:20:31 -04:00
|
|
|
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
|
|
|
2000-08-22 02:46:52 -04:00
|
|
|
.if !defined(RUNTIME)
|
2001-01-27 04:54:30 -05:00
|
|
|
RUN_DEPENDS= ${RUBY_SITELIBDIR}/racc/parser.rb:${PORTSDIR}/devel/ruby-racc-runtime \
|
|
|
|
${RUBY_SITELIBDIR}/strscan.rb:${PORTSDIR}/devel/ruby-strscan
|
|
|
|
.endif
|
2000-08-07 04:20:31 -04:00
|
|
|
|
2000-09-07 03:23:43 -04:00
|
|
|
USE_RUBY= yes
|
|
|
|
USE_RUBY_SETUP= yes
|
2000-08-22 02:46:52 -04:00
|
|
|
|
2001-06-10 23:10:57 -04:00
|
|
|
.if defined(RUNTIME)
|
2001-09-08 09:12:56 -04:00
|
|
|
CONFIGURE_ARGS= --with=raccrt
|
2001-06-10 23:10:57 -04:00
|
|
|
.else
|
2001-09-08 09:12:56 -04:00
|
|
|
CONFIGURE_ARGS= --with=racc
|
2001-06-10 23:10:57 -04:00
|
|
|
|
2001-09-08 09:12:56 -04:00
|
|
|
WRKDIR_RACC= ${WRKSRC}/packages/racc
|
2000-08-07 04:20:31 -04:00
|
|
|
|
2001-09-08 09:12:56 -04:00
|
|
|
post-extract:
|
|
|
|
${CP} -p ${WRKDIR_RACC}/misc/* ${WRKDIR_RACC}/bin/
|
2000-08-12 07:21:26 -04:00
|
|
|
|
2000-08-07 04:20:31 -04:00
|
|
|
do-install:
|
2000-08-12 16:09:41 -04:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-09-08 09:12:56 -04:00
|
|
|
${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}
|
|
|
|
${INSTALL_DATA} ${WRKDIR_RACC}/sample/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/
|
|
|
|
${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja
|
|
|
|
${INSTALL_DATA} ${WRKDIR_RACC}/doc.en/* ${RUBY_DOCDIR}/${PORTNAME}/
|
|
|
|
${INSTALL_DATA} ${WRKDIR_RACC}/doc.ja/* ${RUBY_DOCDIR}/${PORTNAME}/ja/
|
2000-08-07 04:20:31 -04:00
|
|
|
.endif
|
2000-08-22 02:46:52 -04:00
|
|
|
.endif
|
2000-08-07 04:20:31 -04:00
|
|
|
|
2000-09-26 04:02:17 -04:00
|
|
|
.include <bsd.port.mk>
|