diff options
author | Stanislav Sedov <stas@FreeBSD.org> | 2011-01-12 03:42:23 +0000 |
---|---|---|
committer | Stanislav Sedov <stas@FreeBSD.org> | 2011-01-12 03:42:23 +0000 |
commit | 41c7d16f7a77bee3b11cdffb6a12b4109fa5f1de (patch) | |
tree | 55c8629afe0a3c08ee5d9b881f43b95e54ae924e /lang | |
parent | - Mirror distfiles and fix webkit-image.cpp fetch (diff) |
- Fix pkg-plist in case when gdbm is not present.
- Add option to enable/disable GDBM.
Reported by: pav
Feature safe: yes
Notes
Notes:
svn path=/head/; revision=267688
Diffstat (limited to 'lang')
-rw-r--r-- | lang/rubinius/Makefile | 9 | ||||
-rw-r--r-- | lang/rubinius/pkg-plist | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lang/rubinius/Makefile b/lang/rubinius/Makefile index e16dfc900077..9ebb2c822f5f 100644 --- a/lang/rubinius/Makefile +++ b/lang/rubinius/Makefile @@ -35,12 +35,21 @@ USE_PERL5_BUILD= yes USE_GMAKE= yes MAKE_JOBS_UNSAFE= yes +OPTIONS= GDBM "Enable GDBM support" on + .include <bsd.port.pre.mk> .if ${OSVERSION} < 700000 BROKEN= does not build on 6.X .endif +.if !defined(WITHOUT_GDBM) || exists(${LOCALBASE}/include/gdbm.h) +LIB_DEPENDS= gdbm.3:${PORTSDIR}/databases/gdbm +PLIST_SUB+= GDBM="" +.else +PLIST_SUB+= GDBM="@comment " +.endif + post-extract: @${MKDIR} ${WRKSRC}/vm/external_libs/prebuilt/ @${CP} ${DISTDIR}/${LLVMDIST} ${WRKSRC}/vm/external_libs/prebuilt/${LLVMDIST} diff --git a/lang/rubinius/pkg-plist b/lang/rubinius/pkg-plist index 5794b7f972f8..39d6b0aa947d 100644 --- a/lang/rubinius/pkg-plist +++ b/lang/rubinius/pkg-plist @@ -239,7 +239,7 @@ lib/ruby/rubinius/rubinius/1.2/lib/ext/dl/type.rb lib/ruby/rubinius/rubinius/1.2/lib/ext/dl/type.rbc lib/ruby/rubinius/rubinius/1.2/lib/ext/gdbm/extconf.rb lib/ruby/rubinius/rubinius/1.2/lib/ext/gdbm/extconf.rbc -lib/ruby/rubinius/rubinius/1.2/lib/ext/gdbm/gdbm.so +%%GDBM%%lib/ruby/rubinius/rubinius/1.2/lib/ext/gdbm/gdbm.so lib/ruby/rubinius/rubinius/1.2/lib/ext/gdbm/test/test_gdbm.rb lib/ruby/rubinius/rubinius/1.2/lib/ext/gdbm/test/test_gdbm.rbc lib/ruby/rubinius/rubinius/1.2/lib/ext/melbourne/extconf.rb |