2001-02-01 17:18:07 +01:00
|
|
|
# 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
|
2007-05-19 22:36:56 +02:00
|
|
|
PORTREVISION= 1
|
2001-02-01 17:18:07 +01:00
|
|
|
CATEGORIES= math ruby
|
2002-06-11 15:10:51 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= r${PORTNAME}
|
2001-02-01 17:18:07 +01:00
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
2002-06-11 15:10:51 +02:00
|
|
|
DISTNAME= r${PORTNAME}-${PORTVERSION}
|
2001-02-01 17:18:07 +01:00
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
2005-11-11 02:18:01 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-18 06:42:05 +01:00
|
|
|
COMMENT= A pipe-based interface to the gnuplot package for Ruby
|
2001-02-01 17:18:07 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2001-02-01 17:18:07 +01:00
|
|
|
NO_BUILD= yes
|
|
|
|
|
2002-10-28 00:03:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/gplot
|
2001-02-01 17:18:07 +01:00
|
|
|
|
|
|
|
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
|
2001-02-01 17:18:07 +01:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${RUBY_SITELIBDIR}/gplot
|
2002-10-28 00:03:15 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/Gnuplot.rb ${RUBY_SITELIBDIR}/gplot/
|
2001-02-01 17:18:07 +01:00
|
|
|
.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
|
2001-02-01 17:18:07 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|