summaryrefslogtreecommitdiff
path: root/databases/ruby-ldap/Makefile
blob: f5c65a434769d1bda04d53fcbbe2aabff91d0aa5 (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
37
38
39
40
# $NetBSD: Makefile,v 1.7 2011/02/21 16:01:11 taca Exp $

DISTNAME=	ruby-ldap-${VER}
PKGNAME=	${RUBY_PKGPREFIX}-ldap-${VER}
PKGREVISION=	1
CATEGORIES=	databases ruby
MASTER_SITES=	http://github.com/alexey-chebotar/ruby-ldap/tarball/${VER}/

MAINTAINER=	obache@NetBSD.org
HOMEPAGE=	http://github.com/alexey-chebotar/ruby-ldap
COMMENT=	LDAP extension module for Ruby
LICENSE=	modified-bsd

PKG_DESTDIR_SUPPORT=	user-destdir

VER=		0.9.11

REPLACE_RUBY_DIRS=	example/pr_ctl example/cgi/search.cgi
USE_RUBY_EXTCONF=	yes
USE_TOOLS+=		pax
WRKSRC=			${WRKDIR}/alexey-chebotar-ruby-ldap-8541b7b

CONFIGURE_ARGS+=	--with-openldap2
CONFIGURE_ARGS+=	--with-ldap-dir=${BUILDLINK_PREFIX.openldap-client}

DOCS=		ChangeLog FAQ README TODO

INSTALLATION_DIRS=	${RUBY_DOC}/ldap ${RUBY_EG}/ldap

post-install:
.for f in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${RUBY_DOC}/ldap
.endfor
	cd ${WRKSRC}/example && \
		pax -rw -pp * ${DESTDIR}${PREFIX}/${RUBY_EG}/ldap

.include "../../databases/openldap-client/buildlink3.mk"
.include "../../security/cyrus-sasl/buildlink3.mk"
.include "../../lang/ruby/modules.mk"
.include "../../mk/bsd.pkg.mk"