/[gentoo-x86]/dev-ruby/ruby-ldap/ruby-ldap-0.9.16-r2.ebuild
Gentoo

Contents of /dev-ruby/ruby-ldap/ruby-ldap-0.9.16-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Dec 26 10:47:17 2014 UTC (3 years, 11 months ago) by graaff
Branch: MAIN
CVS Tags: HEAD
Make sure latest revision has ruby21 support.

(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-ldap/ruby-ldap-0.9.16-r1.ebuild,v 1.1 2014/08/12 13:50:12 prometheanfire Exp $
4
5 EAPI=5
6 # jruby: mkmf
7 # rbx: require 'ldap' no such file to load
8 USE_RUBY="ruby19 ruby20 ruby21"
9
10 inherit multilib ruby-fakegem
11
12 RUBY_FAKEGEM_RECIPE_DOC="rdoc"
13 RUBY_FAKEGEM_TASK_TEST=""
14 RUBY_FAKEGEM_EXTRADOC="ChangeLog FAQ NOTES README TODO"
15
16 DESCRIPTION="A Ruby interface to some LDAP libraries"
17 HOMEPAGE="http://ruby-ldap.sourceforge.net/"
18 LICENSE="BSD"
19 SLOT="0"
20 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-macos"
21 IUSE="ssl"
22 DEPEND=">=net-nds/openldap-2
23 dev-libs/cyrus-sasl
24 ssl? ( dev-libs/openssl )"
25 RDEPEND="${DEPEND}"
26
27 # Current test set is interactive due to certificate generation and requires
28 # running LDAP daemon
29 RESTRICT="test"
30
31 each_ruby_configure() {
32 local myconf="--with-openldap2"
33 if ! use ssl ; then
34 myconf="${myconf} --without-libcrypto --without-libssl"
35 fi
36 ${RUBY} extconf.rb ${myconf} || die "extconf.rb failed"
37 sed -i -e 's:-Wl,--no-undefined::' \
38 -e "s/^ldflags = /ldflags = $\(LDFLAGS\) /" Makefile || die
39 }
40
41 each_ruby_compile() {
42 emake V=1
43 cp ldap$(get_modname) lib/ || die
44 }

  ViewVC Help
Powered by ViewVC 1.1.20