2000-08-12 22:09:41 +02:00
|
|
|
# New ports collection makefile for: Ruby-MySQL
|
|
|
|
# Date created: 7 Aug 2000
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
2000-08-07 13:23:12 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mysql
|
|
|
|
PORTVERSION= 2.3.0
|
|
|
|
CATEGORIES= databases # ruby
|
|
|
|
MASTER_SITES= http://www.tmtm.org/mysql/ruby/
|
|
|
|
PKGNAMEPREFIX= ruby-
|
|
|
|
DISTNAME= ${PORTNAME}-ruby-${PORTVERSION}
|
2000-08-08 18:08:31 +02:00
|
|
|
DIST_SUBDIR= ruby
|
2000-08-07 13:23:12 +02:00
|
|
|
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
|
|
|
|
LIB_DEPENDS= mysqlclient.6:${PORTSDIR}/databases/mysql322-client
|
|
|
|
RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
|
|
|
|
|
2000-08-12 22:09:41 +02:00
|
|
|
INSTALL_TARGET= site-install
|
|
|
|
|
2000-08-07 13:23:12 +02:00
|
|
|
PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
|
|
|
|
|
2000-08-12 22:09:41 +02:00
|
|
|
RUBY?= ${LOCALBASE}/bin/ruby
|
|
|
|
RUBY_VER?= 1.4
|
|
|
|
RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
|
2000-08-07 13:23:12 +02:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC}; \
|
|
|
|
${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb
|
|
|
|
|
2000-08-12 22:09:41 +02:00
|
|
|
post-install:
|
2000-08-07 13:23:12 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/ruby/mysql/ja
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ruby/mysql/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.jp ${PREFIX}/share/doc/ruby/mysql/ja
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|