summaryrefslogtreecommitdiff
path: root/security/ruby-digest/Makefile
blob: 94be071b6146a7a45a4160fa690913e470a74fce (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
# $NetBSD: Makefile,v 1.1.1.1 2001/12/30 15:57:58 taca Exp $
#

DISTNAME=	${RUBY_DISTNAME}
PKGNAME=	${RUBY_PKGNAMEPREFIX}digest-${RUBY_VERSION}
CATEGORIES=	security
MASTER_SITES=	${MASTER_SITE_RUBY}

MAINTAINER=	taca@netbsd.org
HOMEPAGE=	http://www.ruby-lang.org/en/
COMMENT=	Ruby extension to message digest library

CONFLICTS=	${RUBY_PKGNAMEPREFIX}md5-[0-9]*

DISTINFO_FILE=	${RUBY_DISTINFO}
WRKSRC=		${RUBY_WRKSRC}/ext/digest

DIST_SUBDIR=	ruby
EXTRACT_ELEMENTS= ${RUBY_DISTNAME}/ext/digest
USE_RUBY_EXTCONF= yes
RUBY_EXTCONF_SUBDIRS=	. md5 rmd160 sha1 sha2
REPLACE_RUBY=	test.rb
RUBY_DOCS=	digest.txt digest.txt.ja

post-install:
	${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/digest
.for file in ${RUBY_DOCS}
	${INSTALL_DATA} ${WRKSRC}/${file} ${RUBY_DOCDIR}/digest
.endfor

.include "../../lang/ruby-base/Makefile.common"
.include "../../mk/bsd.pkg.mk"