2009-08-10 12:29:23 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.8 2009/08/10 16:29:23 msf Exp $
|
2008-02-02 09:06:05 -05:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
|
|
|
COMMENT= access a MySQL database from Ruby
|
|
|
|
|
2008-03-29 07:35:45 -04:00
|
|
|
VERSION= 2.7.5
|
2008-02-02 09:06:05 -05:00
|
|
|
DISTNAME= mysql-ruby-${VERSION}
|
2009-06-22 13:00:23 -04:00
|
|
|
PKGNAME= ruby-mysql-${VERSION}p3
|
2008-02-02 09:06:05 -05:00
|
|
|
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
|
|
|
|
|
2009-08-10 12:29:23 -04:00
|
|
|
LIB_DEPENDS= ${MODRUBY_LIB_DEPENDS} \
|
|
|
|
mysqlclient::databases/mysql
|
2008-02-02 09:06:05 -05:00
|
|
|
|
|
|
|
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>
|