pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/ruby Importing files for Ruby's new framework.
details: https://anonhg.NetBSD.org/pkgsrc/rev/b296d23c0f98
branches: trunk
changeset: 484406:b296d23c0f98
user: taca <taca%pkgsrc.org@localhost>
date: Sat Nov 27 13:57:20 2004 +0000
description:
Importing files for Ruby's new framework.
diffstat:
lang/ruby/Makefile.common | 67 +++++++++++++++++++++
lang/ruby/buildlink3.mk | 74 +++++++++++++++++++++++
lang/ruby/modules.mk | 142 ++++++++++++++++++++++++++++++++++++++++++++++
lang/ruby/replace.mk | 63 ++++++++++++++++++++
lang/ruby/rubyversion.mk | 142 ++++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 488 insertions(+), 0 deletions(-)
diffs (truncated from 508 to 300 lines):
diff -r 8f25ad67b926 -r b296d23c0f98 lang/ruby/Makefile.common
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby/Makefile.common Sat Nov 27 13:57:20 2004 +0000
@@ -0,0 +1,67 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2004/11/27 13:57:20 taca Exp $
+#
+# Ruby base distribution common definition
+
+#
+# Ruby distribution sites.
+#
+MASTER_SITE_RUBY?= \
+ ftp://ftp.ruby-lang.org/pub/ruby/${RUBY_VER}/ \
+ ftp://www.ibiblio.org/pub/languages/ruby/${RUBY_VER}/ \
+ ftp://xyz.lcs.mit.edu/pub/ruby/${RUBY_VER}/ \
+ ftp://gd.tuwien.ac.at/languages/ruby/${RUBY_VER}/ \
+ ftp://ftp.fu-berlin.de/unix/languages/ruby/${RUBY_VER}/ \
+ ftp://ftp.easynet.be/ruby/ruby/${RUBY_VER}/ \
+ ftp://ftp.ntua.gr/pub/lang/ruby/${RUBY_VER}/ \
+ ftp://sunsite.dk/mirrors/ruby/${RUBY_VER}/ \
+ ftp://ruby.cdpa.nsysu.edu.tw/ruby/${RUBY_VER}/ \
+ ftp://ftp.chg.ru/pub/lang/ruby/${RUBY_VER}/ \
+ ftp://ftp.ring.gr.jp/pub/lang/ruby/${RUBY_VER}/ \
+ ftp://ftp.iij.ad.jp/pub/lang/ruby/${RUBY_VER}/ \
+ ftp://ftp.idaemons.org/pub/mirror/ftp.ruby-lang.org/ruby/${RUBY_VER}/
+
+# Ruby distribution
+RUBY_DISTINFO_FILE= ${.CURDIR}/../../lang/ruby${RUBY_VER}/distinfo
+
+RUBY_HOMEPAGE= http://www.ruby-lang.org/en/
+
+# common default
+RUBY_DISTNAME?= ruby-${RUBY_VERSION}
+RUBY_WRKSRC?= ${WRKDIR}/${RUBY_DISTNAME}
+DIST_SUBDIR?= ruby
+STRIP?= strip
+DIST_SUBDIR?= ${RUBY_DIST_SUBDIR}
+
+#
+# Ruby shared library version handling.
+#
+RUBY_SHLIBMAJOR?= ${_RUBY_VER_MAJOR}
+RUBY_SHLIBVER?= ${RUBY_VERSION}
+
+.if ${OPSYS} == "NetBSD"
+RUBY_SHLIBMAJOR= ${RUBY_VER}
+RUBY_SHLIBVER= ${RUBY_VER}.${_RUBY_VERS_TEENY}
+.elif ${OPSYS} == "FreeBSD"
+RUBY_SHLIBMAJOR= # unused
+RUBY_SHLIBVER= ${_RUBY_VERS_TEENY}
+.elif ${OPSYS} == "IRIX"
+RUBY_SHLIBMAJOR= # unused
+.elif ${OPSYS} == "Linux"
+RUBY_SHLIBMAJOR= ${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}
+.endif
+
+.if empty(RUBY_SHLIBMAJOR)
+RUBY_NOSHLIBMAJOR= "@comment "
+.else
+RUBY_NOSHLIBMAJOR=
+.endif
+
+#
+# PLIST substitution
+#
+PLIST_SUBST+= RUBY_SHLIBVER="${RUBY_SHLIBVER}" \
+ RUBY_SHLIBMAJOR="${RUBY_SHLIBMAJOR}" \
+ RUBY_NOSHLIBMAJOR=${RUBY_NOSHLIBMAJOR} \
+ RUBY_NAME="${RUBY_NAME}"
+
+.include "replace.mk"
diff -r 8f25ad67b926 -r b296d23c0f98 lang/ruby/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby/buildlink3.mk Sat Nov 27 13:57:20 2004 +0000
@@ -0,0 +1,74 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2004/11/27 13:57:21 taca Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+RUBY_BASE_BUILDLINK3_MK:= ${RUBY_BASE_BUILDLINK3_MK}+
+
+.include "../../lang/ruby/rubyversion.mk"
+
+RUBY_MD_LIBDIR= ${RUBY_ARCH}
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= ${RUBY_NAME}
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nruby}
+BUILDLINK_PACKAGES+= ${RUBY_NAME}
+
+.if !empty(RUBY_BASE_BUILDLINK3_MK:M+)
+.if ${RUBY_VER} == "16"
+RUBYSRCDIR= ../../lang/ruby16
+BUILDLINK_DEPENDS.ruby16?= ruby16>=1.6.8
+BUILDLINK_PKGSRCDIR.ruby16?= ${RUBYSRCDIR}
+EVAL_PREFIX+= BUILDLINK_PREFIX.ruby16=ruby16
+BUILDLINK_PREFIX.ruby16_DEFAULT= ${LOCALBASE}
+BUILDLINK_FILES.ruby16= lib/libruby${RUBY_VER}.*
+BUILDLINK_FILES.ruby16+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/config.h
+BUILDLINK_FILES.ruby16+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/defines.h
+BUILDLINK_FILES.ruby16+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/dln.h
+BUILDLINK_FILES.ruby16+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/env.h
+BUILDLINK_FILES.ruby16+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/intern.h
+BUILDLINK_FILES.ruby16+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/libruby${RUBY_VER}.a
+BUILDLINK_FILES.ruby16+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/node.h
+BUILDLINK_FILES.ruby16+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/rbconfig.rb
+BUILDLINK_FILES.ruby16+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/re.h
+BUILDLINK_FILES.ruby16+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/regex.h
+BUILDLINK_FILES.ruby16+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/ruby.h
+BUILDLINK_FILES.ruby16+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/rubyio.h
+BUILDLINK_FILES.ruby16+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/rubysig.h
+BUILDLINK_FILES.ruby16+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/st.h
+BUILDLINK_FILES.ruby16+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/util.h
+BUILDLINK_FILES.ruby16+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/version.h
+.elif ${RUBY_VER} == "18"
+RUBYSRCDIR= ../../lang/ruby18
+BUILDLINK_DEPENDS.ruby18?= ruby18>=1.8.1
+BUILDLINK_PKGSRCDIR.ruby18?= ${RUBYSRCDIR}
+EVAL_PREFIX+= BUILDLINK_PREFIX.ruby18=ruby18
+BUILDLINK_FILES.ruby18= lib/libruby${RUBY_VER}.*
+BUILDLINK_FILES.ruby18+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/config.h
+BUILDLINK_FILES.ruby18+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/defines.h
+BUILDLINK_FILES.ruby18+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/dl.h
+BUILDLINK_FILES.ruby18+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/dlconfig.h
+BUILDLINK_FILES.ruby18+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/dln.h
+BUILDLINK_FILES.ruby18+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/env.h
+BUILDLINK_FILES.ruby18+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/intern.h
+BUILDLINK_FILES.ruby18+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/libruby${RUBY_VER}.a
+BUILDLINK_FILES.ruby18+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/missing.h
+BUILDLINK_FILES.ruby18+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/node.h
+BUILDLINK_FILES.ruby18+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/rbconfig.rb
+BUILDLINK_FILES.ruby18+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/re.h
+BUILDLINK_FILES.ruby18+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/regex.h
+BUILDLINK_FILES.ruby18+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/ruby.h
+BUILDLINK_FILES.ruby18+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/rubyio.h
+BUILDLINK_FILES.ruby18+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/rubysig.h
+BUILDLINK_FILES.ruby18+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/st.h
+BUILDLINK_FILES.ruby18+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/util.h
+BUILDLINK_FILES.ruby18+= lib/ruby/${RUBY_VER_DIR}/${RUBY_MD_LIBDIR}/version.h
+.endif
+
+BUILDLINK_PREFIX.ruby-base_DEFAULT= ${LOCALBASE}
+
+.endif # RUBY_BASE_BUILDLINK3_MK
+
+.include "../../devel/ncurses/buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff -r 8f25ad67b926 -r b296d23c0f98 lang/ruby/modules.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby/modules.mk Sat Nov 27 13:57:20 2004 +0000
@@ -0,0 +1,142 @@
+# $NetBSD: modules.mk,v 1.1.1.1 2004/11/27 13:57:21 taca Exp $
+
+.if !defined(_RUBY_MODULE_MK)
+_RUBY_MODULE_MK= # defined
+
+.include "../../lang/ruby/rubyversion.mk"
+.if empty(USE_BUILDLINK3:M[nN][oO])
+.include "../../lang/ruby/buildlink3.mk"
+.elif !empty(RUBY_NOVERSION:M[nN][oO])
+DEPENDS+= ruby${RUBY_VER}>=${RUBY_REQD}:../../lang/ruby${RUBY_VER}
+.endif
+
+CONFIGURE_ENV+= RUBY=${RUBY} RDOC=${RDOC}
+
+#
+# make ruby module package to common DIST_SUBDIR
+#
+DIST_SUBDIR?= ${RUBY_DIST_SUBDIR}
+
+#
+# extconf.rb support
+#
+# RUBY_EXTCONF specify extconf script name (default: extconf.rb).
+# RUBY_EXTCONF_CHECK make sure to check existence of Makefile after
+# executing extconf script (default: yes).
+# RUBY_EXTCONF_MAKEFILE name of Makefile checked by RUBY_EXTCONF_CHECK
+# (default: Makefile)
+#
+.if defined(USE_RUBY_EXTCONF) && empty(USE_RUBY_EXTCONF:M[nN][oO])
+
+RUBY_EXTCONF?= extconf.rb
+INSTALL_TARGET?= site-install
+CONFIGURE_ARGS+= --with-opt-dir="${LOCALBASE}"
+RUBY_EXTCONF_CHECK?= yes
+RUBY_EXTCONF_MAKEFILE?= Makefile
+
+do-configure: ruby-extconf-configure
+
+.if defined(RUBY_EXTCONF_SUBDIRS)
+ruby-extconf-configure:
+.for d in ${RUBY_EXTCONF_SUBDIRS}
+ @${ECHO_MSG} "===> Running ${RUBY_EXTCONF} in ${d} to configure"
+ ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}/${d}; \
+ ${SETENV} ${CONFIGURE_ENV} ${RUBY} ${RUBY_EXTCONF} ${CONFIGURE_ARGS}
+.if empty(RUBY_EXTCONF_CHECK:M[nN][oO])
+ ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}/${d}; \
+ ${TEST} -f ${RUBY_EXTCONF_MAKEFILE}
+.endif
+.endfor
+
+.if !target(do-build)
+do-build: ruby-extconf-build
+
+ruby-extconf-build:
+.for d in ${RUBY_EXTCONF_SUBDIRS}
+ @${ECHO_MSG} "===> Building ${d}"
+ ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}/${d}; ${SETENV} ${MAKE_ENV} ${MAKE} ${ALL_TARGET}
+.endfor
+.endif
+
+.if !target(do-install)
+do-install: ruby-extconf-install
+
+ruby-extconf-install:
+.for d in ${RUBY_EXTCONF_SUBDIRS}
+ @${ECHO_MSG} "===> Installing ${d}"
+ ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}/${d}; ${SETENV} ${MAKE_ENV} ${MAKE} ${INSTALL_TARGET}
+.endfor
+.endif
+
+.else
+ruby-extconf-configure:
+ @${ECHO_MSG} "===> Running ${RUBY_EXTCONF} to configure"
+ ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; \
+ ${SETENV} ${CONFIGURE_ENV} ${RUBY} ${RUBY_EXTCONF} ${CONFIGURE_ARGS}
+.if empty(RUBY_EXTCONF_CHECK:M[nN][oO])
+ ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}/${d}; \
+ ${TEST} -f ${RUBY_EXTCONF_MAKEFILE}
+.endif
+.endif
+
+#
+# setup.rb support
+#
+# RUBY_SETUP specify setup script name (default: setup.rb).
+#
+.elif defined(USE_RUBY_SETUP) && empty(USE_RUBY_SETUP:M[nN][oO])
+
+RUBY_SETUP?= setup.rb
+
+.if !target(do-configure)
+do-configure: ruby-setup-configure
+
+ruby-setup-configure:
+ @${ECHO_MSG} "===> Running ${RUBY_SETUP} to configure"
+ ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; \
+ ${SETENV} ${CONFIGURE_ENV} ${RUBY} ${RUBY_SETUP} config ${CONFIGURE_ARGS}
+.endif
+
+.if !target(do-build)
+do-build: ruby-setup-build
+
+ruby-setup-build:
+ @${ECHO_MSG} "===> Running ${RUBY_SETUP} to build"
+ ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; \
+ ${SETENV} ${MAKE_ENV} ${RUBY} ${RUBY_SETUP} setup
+.endif
+
+.if !target(do-install)
+do-install: ruby-setup-install
+
+ruby-setup-install:
+ @${ECHO_MSG} "===> Running ${RUBY_SETUP} to ${INSTALL_TARGET}"
+ ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; \
+ ${SETENV} ${MAKE_ENV} ${RUBY} ${RUBY_SETUP} ${INSTALL_TARGET}
+.endif
+
+#
+# install.rb support
+#
+# USE_RUBY_INSTALL use simple install.rb script to install
+# (default: undefined)
+# RUBY_SIMPLE_INSTALL name of simple install.rb script (default: install.rb)
+#
+.elif defined(USE_RUBY_INSTALL) && empty(USE_RUBY_INSTALL:M[nN][oO])
+
+RUBY_SIMPLE_INSTALL?= install.rb
+INSTALL_TARGET?= # empty
+
+.if !target(do-install)
+do-install: ruby-simple-install
+
+ruby-simple-install:
+ @${ECHO_MSG} "===> Running ${RUBY_SIMPLE_INSTALL} to ${INSTALL_TARGET}"
+ ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; \
+ ${SETENV} ${MAKE_ENV} ${RUBY} ${RUBY_SIMPLE_INSTALL} ${INSTALL_TARGET}
+.endif
+.endif # USE_RUBY_INSTALL
+
+.include "replace.mk"
+
+.endif
diff -r 8f25ad67b926 -r b296d23c0f98 lang/ruby/replace.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/ruby/replace.mk Sat Nov 27 13:57:20 2004 +0000
@@ -0,0 +1,63 @@
+# $NetBSD: replace.mk,v 1.1.1.1 2004/11/27 13:57:21 taca Exp $
Home |
Main Index |
Thread Index |
Old Index