pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/ruby-readline Add readline option which enable u...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d0613c23b58e
branches:  trunk
changeset: 399089:d0613c23b58e
user:      taca <taca%pkgsrc.org@localhost>
date:      Sun Sep 13 01:51:05 2009 +0000

description:
Add readline option which enable use of devel/readline package and enable
it default since editline lacks some functionality, especially multibytes
character processing.

Bump PKGREVISION.

diffstat:

 devel/ruby-readline/Makefile   |   4 +++-
 devel/ruby-readline/options.mk |  19 +++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletions(-)

diffs (45 lines):

diff -r ee3b11b30ef5 -r d0613c23b58e devel/ruby-readline/Makefile
--- a/devel/ruby-readline/Makefile      Sun Sep 13 01:44:26 2009 +0000
+++ b/devel/ruby-readline/Makefile      Sun Sep 13 01:51:05 2009 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.27 2009/06/10 12:48:07 taca Exp $
+# $NetBSD: Makefile,v 1.28 2009/09/13 01:51:05 taca Exp $
 #
 
 DISTNAME=              ${RUBY_DISTNAME}
 PKGNAME=               ${RUBY_PKGPREFIX}-readline-${RUBY_VERSION_SUFFIX}
+PKGREVISION=           1
 CATEGORIES=            devel ruby
 MASTER_SITES=          ${MASTER_SITE_RUBY}
 
@@ -26,6 +27,7 @@
        ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${RUBY_DOC}/readline
 .endfor
 
+.include "options.mk"
 .include "../../devel/readline/buildlink3.mk"
 .include "../../lang/ruby/modules.mk"
 .include "../../lang/ruby/Makefile.common"
diff -r ee3b11b30ef5 -r d0613c23b58e devel/ruby-readline/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-readline/options.mk    Sun Sep 13 01:51:05 2009 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: options.mk,v 1.1 2009/09/13 01:51:05 taca Exp $
+#
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.ruby
+PKG_SUPPORTED_OPTIONS= readline ruby-build-ri-db
+
+#
+# GNU readline supports multi bytes characters.
+#
+PKG_SUGGESTED_OPTIONS= readline ruby-build-ri-db
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mreadline)
+USE_BUILTIN.readline=  no
+CONFIGURE_ARGS+=       --disable-libedit
+.else
+CONFIGURE_ARGS+=       --enable-libedit
+.endif



Home | Main Index | Thread Index | Old Index