0f31f9020a
Make regress run all three regression test suites. Before, later regression test suites wouldn't be run if earlier ones were not successful, which stopped the main test suite from running on i386, macppc, and possibly other arches. Override the arch setting to remove OpenBSD version from it, so ports don't have to be bumped when OpenBSD version changes. OK landry@, jcs@
78 lines
2.0 KiB
Makefile
78 lines
2.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.15 2011/07/19 17:08:54 jeremy Exp $
|
|
|
|
COMMENT-main = object oriented script language with threads
|
|
COMMENT-gdbm = gdbm interface for Ruby
|
|
COMMENT-dbm = Berkley DB interface for Ruby
|
|
COMMENT-tk= tk interface for ruby
|
|
|
|
VERSION = 1.9.2
|
|
PATCHLEVEL = 290
|
|
RUBYLIBREV = 1.9.1
|
|
|
|
SHARED_LIBS = ruby19 0.0
|
|
PKGNAME-main = ruby-${VERSION}.${PATCHLEVEL}
|
|
PKGNAME-gdbm = ruby-gdbm-${VERSION}.${PATCHLEVEL}
|
|
PKGNAME-dbm = ruby-dbm-${VERSION}.${PATCHLEVEL}
|
|
PKGNAME-tk = ruby-tk-${VERSION}.${PATCHLEVEL}
|
|
|
|
PKGSPEC-main = ruby->=1.9,<1.10
|
|
|
|
CONFIGURE_ARGS = --program-suffix=19 \
|
|
--with-soname=ruby19 \
|
|
--enable-pthread \
|
|
--enable-ipv6 \
|
|
--disable-option-checking
|
|
|
|
CONFIGURE_ENV = LIBruby19_VERSION=${LIBruby19_VERSION}
|
|
|
|
MODULES = converters/libiconv
|
|
USE_GROFF = Yes
|
|
|
|
WANTLIB-main = c crypto ffi m ncurses ncursesw pthread readline ssl \
|
|
termcap util yaml z ${MODLIBICONV_WANTLIB}
|
|
LIB_DEPENDS-main = ${MODLIBICONV_LIB_DEPENDS} \
|
|
devel/libyaml \
|
|
devel/libffi
|
|
RUN_DEPENDS-main = ${MODLIBICONV_RUN_DEPENDS}
|
|
|
|
PSEUDO_FLAVORS= no_x11
|
|
FLAVOR?=
|
|
|
|
MULTI_PACKAGES = -main -gdbm -dbm
|
|
|
|
WANTLIB-gdbm = c m gdbm ruby19
|
|
LIB_DEPENDS-gdbm = databases/gdbm \
|
|
lang/ruby/${REV},-main
|
|
RUN_DEPENDS-gdbm =
|
|
|
|
WANTLIB-dbm = c m db ruby19
|
|
LIB_DEPENDS-dbm = databases/db/v4 \
|
|
lang/ruby/${REV},-main
|
|
RUN_DEPENDS-dbm =
|
|
|
|
.if !${FLAVOR:L:Mno_x11}
|
|
MULTI_PACKAGES+= -tk
|
|
CONFIGURE_ARGS+= --with-tcl-include=${PREFIX}/include/tcl8.5 \
|
|
--with-tk-include=${PREFIX}/include/tk8.5 \
|
|
--with-X11-dir=${X11BASE}
|
|
WANTLIB-tk = X11 c m ruby19 tcl85 tk85
|
|
LIB_DEPENDS-tk = tk->=8.5,<8.6:x11/tk/8.5 \
|
|
lang/ruby/${REV},-main
|
|
RUN_DEPENDS-tk =
|
|
.endif
|
|
|
|
SUBST_VARS += RUBYLIBREV
|
|
|
|
# Known threading bootstraptest failures on i386 and macppc
|
|
# Occassional threading bootstrap failure on amd64
|
|
# Known endian issues in fiddle/dl on sparc64
|
|
# Known encoding related failure in one REXML test
|
|
REGRESS_DEPENDS = ${FULLPKGNAME-main}:${BUILD_PKGPATH}
|
|
|
|
do-regress:
|
|
-cd ${WRKSRC} && make test-sample
|
|
-cd ${WRKSRC} && make btest-ruby
|
|
cd ${WRKSRC} && make test-all
|
|
|
|
.include <bsd.port.mk>
|