freebsd-ports/math/ruby-gnuplot/Makefile

50 lines
1.2 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: Ruby/Gnuplot
# Date created: 1 Feb 2001
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= gnuplot
2003-02-08 09:55:56 +01:00
PORTVERSION= 0.5
PORTREVISION= 1
CATEGORIES= math ruby
2002-06-11 15:10:51 +02:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= r${PORTNAME}
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
2002-06-11 15:10:51 +02:00
DISTNAME= r${PORTNAME}-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= ports@FreeBSD.org
2003-02-18 06:42:05 +01:00
COMMENT= A pipe-based interface to the gnuplot package for Ruby
RUN_DEPENDS= ${LOCALBASE}/bin/gnuplot:${PORTSDIR}/math/gnuplot \
${RUBY_SITEARCHLIBDIR}/narray.so:${PORTSDIR}/math/ruby-narray
USE_RUBY= yes
2002-02-22 16:37:05 +01:00
RUBY_SHEBANG_FILES= ${WRKSRC}/*.rb
NO_BUILD= yes
2002-10-28 00:03:15 +01:00
WRKSRC= ${WRKDIR}/gplot
post-patch:
${RUBY} -i.orig -p \
2002-10-28 00:03:15 +01:00
-e 'gsub %r:#!/bin/env:, "#!/usr/bin/env"' \
${WRKSRC}/Gnuplot.rb
do-install:
${MKDIR} ${RUBY_SITELIBDIR}/gplot
2002-10-28 00:03:15 +01:00
${INSTALL_DATA} ${WRKSRC}/Gnuplot.rb ${RUBY_SITELIBDIR}/gplot/
.if !defined(NOPORTDOCS)
2002-10-06 23:38:34 +02:00
${MKDIR} ${RUBY_MODEXAMPLESDIR}
2003-02-08 09:55:56 +01:00
${INSTALL_DATA} ${WRKSRC}/*_demo.rb ${RUBY_MODEXAMPLESDIR}/
2002-10-06 23:38:34 +02:00
${MKDIR} ${RUBY_MODDOCDIR}
2003-02-08 09:55:56 +01:00
.for f in ChangeLog.txt README
2002-10-06 23:38:34 +02:00
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
2002-02-22 16:37:05 +01:00
.endfor
.endif
.include <bsd.port.mk>