diff options
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/rubygem-jdbc-mysql/Makefile | 28 | ||||
-rw-r--r-- | databases/rubygem-jdbc-mysql/distinfo | 3 | ||||
-rw-r--r-- | databases/rubygem-jdbc-mysql/pkg-descr | 7 |
4 files changed, 39 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index 83939392c820..80516af446ed 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -555,6 +555,7 @@ SUBDIR += ruby-sqlite SUBDIR += rubygem-activerecord SUBDIR += rubygem-activerecord-jdbc-adapter + SUBDIR += rubygem-jdbc-mysql SUBDIR += rubygem-memcache-client SUBDIR += rubygem-postgres SUBDIR += rubygem-rrdtool diff --git a/databases/rubygem-jdbc-mysql/Makefile b/databases/rubygem-jdbc-mysql/Makefile new file mode 100644 index 000000000000..aaa849705cdf --- /dev/null +++ b/databases/rubygem-jdbc-mysql/Makefile @@ -0,0 +1,28 @@ +# Ports collection makefile for: rubygem-jdbc-mysql +# Date created: 22 July 2008 +# Whom: Alexander Logvinov <ports@logvinov,com> +# +# $FreeBSD$ + +PORTNAME= jdbc-mysql +PORTVERSION= 5.0.4 +CATEGORIES= databases rubygems java +MASTER_SITES= RF +MASTER_SITE_SUBDIR= jruby-extras + +MAINTAINER= ports@logvinov.com +COMMENT= MySQL JDBC driver for JRuby + +RUN_DEPENDS= jruby:${PORTSDIR}/lang/jruby + +USE_RUBY= yes +USE_RUBYGEMS= yes + +post-install: + @${ECHO} ${GEM_CACHE} > ${TMPPLIST} + @${FIND} ${PREFIX}/${GEM_DOC_DIR} -type f | ${SED} -e 's,${PREFIX}/${GEM_DOC_DIR},${GEM_DOC_DIR},' >> ${TMPPLIST} + @${FIND} ${PREFIX}/${GEM_LIB_DIR} -type f | ${SED} -e 's,${PREFIX}/${GEM_LIB_DIR},${GEM_LIB_DIR},' >> ${TMPPLIST} + @${ECHO} ${GEM_SPEC} >> ${TMPPLIST} + @${FIND} ${PREFIX}/${GEM_LIB_DIR} -type d -depth | ${SED} -e 's,${PREFIX}/${GEM_LIB_DIR},@dirrm ${GEM_LIB_DIR},' >> ${TMPPLIST} + @${FIND} ${PREFIX}/${GEM_DOC_DIR} -type d -depth | ${SED} -e 's,${PREFIX}/${GEM_DOC_DIR},@dirrm ${GEM_DOC_DIR},' >> ${TMPPLIST} +.include <bsd.port.mk> diff --git a/databases/rubygem-jdbc-mysql/distinfo b/databases/rubygem-jdbc-mysql/distinfo new file mode 100644 index 000000000000..b3e6805f2bc2 --- /dev/null +++ b/databases/rubygem-jdbc-mysql/distinfo @@ -0,0 +1,3 @@ +MD5 (rubygem/jdbc-mysql-5.0.4.gem) = 5359e303081917d59d5c408c442d041e +SHA256 (rubygem/jdbc-mysql-5.0.4.gem) = 585c209768c0e929148cde39ecfd2e6029725a151cca188fbe576c3ec8cad589 +SIZE (rubygem/jdbc-mysql-5.0.4.gem) = 482304 diff --git a/databases/rubygem-jdbc-mysql/pkg-descr b/databases/rubygem-jdbc-mysql/pkg-descr new file mode 100644 index 000000000000..d053e274824b --- /dev/null +++ b/databases/rubygem-jdbc-mysql/pkg-descr @@ -0,0 +1,7 @@ +This is a MySQL JDBC driver gem for JRuby. Use + + require 'jdbc/mysql' + +to make the driver accessible to JDBC and ActiveRecord code running in JRuby. + +WWW: http://rubyforge.org/projects/jruby-extras/ |