d765f5df76
In the upgrade from ruby 1.8.6 to 1.8.7, the PLISTs changed due to differences in how RDoc processes files. This also has a number of changes to the regress tests to work with the changes to devel/ruby-rake. It moves most of the regress tests to use MODRUBY_REGRESS. OK jcs@, landry@, jasper@, sthen@
44 lines
967 B
Makefile
44 lines
967 B
Makefile
# $OpenBSD: Makefile,v 1.12 2010/09/23 22:30:25 jeremy Exp $
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
COMMENT= access a MySQL database from Ruby
|
|
|
|
VERSION= 2.8.1
|
|
DISTNAME= mysql-ruby-${VERSION}
|
|
PKGNAME= ruby-mysql-${VERSION}
|
|
REVISION= 2
|
|
CATEGORIES= databases
|
|
|
|
HOMEPAGE= http://tmtm.org/mysql/ruby/
|
|
|
|
# Ruby License
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${MASTER_SITE_RUBYFORGE:=mysql-ruby/}
|
|
|
|
MODULES= lang/ruby
|
|
|
|
WANTLIB= c m
|
|
|
|
LIB_DEPENDS= ${MODRUBY_LIB_DEPENDS} \
|
|
mysqlclient::databases/mysql
|
|
|
|
CONFIGURE_STYLE=ruby extconf
|
|
|
|
REGRESS_DEPENDS=::databases/mysql,-server
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ruby-mysql
|
|
${INSTALL_DATA} ${WRKBUILD}/README.html ${PREFIX}/share/doc/ruby-mysql
|
|
${INSTALL_DATA} ${WRKBUILD}/tommy.css ${PREFIX}/share/doc/ruby-mysql
|
|
|
|
# A running mysqld is required to run the regression tests.
|
|
do-regress:
|
|
@cd ${WRKBUILD} && ${RUBY} test.rb
|
|
|
|
.include <bsd.port.mk>
|