43 lines
956 B
Makefile
43 lines
956 B
Makefile
# $OpenBSD: Makefile,v 1.10 2010/01/27 21:43:27 naddy Exp $
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
COMMENT= access a MySQL database from Ruby
|
|
|
|
VERSION= 2.8.1
|
|
DISTNAME= mysql-ruby-${VERSION}
|
|
PKGNAME= ruby-mysql-${VERSION}p0
|
|
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>
|