pkgsrc/lang/ruby18-base/Makefile
taca fadaa64387 Update ruby18-base to 1.8.7.374 (Ruby 1.8.7 patchleel 374).
Quote from release announce:

Good day to release a ruby, no?

That's definitely one of the reason why I do this now, but there are
others. One thing is to backport fixes for CVE-2013-1821, which was disclosed
earlier.  The other is to fix CVE-2013-4073, whose details are available soon
I believe.  People still using 1.8.7 should consider upgrading because the
fixes are for security.

ChangeLog.

Thu Jun 27 20:55:23 2013  URABE Shyouhei  <shyouhei@ruby-lang.org>

	* test/openssl/test_ssl.rb: Oops, sorry!

Thu Jun 27 20:21:18 2013  URABE Shyouhei  <shyouhei@ruby-lang.org>

	* ext/openssl/lib/openssl/ssl-internal.rb (OpenSSL::SSL#verify_certificate_identity):
	  fix hostname verification. Patch by nahi.

	* test/openssl/test_ssl.rb (OpenSSL#test_verify_certificate_identity):
	  test for above.

Sat May 18 23:34:50 2013  Kouhei Sutou  <kou@cozmixng.org>

	* lib/rexml/document.rb: move entity_expansion_text_limit accessor to ...
	* lib/rexml/rexml.rb: ... here to make rexml/text independent from
	  REXML::Document. It causes circular require.
	* lib/rexml/document.rb (REXML::Document.entity_expansion_text_limit):
	  deprecated.
	* lib/rexml/document.rb (REXML::Document.entity_expansion_text_limit=):
	  deprecated.
	* lib/rexml/text.rb: add missing require "rexml/rexml" for
	  REXML.entity_expansion_text_limit.
	  Reported by Robert Ulejczyk. Thanks!!! [ruby-core:52895] [Bug #7961]

Sat May 18 23:34:50 2013  Aaron Patterson <aaron@tenderlovemaking.com>

	* lib/rexml/document.rb (REXML::Document.entity_expansion_text_limit):
	  new attribute to read/write entity expansion text limit.  the default
	  limit is 10Kb.

	* lib/rexml/text.rb (REXML::Text.unnormalize): check above attribute.
2013-06-27 16:33:57 +00:00

167 lines
4.9 KiB
Makefile

# $NetBSD: Makefile,v 1.78 2013/06/27 16:33:57 taca Exp $
#
DISTNAME= ${RUBY_DISTNAME}
PKGNAME= ${RUBY_PKGPREFIX}-base-${RUBY_VERSION_FULL}
CATEGORIES= lang ruby
MASTER_SITES= ${MASTER_SITE_RUBY}
MAINTAINER= taca@NetBSD.org
HOMEPAGE= ${RUBY_HOMEPAGE}
COMMENT= Ruby 1.8 based release minimum package
LICENSE= gnu-gpl-v2 OR ruby-license
RUBY_VERSION_SUPPORTED= 18
CONFLICTS= ${RUBY_PKGPREFIX}-dbm-[0-9]* \
${RUBY_PKGPREFIX}-digest-[0-9]* \
${RUBY_PKGPREFIX}-iconv-[0-9]* \
${RUBY_PKGPREFIX}-openssl-[0-9]* \
${RUBY_PKGPREFIX}-tcltk-[0-9]*
USE_LANGUAGES= c
USE_TOOLS+= pax 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"
WRKSRC= ${RUBY_WRKSRC}
#
# Don't refrect pkgsrc's INSTALL macro since Ruby expect it could
# execute by unprivileged user.
#
CONFIGURE_ENV+= INSTALL="${INSTALL} ${COPY}" \
INSTALL_DATA= INSTALL_PROGRAM= INSTALL_SCRIPT=
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Msunpro)
LIBS.SunOS+= -B static -lsunmath -B dynamic -lm
LDFLAGS.SunOS+= -L${SUNWSPROBASE}/lib ${COMPILER_RPATH_FLAG}${SUNWSPROBASE}/lib
CONFIGURE_ENV+= LDSHARED="${CC} -G"
.else
LIBS.SunOS+= -lm
.endif
.if !empty(PKGSRC_COMPILER:Mclang)
CONFIGURE_ARGS+= --enable-frame-address
.endif
# Avoid segfaults as per https://bugs.ruby-lang.org/issues/6383
.if !empty(CC_VERSION:Mgcc-4.[7-9].*)
CFLAGS+= -fno-tree-dce -fno-optimize-sibling-calls
.endif
# Ruby build process depends on config.status's content
CONFIG_STATUS_OVERRIDE= # empty
MAKE_DIRS+= ${RUBY_SITERIDIR}
FILES_SUBST+= DATE=${DATE:Q}
.include "options.mk"
.include "../../lang/ruby/rubyversion.mk"
.if !empty(RUBY_SUFFIX)
CONFIGURE_ARGS+= --program-suffix=${RUBY_SUFFIX:Q}
.endif
#
# IRIX work around which should be fixed.
#
PLIST_VARS+= io
.if ${OPSYS} != "IRIX"
PLIST.io= yes
.endif
#
# Work around for ucontext(3). It was broken in older DragonFly
# versions and is slow in newer ones.
#
.if ${OPSYS} == "DragonFly"
CONFIGURE_ENV+= ac_cv_header_ucontext_h=no
.endif
#
# work around for getaddrinfo(3)
#
.if ${OPSYS} == "SunOS" && !empty(OS_VERSION:M5.[6-9])
CONFIGURE_ARGS+= --enable-wide-getaddrinfo
.endif
DOCS= COPYING COPYING.ja ChangeLog NEWS README \
README.EXT README.EXT.ja README.ja ToDo \
doc/ChangeLog-1.8.0 doc/NEWS-1.8.0 \
doc/forwardable.rd doc/forwardable.rd.ja \
doc/irb/irb-tools.rd.ja doc/irb/irb.rd doc/irb/irb.rd.ja \
doc/shell.rd doc/shell.rd.ja
EXT_DOCS= bigdecimal/bigdecimal_en.html bigdecimal/bigdecimal_ja.html \
dl/doc/dl.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= bin ext lib sample
REPLACE_RUBY= ext/dl/h2rb
INSTALLATION_DIRS= bin ${RUBY_ARCHLIB} ${RUBY_DOC}/irb ${RUBY_DOC}/pty \
${RUBY_EG}/bigdecimal ${RUBY_EG}/dl \
${RUBY_EG}/openssl ${RUBY_EG}/pty
FIX_PERM= ${RUBY_ARCHLIB}/digest.h ${RUBY_ARCHLIB}/dl.h \
${RUBY_ARCHLIB}/dlconfig.h
pre-configure:
${RM} -f ${WRKSRC}/ext/curses/extconf.rb
${RM} -f ${WRKSRC}/ext/gdbm/extconf.rb
${RM} -f ${WRKSRC}/ext/readline/extconf.rb
${RM} -f ${WRKSRC}/ext/tk/extconf.rb
pre-install:
cd ${WRKSRC}; ${FIND} . \( -name '*.orig' -o -name '*.orig_dist' \) \
-exec ${RM} -f {} \;
post-install:
${INSTALL_DATA} ${FILESDIR}/CHANGES.pkgsrc ${DESTDIR}${PREFIX}/${RUBY_DOC}
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${RUBY_DOC}/${f:C/^doc\///}
.endfor
${INSTALL_SCRIPT} ${WRKSRC}/ext/dl/h2rb ${DESTDIR}${PREFIX}/bin/h2rb${RUBY_VER}
.for f in ${EXT_DOCS}
${INSTALL_DATA} ${WRKSRC}/ext/${f} ${DESTDIR}${PREFIX}/${RUBY_DOC}
.endfor
cd ${WRKSRC}/ext/pty; ${PAX} -rw README.* ${DESTDIR}${PREFIX}/${RUBY_DOC}/pty
cd ${WRKSRC}/sample; ${PAX} -rw . ${DESTDIR}${PREFIX}/${RUBY_EG}
.for f in ${BIGDECIMAL_EXAMPLES}
${INSTALL_DATA} ${RUBY_WRKSRC}/ext/bigdecimal/sample/${f} \
${DESTDIR}${PREFIX}/${RUBY_EG}/bigdecimal
.endfor
.for f in ${DL_EXAMPLES}
${INSTALL_DATA} ${RUBY_WRKSRC}/ext/dl/sample/${f} \
${DESTDIR}${PREFIX}/${RUBY_EG}/dl
.endfor
.for f in ${OPENSSL_EXAMPLES}
${INSTALL_DATA} ${RUBY_WRKSRC}/sample/openssl/${f} \
${DESTDIR}${PREFIX}/${RUBY_EG}/openssl
.endfor
.for f in ${PTY_EXAMPLES}
${INSTALL_DATA} ${WRKSRC}/ext/pty/${f} ${DESTDIR}${PREFIX}/${RUBY_EG}/pty
.endfor
.for f in ${FIX_PERM}
${CHMOD} ${SHAREMODE} ${DESTDIR}${PREFIX}/${f}
.endfor
${RUBY_GENERATE_PLIST}
.include "../../mk/bdb.buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../lang/ruby/Makefile.common"
.include "../../mk/bsd.pkg.mk"