freebsd-ports/textproc/rubygem-sassc/Makefile
Matthias Fechner aaed400cfe 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)
2019-05-28 08:38:04 +00:00

29 lines
635 B
Makefile

# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= sassc
PORTVERSION= 2.0.1
PORTREVISION= 1
CATEGORIES= textproc rubygems
MASTER_SITES= RG
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Use libsass with Ruby
LICENSE= MIT
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>