summaryrefslogtreecommitdiff
path: root/package/ruby-ldap/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-11-17 12:51:22 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-11-17 12:51:22 +0100
commit9f02979caebb6e900fe101a257d8e6c344a7a173 (patch)
tree350b808ae23e8abb4ff08d472b76104a89e1f35a /package/ruby-ldap/Makefile
parentafb9908771db100ee97bb933fcca850c4f49af5a (diff)
parentee3c54b1570b9dd8ea900a11d496ced1ad1ae356 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/ruby-ldap/Makefile')
-rw-r--r--package/ruby-ldap/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/package/ruby-ldap/Makefile b/package/ruby-ldap/Makefile
new file mode 100644
index 000000000..8f26ca0ef
--- /dev/null
+++ b/package/ruby-ldap/Makefile
@@ -0,0 +1,40 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= ruby-ldap
+PKG_VERSION:= 0.9.8
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 83240451aa43de447d48035dc2d10dee
+PKG_DESCR:= Ruby LDAP extension
+PKG_SECTION:= lang
+PKG_DEPENDS:= ruby libopenldap
+PKG_BUILDDEP:= ruby openldap
+PKG_URL:= http://ruby-ldap.sourceforge.net/
+PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=ruby-ldap/0.9.8/}
+
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,RUBY_LDAP,ruby-ldap,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIG_STYLE:= manual
+FAKE_FLAGS+= DESTDIR="/"
+
+do-configure:
+ (cd $(WRKBUILD) && $(STAGING_DIR)/bin/ruby -I$(STAGING_DIR)/usr/lib/ruby/1.9.1/$(CPU_ARCH)-linux/ extconf.rb \
+ --with-openldap2 \
+ --with-ldap-lib=$(STAGING_DIR)/usr/lib \
+ --with-ldap-include=$(STAGING_DIR)/usr/include)
+
+ruby-ldap-install:
+ $(INSTALL_DIR) $(IDIR_RUBY_LDAP)/usr/lib/ruby/site_ruby/1.9.1/$(CPU_ARCH)-linux
+ $(INSTALL_DIR) $(IDIR_RUBY_LDAP)/usr/lib/ruby/site_ruby/1.9.1/ldap
+ $(CP) $(STAGING_DIR)/usr/lib/ruby/site_ruby/1.9.1/$(CPU_ARCH)-linux/ldap.so \
+ $(IDIR_RUBY_LDAP)/usr/lib/ruby/site_ruby/1.9.1/$(CPU_ARCH)-linux
+ $(CP) $(STAGING_DIR)//usr/lib/ruby/site_ruby/1.9.1/ldap/*.rb \
+ $(IDIR_RUBY_LDAP)/usr/lib/ruby/site_ruby/1.9.1/ldap
+
+include ${TOPDIR}/mk/pkg-bottom.mk