aboutsummaryrefslogtreecommitdiff
path: root/databases/ruby-mysql
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-09-07 14:39:47 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-09-07 14:39:47 +0000
commit6be33926020dcfa43ec8a1bf94700238962f3b92 (patch)
treeb915338a31558eaf368cfd16cdf2b7ec1e6e80db /databases/ruby-mysql
parent79507948280cacb290417077cbdc3e8420c3f9c1 (diff)
downloadports-6be33926020dcfa43ec8a1bf94700238962f3b92.tar.gz
ports-6be33926020dcfa43ec8a1bf94700238962f3b92.zip
Notes
Diffstat (limited to 'databases/ruby-mysql')
-rw-r--r--databases/ruby-mysql/Makefile27
-rw-r--r--databases/ruby-mysql/pkg-plist10
2 files changed, 15 insertions, 22 deletions
diff --git a/databases/ruby-mysql/Makefile b/databases/ruby-mysql/Makefile
index 71256a328f5d..ee1a88f85a0b 100644
--- a/databases/ruby-mysql/Makefile
+++ b/databases/ruby-mysql/Makefile
@@ -9,33 +9,26 @@ PORTNAME= mysql
PORTVERSION= 2.3.0
CATEGORIES= databases ruby
MASTER_SITES= http://www.tmtm.org/mysql/ruby/
-PKGNAMEPREFIX= ruby-
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}-ruby-${PORTVERSION}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
LIB_DEPENDS= mysqlclient.6:${PORTSDIR}/databases/mysql322-client
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
-INSTALL_TARGET= site-install
-
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
-
-do-configure:
- @cd ${WRKSRC}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb
+INSTALL_TARGET= site-install
post-install:
.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
+ ${MKDIR} ${RUBY_DOCDIR}/mysql/ja
+ ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/mysql/
+ ${INSTALL_DATA} ${WRKSRC}/README.jp ${RUBY_DOCDIR}/mysql/ja
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/databases/ruby-mysql/pkg-plist b/databases/ruby-mysql/pkg-plist
index b62f12b041a3..f343c8a6e3b4 100644
--- a/databases/ruby-mysql/pkg-plist
+++ b/databases/ruby-mysql/pkg-plist
@@ -1,5 +1,5 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/mysql.so
-share/doc/ruby/mysql/ja/README.jp
-share/doc/ruby/mysql/README
-@dirrm share/doc/ruby/mysql/ja
-@dirrm share/doc/ruby/mysql
+%%RUBY_SITEARCHLIBDIR%%/mysql.so
+%%RUBY_DOCDIR%%/mysql/ja/README.jp
+%%RUBY_DOCDIR%%/mysql/README
+@dirrm %%RUBY_DOCDIR%%/mysql/ja
+@dirrm %%RUBY_DOCDIR%%/mysql