Skip to content

Commit

Permalink
Libsass 3.4.8 & start of work to get PECL / PHP Brew
Browse files Browse the repository at this point in the history
  • Loading branch information
absalomedia committed Jan 14, 2018
1 parent 57d02ac commit ccf4a02
Show file tree
Hide file tree
Showing 6 changed files with 110 additions and 7 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The `sass` extension for PHP gives you an object-oriented system of parsing [Sass](http://sass-lang.com/) from within your PHP applications. Under the hood it uses [libsass](https://github.com/hcatlin/libsass) to provide super speedy and compatible Sass parsing.

![Libsass 3.4.5](https://img.shields.io/badge/libsass-3.4.5-yellow.svg) [![Build Status](https://travis-ci.org/absalomedia/sassphp.svg)](https://travis-ci.org/absalomedia/sassphp)
![Libsass 3.4.8](https://img.shields.io/badge/libsass-3.4.8-yellow.svg) [![Build Status](https://travis-ci.org/absalomedia/sassphp.svg)](https://travis-ci.org/absalomedia/sassphp)

## What's Sass?

Expand Down Expand Up @@ -148,13 +148,14 @@ If there's a problem, the extension will throw a `SassException`:

These extensions also utilise the [Libsass](https://github.com/hcatlin/libsass) library & remain in varying states of completion:

* Facebook [HHVM](https://github.com/absalomedia/sasshhvm) native (non Zend) extension - with Libsass 3.4.5 - tested up to HHVM 3.11.x
* [Nginx](https://github.com/absalomedia/sass-nginx-module) module - with Libsass 3.4.5
* Facebook [HHVM](https://github.com/absalomedia/sasshhvm) native (non Zend) extension - with Libsass 3.4.8 - tested up to HHVM 3.11.x
* [Nginx](https://github.com/absalomedia/sass-nginx-module) module - with Libsass 3.4.8

## Changelog

| Release | Description |
| --- | --- |
| 0.5.13 | Karol - Caroline (Libsass 3.4.8) |
| 0.5.13 | Ray - Manta (Libsass 3.4.5) & PHP stub file |
| 0.5.12 | Cartography - MapRoot functions |
| 0.5.11 | Zoomer (Libsass 3.4.4) stable |
Expand Down
2 changes: 1 addition & 1 deletion config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if test "$PHP_SASS" != "no"; then

if test "x$sass_version" != "x" ; then
# escape hell. This is what we need to pass to the
# compiler: -DLIBSASS_VERSION="\"'3.3.3\""
# compiler: -DLIBSASS_VERSION="\"'3.4.8\""
CFLAGS="-DLIBSASS_VERSION=\"\\\"$sass_version\\\"\" $CFLAGS"
CXXFLAGS="-DLIBSASS_VERSION=\"\\\"$sass_version\\\"\" $CXXFLAGS"
fi
Expand Down
2 changes: 1 addition & 1 deletion lib/libsass
102 changes: 102 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<?xml version="1.0" encoding="UTF-8"?>
<package packagerversion="1.9.4" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd">
<name>sass</name>
<channel>pecl.php.net</channel>
<summary>SASS - Sass for PHP</summary>
<description>SASS compliation for PHP</description>
<lead>
<name>Lawrence Meckan</name>
<user>absalomedia</user>
<email>[email protected]</email>
<active>yes</active>
</lead>
<date>2018-01-14</date>
<time>08:00:00</time>
<version>
<release>0.5.14</release>
<api>3.4.8</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<license uri="https://opensource.org/licenses/MIT">MIT License</license>
<notes>
-
</notes>
<contents>
<dir name="/">
<dir name="tests">
<file name="arginfo_present.phpt" role="test" />
<file name="available.phpt" role="test" />
<file name="check_bundled_libsass_version.phpt" role="test" />
<file name="class_exists.phpt" role="test" />
<file name="class_instantiable.phpt" role="test" />
<file name="file_comments.phpt" role="test" />
<file name="file_embed.phpt" role="test" />
<file name="file_indent.phpt" role="test" />
<file name="get_map_path.phpt" role="test" />
<file name="get_map_root.phpt" role="test" />
<file name="handles_comments.phpt" role="test" />
<file name="handles_embed.phpt" role="test" />
<file name="handles_include_path.phpt" role="test" />
<file name="handles_indent.phpt" role="test" />
<file name="handles_map_root.phpt" role="test" />
<file name="handles_map.phpt" role="test" />
<file name="handles_precision.phpt" role="test" />
<file name="handles_style.phpt" role="test" />
<file name="old_compile_file_alias_exists.phpt" role="test" />
<file name="parse_file_parses_file.phpt" role="test" />
<file name="parse_parses_correct_sass.phpt" role="test" />
<file name="throw_exception.phpt" role="test" />
<file name="support/foo.scss" role="test" />
<file name="support/import.scss" role="test" />
<file name="support/source_type.sass" role="test" />
<file name="support/test.scss" role="test" />
</dir>
<dir name="src">
<file name="php_sass.h" role="src" />
<file name="utilities.h" role="src" />
<file name="sass.c" role="src" />
<file name="utilities.c" role="src" />
</dir>
<file name="config.m4" role="src" />
<file name="config.w32" role="src" />
<file name="install.php" role="src" />
<file name="LICENSE" role="doc" />
<file name="README.md" role="doc" />
</dir>
</contents>
<dependencies>
<required>
<php>
<min>5.6.0-dev</min>
</php>
<pearinstaller>
<min>1.10</min>
</pearinstaller>
</required>
</dependencies>
<providesextension>sass</providesextension>
<extsrcrelease>
<configureoption name="enable-sass-debug" default="no" prompt="Enable internal debugging in SASS" />
</extsrcrelease>
<changelog>
<release>
<date>2018-01-14</date>
<version>
<release>0.5.14</release>
<api>3.4.8</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<license uri="https://opensource.org/licenses/MIT">MIT License</license>
<notes>
- Update libsass to 3.4.8
- Start of work for PECL inclusion
</notes>
</release>
</changelog>
</package>
2 changes: 1 addition & 1 deletion src/php_sass.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "config.h"
#endif

#define SASS_VERSION "0.5.13"
#define SASS_VERSION "0.5.14"
#define SASS_FLAVOR "Sassyphpras"

#include <php.h>
Expand Down
2 changes: 1 addition & 1 deletion tests/check_bundled_libsass_version.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ check bundled libsass version
--FILE--
<?php

echo version_compare(Sass::getLibraryVersion(), '3.4.5')
echo version_compare(Sass::getLibraryVersion(), '3.4.8')

?>
--EXPECT--
Expand Down

0 comments on commit ccf4a02

Please sign in to comment.