summaryrefslogtreecommitdiff
path: root/math/ruby-rb-gsl/Makefile
blob: 4efc62834888ae9b92ee7ed2c90d373b52823287 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# $NetBSD: Makefile,v 1.1.1.1 2007/12/17 23:37:49 minskim Exp $

DISTNAME=	rb-gsl-1.9.2
PKGNAME=	${RUBY_PKGPREFIX}-${DISTNAME}
CATEGORIES=	math ruby
MASTER_SITES=	http://rubyforge.org/frs/download.php/23975/

MAINTAINER=	minskim@NetBSD.org
HOMEPAGE=	http://rb-gsl.rubyforge.org/
COMMENT=	Ruby interface to the GNU Scientific Library

USE_RUBY_SETUP=	yes

.include "../../lang/ruby/modules.mk"
.include "../../math/gsl/buildlink3.mk"

post-install:
	${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/gsl
	${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/gsl
	${INSTALL_DATA} ${WRKSRC}/html/*.html ${RUBY_DOCDIR}/gsl
	${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/gsl
	${CP} -R ${WRKSRC}/samples/* ${RUBY_EXAMPLESDIR}/gsl
	${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${RUBY_EXAMPLESDIR}/gsl
	${FIND} ${RUBY_EXAMPLESDIR}/gsl -type d -print |		\
		${XARGS} ${CHMOD} ${PKGDIRMODE}
	${FIND} ${RUBY_EXAMPLESDIR}/gsl -type f -print |		\
		${XARGS} ${CHMOD} ${SHAREMODE}

.include "../../mk/bsd.pkg.mk"