freebsd-ports/comms/ruby-termios/Makefile

50 lines
1 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: ruby-termios
# Date created: 30 August 2001
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= termios
2002-10-16 09:54:13 +02:00
PORTVERSION= 0.9.4
2002-10-08 13:16:04 +02:00
PORTEPOCH= 1
CATEGORIES= comms ruby
2002-10-08 13:16:04 +02:00
MASTER_SITES= http://arika.org/archive/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
2002-10-08 13:16:04 +02:00
DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= ports@FreeBSD.org
2003-02-18 05:24:40 +01:00
COMMENT= A Ruby interface to termios
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
INSTALL_TARGET= site-install
RUBY_RD_FILES= termios.rd
DOCS= ChangeLog README \
${RUBY_RD_FILES} \
${RUBY_RD_HTML_FILES}
2002-10-08 13:16:04 +02:00
.include <bsd.port.pre.mk>
post-patch:
2002-10-08 13:16:04 +02:00
${RUBY} -i -pe 'gsub(/ttyS\d/, "cuaa0")' ${WRKSRC}/examples/*.rb
${RUBY} -i -pe 'gsub(/\.c_/, ".")' ${WRKSRC}/examples/*.rb
post-install: doc-install
doc-install:
.if !defined(NOPORTDOCS)
2002-10-06 23:08:30 +02:00
${MKDIR} ${RUBY_MODEXAMPLESDIR}
2002-10-08 13:16:04 +02:00
${INSTALL_DATA} ${WRKSRC}/examples/*.rb ${RUBY_MODEXAMPLESDIR}/
2002-10-06 23:08:30 +02:00
${MKDIR} ${RUBY_MODDOCDIR}
2002-10-08 13:16:04 +02:00
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
.endif
.include <bsd.port.post.mk>