ports/92072: databases/rubygem-activerecord: MySQL options & portlint(1) cleanup
Roderick van Domburg
roderick at developer.nedforce.nl
Fri Jan 20 19:20:05 UTC 2006
>Number: 92072
>Category: ports
>Synopsis: databases/rubygem-activerecord: MySQL options & portlint(1) cleanup
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Jan 20 19:20:03 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Roderick van Domburg
>Release: FreeBSD 6.0-STABLE sparc64
>Organization:
University of Twente
>Environment:
System: FreeBSD developer.nedforce.nl 6.0-STABLE FreeBSD 6.0-STABLE #1: Thu Jan 12 10:47:03 CET 2006 roderick at developer.nedforce.nl:/usr/obj/usr/src/sys/DEVELOPER sparc64
>Description:
This patch adds a nifty options screen so that users can pull in the native
MySQL bindings. These bindings increase Rails' database performance by a
said 10-15%.
I turned the option off by default, to prevent annoyances for non-MySQL
users. While I was here, I fixed several portlint(1) warnings as well.
>How-To-Repeat:
>Fix:
--- patch-rubygem-activerecord-mysql begins here ---
diff -ruN rubygem-activerecord.bak/Makefile rubygem-activerecord/Makefile
--- rubygem-activerecord.bak/Makefile Fri Jan 20 18:29:48 2006
+++ rubygem-activerecord/Makefile Fri Jan 20 19:02:56 2006
@@ -6,17 +6,27 @@
PORTNAME= activerecord
PORTVERSION= 1.13.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= databases ruby
+MASTER_SITES= http://rubyforge.org/frs/download.php/7641/
MAINTAINER= jw at innerewut.de
COMMENT= Object-relational mapping layer for Rails MVC Framework
-MASTER_SITES= http://rubyforge.org/frs/download.php/7641/
-
BUILD_DEPENDS= ${LOCALBASE}/${SPEC_DIR}/activesupport-1.2.5.gemspec:${PORTSDIR}/devel/rubygem-activesupport
RUN_DEPENDS= ${BUILD_DEPENDS}
+OPTIONS= NATIVE_MYSQL "Use native MySQL bindings (faster)" Off
+OPTIONSFILE= ${PORT_DBDIR}/rubygem-${PORTNAME}/options
+
+# to get RUBY_SITEARCHLIBDIR
+USE_RUBY= yes
+
.include <bsd.port.pre.mk>
+
+.if defined(WITH_NATIVE_MYSQL)
+RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/mysql.so:${PORTSDIR}/databases/ruby-mysql
+.endif
+
.include "${PORTSDIR}/devel/ruby-gems/Makefile.common"
.include <bsd.port.post.mk>
--- patch-rubygem-activerecord-mysql ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list