mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
73021e6e14
Hat: portmgr
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
# New ports collection makefile for: ruby-inline
|
|
# Date created: 2003-01-30
|
|
# Whom: Sean Chittenden <seanc@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= inline
|
|
PORTVERSION= 3.5.0
|
|
CATEGORIES= devel ruby
|
|
MASTER_SITES= ${MASTER_SITE_RUBYFORGE}
|
|
MASTER_SITE_SUBDIR= ruby${PORTNAME}
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
DISTNAME= RubyInline-${PORTVERSION}
|
|
DIST_SUBDIR= ruby
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Inline::C allows you to embed C/Ruby directly in ruby scripts
|
|
|
|
USE_RUBY= yes
|
|
USE_GMAKE= yes
|
|
RUBY_SHEBANG_FILES=${WRKSRC}/inline_package
|
|
|
|
NO_BUILD= yes
|
|
|
|
DOCS= README.txt History.txt
|
|
EXAMPLES= example.rb tutorial/example1.rb tutorial/example2.rb demo/*
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -E \
|
|
-e 's,install[ \t]+-m[ \t]+0555,\$${BSD_INSTALL_SCRIPT},' \
|
|
-e 's,install[ \t]+-m[ \t]+0444,\$${BSD_INSTALL_DATA},' \
|
|
${WRKSRC}/Makefile
|
|
|
|
pre-install:
|
|
${MKDIR} ${RUBY_SITELIBDIR}
|
|
|
|
post-install:
|
|
${MKDIR} ${RUBY_MODDOCDIR}
|
|
${MKDIR} ${RUBY_MODEXAMPLESDIR}
|
|
${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${RUBY_MODDOCDIR}
|
|
${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/,} ${RUBY_MODEXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|