openbsd-ports/devel/ruby-ffi/Makefile
jeremy 16703d23fa Update ruby ports to deal with the regress changes to ruby.port.mk.
Start using MODRUBY_REGRESS with ruby, rspec2, and testrb entries.
Switch away from manual do_regress targets where possible.  Add
some patches to make regress tests run for some ports.
2011-11-17 16:08:00 +00:00

43 lines
922 B
Makefile

# $OpenBSD: Makefile,v 1.8 2011/11/17 16:08:00 jeremy Exp $
COMMENT = cross-platform dynamic library loading for ruby
DISTNAME = ffi-1.0.9
CATEGORIES = devel
REVISION = 1
HOMEPAGE= http://github.com/ffi/ffi
MAINTAINER = Jeremy Evans <jeremy@openbsd.org>
# LPGLv3
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MODULES = lang/ruby
BUILD_DEPENDS = ${RUN_DEPENDS}
RUN_DEPENDS = ${MODRUBY_RAKE_DEPENDS}
WANTLIB = ffi
LIB_DEPENDS = devel/libffi
CONFIGURE_STYLE = ruby gem ext
post-install:
rm -r ${GEM_ABS_PATH}/gems/${DISTNAME}/ext
# Doesn't ship with libtest directory, which is necessary for
# regress
NO_REGRESS = Yes
#REGRESS_DEPENDS = ${FULLPKGNAME}:${BUILD_PKGPATH}
#MODRUBY_REGRESS = rspec2
#MODRUBY_REGRESS_ENV = RUBYLIB=$$(dirname `${GEM} which ffi.rb`) \
# RUBYOPT=-rffi
#MODRUBY_REGRESS_TARGET = spec/ffi/*_spec.rb
.include <bsd.port.mk>