1d7a540d01
Ruby 1.8.4 are maintainous release of Ruby programming language. Changes are too huge to list here, please see http://www.ruby-lang.org/. And this package contains some bug fixes after release of 1.8.4. Tue Dec 27 08:29:18 2005 GOTOU Yuuzou <gotoyuzo@notwork.org> * ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLSocket#post_connection_chech): treat wildcard character in commonName. [ruby-dev:28121] Mon Dec 26 22:32:47 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> * eval.c (rb_eval), gc.c (gc_mark_children), node.h (NEW_ALIAS, NEW_VALIAS), parse.y (fitem): allow dynamic symbols to NODE_UNDEF and NODE_ALIAS. backported from trunk. fixed: [ruby-dev:28105] Mon Dec 26 08:50:36 2005 Yukihiro Matsumoto <matz@ruby-lang.org> * eval.c (ev_const_get): fixed a bug in constant reference during instance_eval. [yarv-dev:707] * eval.c (ev_const_defined): ditto. * lib/yaml.rb (YAML::add_domain_type): typo fixed. a patch from Joel VanderWerf <vjoel at path.berkeley.edu>. [ruby-talk:165285] [ruby-core:6995]
142 lines
4.1 KiB
Makefile
142 lines
4.1 KiB
Makefile
# $NetBSD: Makefile,v 1.17 2006/01/03 14:37:24 taca Exp $
|
|
#
|
|
|
|
DISTNAME= ${RUBY_DISTNAME}
|
|
PKGNAME= ${RUBY_PKGPREFIX}-base-${RUBY_VERSION}
|
|
CATEGORIES= lang ruby
|
|
MASTER_SITES= ${MASTER_SITE_RUBY}
|
|
|
|
MAINTAINER= taca@NetBSD.org
|
|
HOMEPAGE= ${RUBY_HOMEPAGE}
|
|
COMMENT= Ruby 1.8 based release minimum package
|
|
|
|
RUBY_VERSION= ${RUBY18_VERSION}
|
|
|
|
CONFLICTS= ${RUBY_PKGPREFIX}-dbm-[0-9]* \
|
|
${RUBY_PKGPREFIX}-digest-[0-9]* \
|
|
${RUBY_PKGPREFIX}-openssl-[0-9]* \
|
|
${RUBY_PKGPREFIX}-tcltk-[0-9]*
|
|
|
|
USE_LANGUAGES= c
|
|
USE_TOOLS+= yacc
|
|
GNU_CONFIGURE= yes
|
|
TEST_TARGET= test
|
|
CONFIGURE_ARGS+= --enable-shared \
|
|
--with-ssl-include="${BUILDLINK_PREFIX.openssl}/include" \
|
|
--with-ssl-lib="${BUILDLINK_PREFIX.openssl}/lib"
|
|
CONFIGURE_ENV+= PREFIX=${PREFIX:Q}
|
|
INSTALL_TARGET= install install-doc
|
|
WRKSRC= ${RUBY_WRKSRC}
|
|
|
|
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
|
|
INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
|
|
|
|
# Ruby build process depends on config.status's content
|
|
CONFIG_STATUS_OVERRIDE= # empty
|
|
|
|
MAKE_DIRS+= ${RUBY_SITERIDIR}
|
|
|
|
.include "../../lang/ruby/rubyversion.mk"
|
|
|
|
.if !empty(RUBY_SUFFIX)
|
|
CONFIGURE_ARGS+= --program-suffix=${RUBY_SUFFIX:Q}
|
|
.endif
|
|
|
|
FILES_SUBST+= DATE=${DATE:Q}
|
|
|
|
#
|
|
# Use Berkley DB unless a system has real ndbm(3).
|
|
#
|
|
.if !exists(/usr/include/ndbm.h)
|
|
.include "../../mk/bdb.buildlink3.mk"
|
|
.endif
|
|
|
|
#
|
|
# IRIX work around which should be fixed.
|
|
#
|
|
.if ${OPSYS} == "IRIX"
|
|
PLIST_SUBST+= HAS_IO="@comment "
|
|
.else
|
|
PLIST_SUBST+= HAS_IO=
|
|
.endif
|
|
|
|
DOCS= COPYING COPYING.ja ChangeLog README \
|
|
README.EXT README.EXT.ja README.ja ToDo \
|
|
doc/ChangeLog-1.8.0 doc/NEWS \
|
|
doc/forwardable.rd doc/forwardable.rd.ja \
|
|
doc/shell.rd doc/shell.rd.ja doc/irb/irb-tools.rd.ja \
|
|
doc/irb/irb.rd doc/irb/irb.rd.ja
|
|
EXT_DOCS= bigdecimal/bigdecimal_en.html bigdecimal/bigdecimal_ja.html \
|
|
digest/digest.txt digest/digest.txt.ja \
|
|
dl/doc/dl.txt enumerator/enumerator.txt \
|
|
etc/etc.txt etc/etc.txt.ja syslog/syslog.txt \
|
|
zlib/doc/zlib.rd
|
|
|
|
BIGDECIMAL_EXAMPLES= linear.rb nlsolve.rb pi.rb
|
|
DL_EXAMPLES= c++sample.C c++sample.rb drives.rb getch.rb libc.rb \
|
|
msgbox.rb msgbox2.rb stream.rb
|
|
OPENSSL_EXAMPLES= c_rehash.rb cert2text.rb cert_store_view.rb \
|
|
certstore.rb cipher.rb crlstore.rb echo_cli.rb \
|
|
echo_svr.rb gen_csr.rb smime_read.rb smime_write.rb \
|
|
wget.rb
|
|
PTY_EXAMPLES= expect_sample.rb script.rb shl.rb
|
|
|
|
REPLACE_RUBY_DIRS= ${WRKSRC}/bin ${WRKSRC}/ext ${WRKSRC}/lib \
|
|
${WRKSRC}/sample
|
|
|
|
pre-configure:
|
|
${RM} -f ${WRKSRC}/ext/curses/extconf.rb
|
|
${RM} -f ${WRKSRC}/ext/gdbm/extconf.rb
|
|
${RM} -f ${WRKSRC}/ext/iconv/extconf.rb
|
|
${RM} -f ${WRKSRC}/ext/readline/extconf.rb
|
|
${RM} -f ${WRKSRC}/ext/tcltklib/extconf.rb
|
|
${RM} -f ${WRKSRC}/ext/tk/extconf.rb
|
|
|
|
pre-build:
|
|
@${FIND} ${WRKSRC} -name '*.orig' -exec ${RM} -f {} \;
|
|
|
|
#
|
|
# XXX: Ruby 1.8.3 create extra directories.
|
|
#
|
|
post-build:
|
|
@cd ${WRKSRC}/.ext; \
|
|
${FIND} . -depth -type d -print \
|
|
-exec ${RMDIR} {} \; > /dev/null 2>&1; ${TRUE}
|
|
post-install:
|
|
${STRIP} ${RUBY}
|
|
${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/irb
|
|
${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/pty
|
|
${INSTALL_DATA} ${FILESDIR}/CHANGES.pkgsrc ${RUBY_DOCDIR}
|
|
.for f in ${DOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${f:C/^doc\///}
|
|
.endfor
|
|
${INSTALL_SCRIPT} ${WRKSRC}/ext/dl/h2rb ${PREFIX}/bin/h2rb${RUBY_VER}
|
|
.for f in ${EXT_DOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/ext/${f} ${RUBY_DOCDIR}
|
|
.endfor
|
|
${CP} -r ${WRKSRC}/ext/pty/README.* ${RUBY_DOCDIR}/pty
|
|
${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/pty
|
|
${CP} -r ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}
|
|
${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/bigdecimal
|
|
.for f in ${BIGDECIMAL_EXAMPLES}
|
|
${INSTALL_DATA} ${RUBY_WRKSRC}/ext/bigdecimal/sample/${f} \
|
|
${RUBY_EXAMPLESDIR}/bigdecimal
|
|
.endfor
|
|
${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/dl
|
|
.for f in ${DL_EXAMPLES}
|
|
${INSTALL_DATA} ${RUBY_WRKSRC}/ext/dl/sample/${f} \
|
|
${RUBY_EXAMPLESDIR}/dl
|
|
.endfor
|
|
${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/openssl
|
|
.for f in ${OPENSSL_EXAMPLES}
|
|
${INSTALL_DATA} ${RUBY_WRKSRC}/sample/openssl/${f} \
|
|
${RUBY_EXAMPLESDIR}/openssl
|
|
.endfor
|
|
.for f in ${PTY_EXAMPLES}
|
|
${INSTALL_DATA} ${WRKSRC}/ext/pty/${f} ${RUBY_EXAMPLESDIR}/pty
|
|
.endfor
|
|
|
|
.include "../../lang/ruby/Makefile.common"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|