summaryrefslogtreecommitdiff
path: root/repo/libsass
diff options
context:
space:
mode:
Diffstat (limited to 'repo/libsass')
-rw-r--r--repo/libsass/fix-pkgconfig-version.patch16
-rw-r--r--repo/libsass/libsass.xibuild31
2 files changed, 47 insertions, 0 deletions
diff --git a/repo/libsass/fix-pkgconfig-version.patch b/repo/libsass/fix-pkgconfig-version.patch
new file mode 100644
index 0000000..f957de4
--- /dev/null
+++ b/repo/libsass/fix-pkgconfig-version.patch
@@ -0,0 +1,16 @@
+diff --git a/version.sh b/version.sh
+index 281de74..22cd96d 100755
+--- a/version.sh
++++ b/version.sh
+@@ -1,10 +1 @@
+-if test "x$LIBSASS_VERSION" = "x"; then
+- LIBSASS_VERSION=`git describe --abbrev=4 --dirty --always --tags 2>/dev/null`
+-fi
+-if test "x$LIBSASS_VERSION" = "x"; then
+- LIBSASS_VERSION=`cat VERSION 2>/dev/null`
+-fi
+-if test "x$LIBSASS_VERSION" = "x"; then
+- LIBSASS_VERSION="[na]"
+-fi
+-echo $LIBSASS_VERSION
++echo 3.6.3
diff --git a/repo/libsass/libsass.xibuild b/repo/libsass/libsass.xibuild
new file mode 100644
index 0000000..534219f
--- /dev/null
+++ b/repo/libsass/libsass.xibuild
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+NAME="libsass"
+DESC="C/C++ implementation of a Sass compiler"
+
+MAKEDEPS="autoconf automake libtool"
+
+PKG_VER=3.6.5
+SOURCE="https://github.com/sass/libsass/archive/$PKG_VER.tar.gz"
+
+ADDITIONAL="
+fix-pkgconfig-version.patch
+"
+
+prepare() {
+ apply_patches
+ autoreconf -vif
+}
+
+build() {
+ ./configure \
+ --prefix=/usr \
+ --disable-static
+ make
+}
+
+package() {
+ make install DESTDIR="$PKG_DEST"
+ rm -f "$PKG_DEST"/usr/lib/*.la
+}
+