Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Aug 2014 18:49:35 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r366129 - in head: Mk databases/postgresql-plruby databases/ruby-bdb devel/libpafe-ruby graphics/ruby-gd
Message-ID:  <201408251849.s7PInZrM066050@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Mon Aug 25 18:49:34 2014
New Revision: 366129
URL: http://svnweb.freebsd.org/changeset/ports/366129
QAT: https://qat.redports.org/buildarchive/r366129/

Log:
  Allow ports using ruby extconf to be built as non root
  
  PR:		ports/191313

Modified:
  head/Mk/bsd.ruby.mk
  head/databases/postgresql-plruby/Makefile
  head/databases/ruby-bdb/Makefile
  head/devel/libpafe-ruby/Makefile
  head/graphics/ruby-gd/Makefile

Modified: head/Mk/bsd.ruby.mk
==============================================================================
--- head/Mk/bsd.ruby.mk	Mon Aug 25 18:49:16 2014	(r366128)
+++ head/Mk/bsd.ruby.mk	Mon Aug 25 18:49:34 2014	(r366129)
@@ -522,6 +522,7 @@ USE_RUBY=		yes
 
 RUBY_EXTCONF?=		extconf.rb
 CONFIGURE_ARGS+=	--with-opt-dir="${LOCALBASE}"
+CONFIGURE_ENV+=		RB_USER_INSTALL=yes
 
 do-configure:	ruby-extconf-configure
 

Modified: head/databases/postgresql-plruby/Makefile
==============================================================================
--- head/databases/postgresql-plruby/Makefile	Mon Aug 25 18:49:16 2014	(r366128)
+++ head/databases/postgresql-plruby/Makefile	Mon Aug 25 18:49:34 2014	(r366129)
@@ -20,9 +20,8 @@ WANT_PGSQL=	server
 USE_RUBY=	yes
 USE_RUBY_EXTCONF=	yes
 USE_RUBY_RDOC=		yes
-NEED_ROOT=	yes
 
-POSTGRESQL_PORT?=	databases/postgresql${PGSQL_VER}-server
+POSTGRESQL_PORT?=	databases/postgresql${PGSQL_VER_NODOT}-server
 PGSQL_PORTDIR?=		${PORTSDIR}/${POSTGRESQL_PORT}
 PGSQL_WRKSRC_CMD=	cd ${PGSQL_PORTDIR} && ${MAKE} -V WRKSRC
 

Modified: head/databases/ruby-bdb/Makefile
==============================================================================
--- head/databases/ruby-bdb/Makefile	Mon Aug 25 18:49:16 2014	(r366128)
+++ head/databases/ruby-bdb/Makefile	Mon Aug 25 18:49:34 2014	(r366129)
@@ -56,8 +56,6 @@ SHEBANG_FILES=	examples/record.rb \
 		examples/basic.rb \
 		examples/lock.rb
 
-NEED_ROOT=	yes
-
 .include <bsd.port.pre.mk>
 
 post-patch:

Modified: head/devel/libpafe-ruby/Makefile
==============================================================================
--- head/devel/libpafe-ruby/Makefile	Mon Aug 25 18:49:16 2014	(r366128)
+++ head/devel/libpafe-ruby/Makefile	Mon Aug 25 18:49:34 2014	(r366129)
@@ -18,7 +18,6 @@ LIB_DEPENDS=	libpafe.so:${PORTSDIR}/deve
 
 USE_RUBY=		yes
 USE_RUBY_EXTCONF=	yes
-NEED_ROOT=		yes
 
 PLIST_FILES=	%%RUBY_SITEARCHLIBDIR%%/pasori.so
 

Modified: head/graphics/ruby-gd/Makefile
==============================================================================
--- head/graphics/ruby-gd/Makefile	Mon Aug 25 18:49:16 2014	(r366128)
+++ head/graphics/ruby-gd/Makefile	Mon Aug 25 18:49:34 2014	(r366129)
@@ -17,8 +17,6 @@ COMMENT=	Ruby extension library to use T
 LIB_DEPENDS=	libfreetype.so:${PORTSDIR}/print/freetype2 \
 		libgd.so:${PORTSDIR}/graphics/gd
 
-NEED_ROOT=	yes
-
 USE_RUBY=	yes
 USE_RUBY_EXTCONF=	yes
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408251849.s7PInZrM066050>