2001-08-24 09:06:19 +02:00
|
|
|
# New ports collection makefile for: ROMP
|
|
|
|
# Date created: 24 August 2001
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= romp
|
|
|
|
PORTVERSION= 0.1
|
2001-09-17 19:54:27 +02:00
|
|
|
PORTREVISION= 1
|
2001-08-24 09:06:19 +02:00
|
|
|
CATEGORIES= net ruby
|
2001-08-25 22:38:29 +02:00
|
|
|
MASTER_SITES= http://rm-f.net/~cout/ruby/romp/ \
|
|
|
|
${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= knu
|
2001-08-24 09:06:19 +02:00
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} romp.html
|
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
|
|
|
|
|
|
IGNOREFILES= romp.html
|
|
|
|
|
|
|
|
USE_RUBY= yes
|
|
|
|
USE_RUBY_EXTCONF= yes
|
|
|
|
|
|
|
|
INSTALL_TARGET= site-install
|
|
|
|
|
|
|
|
EXAMPLES= client.rb server.rb
|
|
|
|
DOCS= romp.html
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
${MKDIR} ${WRKSRC}/lib
|
2002-05-12 21:48:13 +02:00
|
|
|
.for f in romp.rb
|
2001-08-24 09:06:19 +02:00
|
|
|
${MV} ${WRKSRC}/${f} ${WRKSRC}/lib/
|
|
|
|
.endfor
|
|
|
|
${CP} ${_DISTDIR}/romp.html ${WRKSRC}/
|
2002-09-26 20:30:04 +02:00
|
|
|
${RM} -f ${WRKSRC}/druby4*
|
2001-08-24 09:06:19 +02:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${RUBY} -i~ -pe 'sub /^(#include\s*<stdint\.h>)/, "/*\\1*/"' ${WRKSRC}/*.c
|
|
|
|
${RUBY} -i~ -pe 'sub /(.*CFLAGS)/, "#\\1/"' ${WRKSRC}/extconf.rb
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2002-10-06 23:38:34 +02:00
|
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}
|
2001-08-24 09:06:19 +02:00
|
|
|
.for f in ${EXAMPLES}
|
2002-10-06 23:38:34 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODEXAMPLESDIR}/
|
2001-08-24 09:06:19 +02:00
|
|
|
.endfor
|
2002-10-06 23:38:34 +02:00
|
|
|
${MKDIR} ${RUBY_MODDOCDIR}
|
2001-08-24 09:06:19 +02:00
|
|
|
.for f in ${DOCS}
|
2002-10-06 23:38:34 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
|
2001-08-24 09:06:19 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|