source: packages/lang/sqlite3-ruby/Makefile @ 20987

Last change on this file since 20987 was 20987, checked in by nico, 6 years ago

[packages] add sqlite3-ruby, a Ruby interface for SQLite 3.x

File size: 1.0 KB
Line 
1#
2# Copyright (C) 2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=sqlite3-ruby
11PKG_VERSION:=1.2.4
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=http://files.rubyforge.vm.bytemark.co.uk/sqlite-ruby/
16PKG_MD5SUM:=fe75fa99dd9a2b5a2f84ab484e7f6469
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/ruby-sqlite3
21  SUBMENU:=Ruby
22  SECTION:=lang
23  CATEGORY:=Languages
24  TITLE:=Ruby interface for SQLite
25  URL:=http://www.ruby-lang.org/
26  DEPENDS:=+libruby +libsqlite3
27endef
28
29RUBY:= \
30        ruby -I $(STAGING_DIR)/usr/share/ruby \
31
32define Build/Configure
33        (cd $(PKG_BUILD_DIR)/ext/sqlite3_api; \
34                $(RUBY) extconf.rb; \
35        )
36endef
37
38define Build/Compile
39        (cd $(PKG_BUILD_DIR)/ext/sqlite3_api; \
40                $(MAKE); \
41        )
42endef
43
44define Package/ruby-sqlite3/install
45        $(INSTALL_DIR) $(1)/usr/lib/ruby/1.8
46        $(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/site_ruby/1.8/* $(1)/usr/lib/ruby/1.8/
47
48endef
49
50$(eval $(call BuildPackage,ruby-sqlite3))
Note: See TracBrowser for help on using the repository browser.