Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 2019 08:38:04 +0000 (UTC)
From:      Matthias Fechner <mfechner@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r502865 - head/textproc/rubygem-sassc
Message-ID:  <201905280838.x4S8c4fc084164@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mfechner
Date: Tue May 28 08:38:04 2019
New Revision: 502865
URL: https://svnweb.freebsd.org/changeset/ports/502865

Log:
  Fixed problem that libsass.so could not be found:
  LoadError: Could not open library
  '/usr/local/lib/ruby/gems/2.5/gems/sassc-2.0.1/ext/libsass/lib/libsass.so':
  Cannot open
  "/usr/local/lib/ruby/gems/2.5/gems/sassc-2.0.1/ext/libsass/lib/libsass.so"
  /usr/local/www/gitlab-ce/config/application.rb:5:in `<top (required)>'
  /usr/local/www/gitlab-ce/Rakefile:5:in `<top (required)>'
  (See full trace by running task with --trace)
  
  Submitted by:	partly be swills@
  Approved by:	ruby@ (swills)

Modified:
  head/textproc/rubygem-sassc/Makefile

Modified: head/textproc/rubygem-sassc/Makefile
==============================================================================
--- head/textproc/rubygem-sassc/Makefile	Tue May 28 08:18:44 2019	(r502864)
+++ head/textproc/rubygem-sassc/Makefile	Tue May 28 08:38:04 2019	(r502865)
@@ -3,6 +3,7 @@
 
 PORTNAME=	sassc
 PORTVERSION=	2.0.1
+PORTREVISION=	1
 CATEGORIES=	textproc rubygems
 MASTER_SITES=	RG
 
@@ -15,10 +16,14 @@ LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 BUILD_DEPENDS=	rubygem-rake>=0:devel/rubygem-rake
 RUN_DEPENDS=	rubygem-ffi>=1.9.6:devel/rubygem-ffi \
 		rubygem-rake>=0:devel/rubygem-rake
+LIB_DEPENDS=	libsass.so:textproc/libsass
 
 USES=		gem gmake
 USE_RUBY=	yes
 
 NO_ARCH=	yes
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|#{gem_root}/ext/libsass|${LOCALBASE}|g' ${WRKSRC}/lib/sassc/native.rb
 
 .include <bsd.port.mk>



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