Hi,

this patch adds support for the xmpp4r package (xmpp for Ruby).

Signed-off-by: Giovanni Di Stasi <[email protected]>



Index: libs/xmpp4r/Makefile
===================================================================
--- libs/xmpp4r/Makefile        (revision 0)
+++ libs/xmpp4r/Makefile        (revision 0)
@@ -0,0 +1,52 @@
+# 
+# Copyright (C) 2006 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v3.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=xmpp4r
+PKG_VERSION:=0.5
+PKG_RELEASE:=0
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
+PKG_SOURCE_URL:=http://download.gna.org/xmpp4r
+PKG_MD5SUM:=70eafe960727d750a43ec77ffc1856e9
+
+
+include $(INCLUDE_DIR)/package.mk
+
+
+define Package/xmpp4r
+       TITLE:=XMPP/Jabber library for Ruby
+       SECTION:=libs
+       CATEGORY:=Libraries
+       DEPENDS:=+ruby
+       MAINTAINER:=Giovanni Di Stasi <[email protected]>
+       URL:=http://home.gna.org/xmpp4r/
+endef
+
+define Package/xmpp4r/description
+       This package contains xmpp4r, an XMPP/Jabber library for Ruby.
+endef
+
+define Build/Compile
+       #configure the package
+       ruby $(PKG_BUILD_DIR)/setup.rb config   --installdirs=std 
+       #install the package    
+       ruby $(PKG_BUILD_DIR)/setup.rb install --prefix=$(PKG_INSTALL_DIR)      
+endef
+
+define Package/xmpp4r/install
+       $(INSTALL_DIR) $(1)/usr/
+       
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib $(1)/usr
+endef
+
+$(eval $(call BuildPackage,xmpp4r))
+
+$(eval $(call RequireCommand,ruby, \
+       $(PKG_NAME) requires ruby. \
+))
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to