forked from Lainports/freebsd-ports
Switch from Mk/bsd.ruby.mk to Mk/Uses/ruby.mk
Notable changes are.
- Mk/bsd.ruby.mk is moved to Mk/Uses/ruby.mk.
- USE_RUBY=yes is replaced with USES=ruby.
- USE_RUBY_EXTCONF is replaced with USES=ruby:extconf.
- USE_RUBY_RDOC is replaced with USES=ruby:rdoc.
- USE_RUBY_SETUP is replaces with USES=ruby:setup.
- RUBY_NO_BUILD_DEPENDS and RUBY_NO_RUN_DEPENDS are replaced with
USES=ruby:{build,none,run}.
- RUBY_REQUIRE isn't used anywhere, so removed.
- USES=gem now implies USES=ruby.
This is mainly the work of yasu@ at https://reviews.freebsd.org/D27863
I have just made some cosmetic changes and ran exp-run to test that the
tree is not in a BROKEN state.
Approved by: portmgr
Differential Revision: https://reviews.freebsd.org/D37925
31 lines
893 B
Makefile
31 lines
893 B
Makefile
PORTNAME= dbm
|
|
PORTVERSION= 1.1.0
|
|
CATEGORIES= databases rubygems
|
|
MASTER_SITES= RG
|
|
|
|
MAINTAINER= yasu@FreeBSD.org
|
|
COMMENT= Wrapper for the UNIX-style Database Manager Library
|
|
WWW= https://github.com/ruby/dbm
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
|
|
USES= gem
|
|
|
|
OPTIONS_SINGLE= BACKEND
|
|
OPTIONS_SINGLE_BACKEND= BDB GDBM LIBC QDBM
|
|
OPTIONS_DEFAULT= LIBC
|
|
BACKEND_DESC= Select backend dbm library
|
|
BDB_USES= bdb
|
|
BDB_CONFIGURE_ON= --with-dbm-type=db${BDB_VER}
|
|
GDBM_CONFIGURE_ON= --with-dbm-type=gdbm_compat
|
|
GDBM_LIB_DEPENDS= libgdbm.so:databases/gdbm
|
|
LIBC_DESC= libc ndbm support
|
|
LIBC_CONFIGURE_ON= --with-dbm-type=libc
|
|
QDBM_DESC= QDBM support
|
|
QDBM_CONFIGURE_ON= --with-dbm-type=qdbm
|
|
QDBM_LIB_DEPENDS= libqdbm.so:databases/qdbm
|
|
|
|
pre-configure-GDBM-on:
|
|
@if [ ! -f ${LOCALBASE}/lib/libgdbm_compat.a ]; then ${ECHO_CMD} You need to reinstall database/gdbm with COMPAT option ON.; exit 1; fi
|
|
|
|
.include <bsd.port.mk>
|