- Fix pkg-plist in case when gdbm is not present.

- Add option to enable/disable GDBM.

Reported by:	pav
Feature safe:	yes
This commit is contained in:
Stanislav Sedov 2011-01-12 03:42:23 +00:00
parent 9f1555d0fc
commit 41c7d16f7a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=267688
2 changed files with 10 additions and 1 deletions

View file

@ -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}

View file

@ -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