add packaging fixes from #2543
git-svn-id: svn://svn.openwrt.org/openwrt/packages@10824 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
b90de0e5f7
commit
2a562d6297
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006-2008 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -16,9 +16,6 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|||||||
PKG_SOURCE_URL:=ftp://ftp.ruby-lang.org/pub/ruby/1.8/
|
PKG_SOURCE_URL:=ftp://ftp.ruby-lang.org/pub/ruby/1.8/
|
||||||
PKG_MD5SUM:=eb7f25818cb6993839b38d1f21bd4ea1
|
PKG_MD5SUM:=eb7f25818cb6993839b38d1f21bd4ea1
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
||||||
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/ruby/Default
|
define Package/ruby/Default
|
||||||
@ -54,12 +51,8 @@ $(call Package/ruby/Default)
|
|||||||
TITLE+= (shared library)
|
TITLE+= (shared library)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
# Ongoing work to break up ruby's standard library into coherent pieces
|
||||||
# NOTE: it would be a *lot* of work to attempt to break down Ruby's
|
# with minimal dependencies between them
|
||||||
# standard library bundle into coherent pieces, and work out the dependencies
|
|
||||||
# between them. This could be useful, e.g. if you don't want to do any XML or
|
|
||||||
# YAML handling, why carry all that code? However, squashfs does a good
|
|
||||||
# job of fitting it all into flash.
|
|
||||||
|
|
||||||
define Package/ruby-core
|
define Package/ruby-core
|
||||||
$(call Package/ruby/Default)
|
$(call Package/ruby/Default)
|
||||||
@ -214,6 +207,7 @@ define Package/ruby-core/install
|
|||||||
\
|
\
|
||||||
$(1)/usr/lib/ruby/1.8/*/gdbm.so \
|
$(1)/usr/lib/ruby/1.8/*/gdbm.so \
|
||||||
\
|
\
|
||||||
|
$(1)/usr/lib/ruby/1.8/kconv.rb \
|
||||||
$(1)/usr/lib/ruby/1.8/*/nkf.so \
|
$(1)/usr/lib/ruby/1.8/*/nkf.so \
|
||||||
\
|
\
|
||||||
$(1)/usr/lib/ruby/1.8/digest \
|
$(1)/usr/lib/ruby/1.8/digest \
|
||||||
@ -227,8 +221,15 @@ define Package/ruby-core/install
|
|||||||
$(1)/usr/lib/ruby/1.8/rmd160.rb \
|
$(1)/usr/lib/ruby/1.8/rmd160.rb \
|
||||||
$(1)/usr/lib/ruby/1.8/sha1.rb \
|
$(1)/usr/lib/ruby/1.8/sha1.rb \
|
||||||
$(1)/usr/lib/ruby/1.8/sha2.rb \
|
$(1)/usr/lib/ruby/1.8/sha2.rb \
|
||||||
|
$(1)/usr/lib/ruby/1.8/drb/ssl.rb \
|
||||||
|
$(1)/usr/lib/ruby/1.8/net/ftptls.rb \
|
||||||
|
$(1)/usr/lib/ruby/1.8/net/https.rb \
|
||||||
|
$(1)/usr/lib/ruby/1.8/net/telnets.rb \
|
||||||
|
$(1)/usr/lib/ruby/1.8/webrick/ssl.rb \
|
||||||
\
|
\
|
||||||
$(1)/usr/lib/ruby/1.8/*/readline.so \
|
$(1)/usr/lib/ruby/1.8/*/readline.so \
|
||||||
|
$(1)/usr/lib/ruby/1.8/irb/completion.rb \
|
||||||
|
$(1)/usr/lib/ruby/1.8/irb/ext/save-history.rb \
|
||||||
\
|
\
|
||||||
$(1)/usr/lib/ruby/1.8/*/zlib.so \
|
$(1)/usr/lib/ruby/1.8/*/zlib.so \
|
||||||
\
|
\
|
||||||
@ -265,6 +266,7 @@ define Package/ruby-core/install
|
|||||||
\
|
\
|
||||||
$(1)/usr/lib/ruby/1.8/yaml \
|
$(1)/usr/lib/ruby/1.8/yaml \
|
||||||
$(1)/usr/lib/ruby/1.8/yaml.rb \
|
$(1)/usr/lib/ruby/1.8/yaml.rb \
|
||||||
|
$(1)/usr/lib/ruby/1.8/*/syck.so \
|
||||||
|
|
||||||
find $(1) -name '*.h' | xargs rm -f
|
find $(1) -name '*.h' | xargs rm -f
|
||||||
endef
|
endef
|
||||||
@ -305,6 +307,7 @@ endef
|
|||||||
|
|
||||||
define Package/ruby-nkf/install
|
define Package/ruby-nkf/install
|
||||||
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
|
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
|
||||||
|
usr/lib/ruby/1.8/kconv.rb \
|
||||||
usr/lib/ruby/1.8/*/nkf.so \
|
usr/lib/ruby/1.8/*/nkf.so \
|
||||||
) | ( cd $(1); $(TAR) -xf - )
|
) | ( cd $(1); $(TAR) -xf - )
|
||||||
endef
|
endef
|
||||||
@ -322,6 +325,11 @@ define Package/ruby-openssl/install
|
|||||||
usr/lib/ruby/1.8/rmd160.rb \
|
usr/lib/ruby/1.8/rmd160.rb \
|
||||||
usr/lib/ruby/1.8/sha1.rb \
|
usr/lib/ruby/1.8/sha1.rb \
|
||||||
usr/lib/ruby/1.8/sha2.rb \
|
usr/lib/ruby/1.8/sha2.rb \
|
||||||
|
usr/lib/ruby/1.8/drb/ssl.rb \
|
||||||
|
usr/lib/ruby/1.8/net/ftptls.rb \
|
||||||
|
usr/lib/ruby/1.8/net/https.rb \
|
||||||
|
usr/lib/ruby/1.8/net/telnets.rb \
|
||||||
|
usr/lib/ruby/1.8/webrick/ssl.rb \
|
||||||
) | ( cd $(1); $(TAR) -xf - )
|
) | ( cd $(1); $(TAR) -xf - )
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -336,6 +344,8 @@ endef
|
|||||||
define Package/ruby-readline/install
|
define Package/ruby-readline/install
|
||||||
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
|
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
|
||||||
usr/lib/ruby/1.8/*/readline.so \
|
usr/lib/ruby/1.8/*/readline.so \
|
||||||
|
usr/lib/ruby/1.8/irb/completion.rb \
|
||||||
|
usr/lib/ruby/1.8/irb/ext/save-history.rb \
|
||||||
) | ( cd $(1); $(TAR) -xf - )
|
) | ( cd $(1); $(TAR) -xf - )
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -386,9 +396,11 @@ define Package/ruby-xsd/install
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ruby-yaml/install
|
define Package/ruby-yaml/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/ruby/1.8
|
( cd $(PKG_INSTALL_DIR); $(TAR) -cf - \
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/1.8/yaml $(1)/usr/lib/ruby/1.8/
|
usr/lib/ruby/1.8/yaml \
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ruby/1.8/yaml.rb $(1)/usr/lib/ruby/1.8/
|
usr/lib/ruby/1.8/yaml.rb \
|
||||||
|
usr/lib/ruby/1.8/*/syck.so \
|
||||||
|
) | ( cd $(1); $(TAR) -xf - )
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ruby-zlib/install
|
define Package/ruby-zlib/install
|
||||||
|
Loading…
x
Reference in New Issue
Block a user