From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jan 20 19:20:05 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 99F7916A41F for ; Fri, 20 Jan 2006 19:20:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB1BA43D45 for ; Fri, 20 Jan 2006 19:20:04 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k0KJK4GB030584 for ; Fri, 20 Jan 2006 19:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k0KJK49Z030579; Fri, 20 Jan 2006 19:20:04 GMT (envelope-from gnats) Resent-Date: Fri, 20 Jan 2006 19:20:04 GMT Resent-Message-Id: <200601201920.k0KJK49Z030579@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Roderick van Domburg Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D172E16A41F for ; Fri, 20 Jan 2006 19:10:23 +0000 (GMT) (envelope-from roderick@developer.nedforce.nl) Received: from developer.nedforce.nl (82-168-201-247.dsl.ip.tiscali.nl [82.168.201.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DA0343D46 for ; Fri, 20 Jan 2006 19:10:20 +0000 (GMT) (envelope-from roderick@developer.nedforce.nl) Received: from developer.nedforce.nl (localhost.nedforce.nl [127.0.0.1]) by developer.nedforce.nl (8.13.4/8.13.4) with ESMTP id k0KIA453082722 for ; Fri, 20 Jan 2006 19:10:04 +0100 (CET) (envelope-from roderick@developer.nedforce.nl) Received: (from root@localhost) by developer.nedforce.nl (8.13.4/8.13.4/Submit) id k0KIA4NW082721; Fri, 20 Jan 2006 19:10:04 +0100 (CET) (envelope-from roderick) Message-Id: <200601201810.k0KIA4NW082721@developer.nedforce.nl> Date: Fri, 20 Jan 2006 19:10:04 +0100 (CET) From: Roderick van Domburg To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/92072: databases/rubygem-activerecord: MySQL options & portlint(1) cleanup X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Roderick van Domburg List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jan 2006 19:20:05 -0000 >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@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@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 + +.if defined(WITH_NATIVE_MYSQL) +RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/mysql.so:${PORTSDIR}/databases/ruby-mysql +.endif + .include "${PORTSDIR}/devel/ruby-gems/Makefile.common" .include --- patch-rubygem-activerecord-mysql ends here --- >Release-Note: >Audit-Trail: >Unformatted: