summaryrefslogtreecommitdiff
path: root/www/ruby-webunit/Makefile
blob: f3d70b3e267a8e972bf26715d5efba2866d879b5 (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
30
31
32
33
34
35
36
# $NetBSD: Makefile,v 1.16 2012/10/28 06:31:03 asau Exp $

DISTNAME=	webunit-${VERSION}
PKGREVISION=	3
CATEGORIES=	www textproc ruby
MASTER_SITES=	http://www.xpenguin.biz/download/webunit/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.xpenguin.biz/download/webunit/index-en.html
COMMENT=	HTTP unit testing framework for Ruby
LICENSE=	gnu-gpl-v2 OR ruby-license

DEPENDS+= ${RUBY_PKGPREFIX}-html-parser>=19990912p1:../../textproc/ruby-html-parser
DEPENDS+= ${RUBY_PKGPREFIX}-htmlsplit>=1.0.2:../../www/ruby-htmlsplit

USE_TOOLS=	pax
USE_RUBY_SETUP=	yes
RUBY_SETUP=	install.rb
WRKSRC=		${WRKDIR}/webunit
VERSION=	20040429++

CONFIGURE_ARGS=	--site-ruby=${PREFIX}/${RUBY_VENDORLIB} \
		--so-dir=${PREFIX}/${RUBY_VENDORARCHLIB}

INSTALLATION_DIRS+=	${RUBY_DOC}/webunit ${RUBY_EG}/webunit

pre-patch:
	cd ${WRKSRC}/lib; \
		${RM} formatter.rb html-parser.rb sgml-parser.rb htmlsplit.rb

post-install:
	cd ${WRKSRC}/doc; ${PAX} -rw . ${DESTDIR}${PREFIX}/${RUBY_DOC}/webunit
	cd ${WRKSRC}/sample; ${PAX} -rw . ${DESTDIR}${PREFIX}/${RUBY_EG}/webunit

.include "../../lang/ruby/modules.mk"
.include "../../mk/bsd.pkg.mk"