From b646aed9ff64c18221dfe2341553087d2165c6d1 Mon Sep 17 00:00:00 2001 From: Bogdan Popa Date: Sun, 15 Sep 2019 13:48:33 +0300 Subject: [PATCH] build: add libsass dependency --- sass/info.rkt | 2 +- sass/private/libsass.rkt | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sass/info.rkt b/sass/info.rkt index ff89d5a..873c54e 100644 --- a/sass/info.rkt +++ b/sass/info.rkt @@ -2,7 +2,7 @@ (define version "0.0.0") (define collection "sass") -(define deps '("base")) +(define deps '("base" "libsass")) (define build-deps '("racket-doc" "rackunit-lib" "scribble-lib")) diff --git a/sass/private/libsass.rkt b/sass/private/libsass.rkt index 949e6dd..734ffd6 100644 --- a/sass/private/libsass.rkt +++ b/sass/private/libsass.rkt @@ -1,7 +1,8 @@ #lang racket/base (require ffi/unsafe - ffi/unsafe/define) + ffi/unsafe/define + libsass) (provide bytes->unmanaged-cstring @@ -34,7 +35,7 @@ ;; Basics ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -(define-ffi-definer define-sass (ffi-lib "libsass")) +(define-ffi-definer define-sass (ffi-lib (or libsass-path "libsass"))) (define-sass libsass_version (_fun -> _string)) (define-sass libsass_language_version (_fun -> _string))