summaryrefslogtreecommitdiff
path: root/devel/ruby-readline
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2009-09-13 01:51:05 +0000
committertaca <taca@pkgsrc.org>2009-09-13 01:51:05 +0000
commita0e8b7ad598ea7a7e4c06f3016f81d8f3b126c23 (patch)
treec5102ae47067b2c376720889efa77b888d949982 /devel/ruby-readline
parentb95ccde7f344a9749fa034de23003cb92c72e4e0 (diff)
downloadpkgsrc-a0e8b7ad598ea7a7e4c06f3016f81d8f3b126c23.tar.gz
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 (limited to 'devel/ruby-readline')
-rw-r--r--devel/ruby-readline/Makefile4
-rw-r--r--devel/ruby-readline/options.mk19
2 files changed, 22 insertions, 1 deletions
diff --git a/devel/ruby-readline/Makefile b/devel/ruby-readline/Makefile
index 8baf670c430..c5560d5b6ac 100644
--- a/devel/ruby-readline/Makefile
+++ b/devel/ruby-readline/Makefile
@@ -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 @@ post-install:
${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 --git a/devel/ruby-readline/options.mk b/devel/ruby-readline/options.mk
new file mode 100644
index 00000000000..74897cf5824
--- /dev/null
+++ b/devel/ruby-readline/options.mk
@@ -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