sassc 2.1.0.pre1 → 2.1.0.pre2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,134 +0,0 @@
1
- # -*- Autoconf -*-
2
- # Process this file with autoconf to produce a configure script.
3
-
4
- AC_PREREQ([2.61])
5
-
6
- AC_INIT([libsass], m4_esyscmd_s([./version.sh]), [support@moovweb.com])
7
- AC_CONFIG_SRCDIR([src/ast.hpp])
8
- AC_CONFIG_MACRO_DIR([m4])
9
- AC_CONFIG_HEADERS([src/config.h])
10
- AC_CONFIG_FILES([include/sass/version.h])
11
- AC_CONFIG_AUX_DIR([script])
12
-
13
- # These are flags passed to automake
14
- # Though they look like gcc flags!
15
- AM_INIT_AUTOMAKE([foreign parallel-tests -Wall])
16
- m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([no])])
17
-
18
- # Checks for programs.
19
- AC_PROG_CC
20
- AC_PROG_CXX
21
- AC_LANG_PUSH([C])
22
- AC_LANG_PUSH([C++])
23
- AC_GNU_SOURCE
24
- # Check fails on Travis, but it works fine
25
- # AX_CXX_COMPILE_STDCXX_11([ext],[optional])
26
- AC_CHECK_TOOL([AR], [ar], [false])
27
- AC_CHECK_TOOL([DLLTOOL], [dlltool], [false])
28
- AC_CHECK_TOOL([DLLWRAP], [dllwrap], [false])
29
- AC_CHECK_TOOL([WINDRES], [windres], [false])
30
- m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
31
- LT_INIT([dlopen])
32
-
33
- # Checks for header files.
34
- AC_CHECK_HEADERS([unistd.h])
35
-
36
- # Checks for typedefs, structures, and compiler characteristics.
37
- AC_TYPE_SIZE_T
38
-
39
- # Checks for library functions.
40
- AC_FUNC_MALLOC
41
- AC_CHECK_FUNCS([floor getcwd strtol])
42
-
43
- # Checks for testing.
44
- AC_ARG_ENABLE(tests, AS_HELP_STRING([--enable-tests], [enable testing the build]),
45
- [enable_tests="$enableval"], [enable_tests=no])
46
-
47
- AS_CASE([$host], [*-*-mingw*], [is_mingw32=yes], [is_mingw32=no])
48
- AM_CONDITIONAL(COMPILER_IS_MINGW32, test "x$is_mingw32" = "xyes")
49
-
50
- dnl The dlopen() function is in the C library for *BSD and in
51
- dnl libdl on GLIBC-based systems
52
- if test "x$is_mingw32" != "xyes"; then
53
- AC_SEARCH_LIBS([dlopen], [dl dld], [], [
54
- AC_MSG_ERROR([unable to find the dlopen() function])
55
- ])
56
- fi
57
-
58
- if test "x$enable_tests" = "xyes"; then
59
- AC_PROG_CC
60
- AC_PROG_AWK
61
- # test need minitest gem
62
- AC_PATH_PROG(RUBY, [ruby])
63
- AC_PATH_PROG(TAPOUT, [tapout])
64
- AC_REQUIRE_AUX_FILE([tap-driver])
65
- AC_REQUIRE_AUX_FILE([tap-runner])
66
- AC_ARG_WITH(sassc-dir,
67
- AS_HELP_STRING([--with-sassc-dir=<dir>], [specify directory of sassc sources for testing (default: sassc)]),
68
- [sassc_dir="$withval"], [sassc_dir="sassc"])
69
- AC_CHECK_FILE([$sassc_dir/sassc.c], [], [
70
- AC_MSG_ERROR([Unable to find sassc directory.
71
- You must clone the sassc repository in this directory or specify
72
- the --with-sassc-dir=<dir> argument.
73
- ])
74
- ])
75
- SASS_SASSC_PATH=$sassc_dir
76
- AC_SUBST(SASS_SASSC_PATH)
77
-
78
- AC_ARG_WITH(sass-spec-dir,
79
- AS_HELP_STRING([--with-sass-spec-dir=<dir>], [specify directory of sass-spec for testing (default: sass-spec)]),
80
- [sass_spec_dir="$withval"], [sass_spec_dir="sass-spec"])
81
- AC_CHECK_FILE([$sass_spec_dir/sass-spec.rb], [], [
82
- AC_MSG_ERROR([Unable to find sass-spec directory.
83
- You must clone the sass-spec repository in this directory or specify
84
- the --with-sass-spec-dir=<dir> argument.
85
- ])
86
- ])
87
- # Automake doesn't like its tests in an absolute path, so we make it relative.
88
- case $sass_spec_dir in
89
- /*)
90
- SASS_SPEC_PATH=`$RUBY -e "require 'pathname'; puts Pathname.new('$sass_spec_dir').relative_path_from(Pathname.new('$PWD')).to_s"`
91
- ;;
92
- *)
93
- SASS_SPEC_PATH="$sass_spec_dir"
94
- ;;
95
- esac
96
- AC_SUBST(SASS_SPEC_PATH)
97
- else
98
- # we do not really need these paths for non test build
99
- # but automake may error if we do not define them here
100
- SASS_SPEC_PATH=sass-spec
101
- SASS_SASSC_PATH=sassc
102
- AC_SUBST(SASS_SPEC_PATH)
103
- AC_SUBST(SASS_SASSC_PATH)
104
- fi
105
-
106
- AM_CONDITIONAL(ENABLE_TESTS, test "x$enable_tests" = "xyes")
107
-
108
- AC_ARG_ENABLE([coverage],
109
- [AS_HELP_STRING([--enable-coverage],
110
- [enable coverage report for test suite])],
111
- [enable_cov=$enableval],
112
- [enable_cov=no])
113
-
114
- if test "x$enable_cov" = "xyes"; then
115
-
116
- AC_CHECK_PROG(GCOV, gcov, gcov)
117
-
118
- # Remove all optimization flags from C[XX]FLAGS
119
- changequote({,})
120
- CFLAGS=`echo "$CFLAGS -O1 -fno-omit-frame-pointer" | $SED -e 's/-O[0-9]*//g'`
121
- CXXFLAGS=`echo "$CXXFLAGS -O1 -fno-omit-frame-pointer" | $SED -e 's/-O[0-9]*//g'`
122
- changequote([,])
123
-
124
- AC_SUBST(GCOV)
125
- fi
126
-
127
- AM_CONDITIONAL(ENABLE_COVERAGE, test "x$enable_cov" = "xyes")
128
-
129
- AC_SUBST(PACKAGE_VERSION)
130
-
131
- AC_MSG_NOTICE([Building libsass ($VERSION)])
132
-
133
- AC_CONFIG_FILES([GNUmakefile src/GNUmakefile src/support/libsass.pc])
134
- AC_OUTPUT
@@ -1,66 +0,0 @@
1
- Name: libsass
2
- Version: %{version}
3
- Release: 1%{?dist}
4
- Summary: A C/C++ implementation of a Sass compiler
5
-
6
- License: MIT
7
- URL: http://libsass.org
8
- Source0: %{name}-%{version}.tar.gz
9
-
10
- BuildRequires: gcc-c++ >= 4.7
11
- BuildRequires: autoconf
12
- BuildRequires: automake
13
- BuildRequires: libtool
14
-
15
-
16
- %description
17
- LibSass is a C/C++ port of the Sass engine. The point is to be simple, fast, and easy to integrate.
18
-
19
- %package devel
20
- Summary: Development files for %{name}
21
- Requires: %{name}%{?_isa} = %{version}-%{release}
22
-
23
-
24
- %description devel
25
- The %{name}-devel package contains libraries and header files for
26
- developing applications that use %{name}.
27
-
28
-
29
- %prep
30
- %setup -q
31
- autoreconf --force --install
32
-
33
-
34
- %build
35
- %configure --disable-static \
36
- --disable-tests \
37
- --enable-shared
38
-
39
- make %{?_smp_mflags}
40
-
41
-
42
- %install
43
- %make_install
44
- find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
45
-
46
-
47
- %post -p /sbin/ldconfig
48
-
49
- %postun -p /sbin/ldconfig
50
-
51
-
52
- %files
53
- %doc Readme.md LICENSE
54
- %{_libdir}/*.so.*
55
-
56
- %files devel
57
- %doc
58
- %{_includedir}/*
59
- %{_libdir}/*.so
60
- %{_libdir}/pkgconfig/*.pc
61
-
62
-
63
- %changelog
64
- * Tue Feb 10 2015 Gawain Lynch <gawain.lynch@gmail.com> - 3.1.0-1
65
- - Initial SPEC file
66
-
@@ -1,12 +0,0 @@
1
- #ifndef SASS_VERSION_H
2
- #define SASS_VERSION_H
3
-
4
- #ifndef LIBSASS_VERSION
5
- #define LIBSASS_VERSION "@PACKAGE_VERSION@"
6
- #endif
7
-
8
- #ifndef LIBSASS_LANGUAGE_VERSION
9
- #define LIBSASS_LANGUAGE_VERSION "3.5"
10
- #endif
11
-
12
- #endif
File without changes
@@ -1,167 +0,0 @@
1
- # ============================================================================
2
- # http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx_11.html
3
- # ============================================================================
4
- #
5
- # SYNOPSIS
6
- #
7
- # AX_CXX_COMPILE_STDCXX_11([ext|noext],[mandatory|optional])
8
- #
9
- # DESCRIPTION
10
- #
11
- # Check for baseline language coverage in the compiler for the C++11
12
- # standard; if necessary, add switches to CXXFLAGS to enable support.
13
- #
14
- # The first argument, if specified, indicates whether you insist on an
15
- # extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.
16
- # -std=c++11). If neither is specified, you get whatever works, with
17
- # preference for an extended mode.
18
- #
19
- # The second argument, if specified 'mandatory' or if left unspecified,
20
- # indicates that baseline C++11 support is required and that the macro
21
- # should error out if no mode with that support is found. If specified
22
- # 'optional', then configuration proceeds regardless, after defining
23
- # HAVE_CXX11 if and only if a supporting mode is found.
24
- #
25
- # LICENSE
26
- #
27
- # Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
28
- # Copyright (c) 2012 Zack Weinberg <zackw@panix.com>
29
- # Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu>
30
- # Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov@google.com>
31
- #
32
- # Copying and distribution of this file, with or without modification, are
33
- # permitted in any medium without royalty provided the copyright notice
34
- # and this notice are preserved. This file is offered as-is, without any
35
- # warranty.
36
-
37
- #serial 11
38
-
39
- m4_define([_AX_CXX_COMPILE_STDCXX_11_testbody], [[
40
- template <typename T>
41
- struct check
42
- {
43
- static_assert(sizeof(int) <= sizeof(T), "not big enough");
44
- };
45
-
46
- struct Base {
47
- virtual void f() {}
48
- };
49
- struct Child : public Base {
50
- virtual void f() override {}
51
- };
52
-
53
- typedef check<check<bool>> right_angle_brackets;
54
-
55
- int a;
56
- decltype(a) b;
57
-
58
- typedef check<int> check_type;
59
- check_type c;
60
- check_type&& cr = static_cast<check_type&&>(c);
61
-
62
- auto d = a;
63
- auto l = [](){};
64
- // Prevent Clang error: unused variable 'l' [-Werror,-Wunused-variable]
65
- struct use_l { use_l() { l(); } };
66
-
67
- // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
68
- // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function because of this
69
- namespace test_template_alias_sfinae {
70
- struct foo {};
71
-
72
- template<typename T>
73
- using member = typename T::member_type;
74
-
75
- template<typename T>
76
- void func(...) {}
77
-
78
- template<typename T>
79
- void func(member<T>*) {}
80
-
81
- void test();
82
-
83
- void test() {
84
- func<foo>(0);
85
- }
86
- }
87
- ]])
88
-
89
- AC_DEFUN([AX_CXX_COMPILE_STDCXX_11], [dnl
90
- m4_if([$1], [], [],
91
- [$1], [ext], [],
92
- [$1], [noext], [],
93
- [m4_fatal([invalid argument `$1' to AX_CXX_COMPILE_STDCXX_11])])dnl
94
- m4_if([$2], [], [ax_cxx_compile_cxx11_required=true],
95
- [$2], [mandatory], [ax_cxx_compile_cxx11_required=true],
96
- [$2], [optional], [ax_cxx_compile_cxx11_required=false],
97
- [m4_fatal([invalid second argument `$2' to AX_CXX_COMPILE_STDCXX_11])])
98
- AC_LANG_PUSH([C++])dnl
99
- ac_success=no
100
- AC_CACHE_CHECK(whether $CXX supports C++11 features by default,
101
- ax_cv_cxx_compile_cxx11,
102
- [AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])],
103
- [ax_cv_cxx_compile_cxx11=yes],
104
- [ax_cv_cxx_compile_cxx11=no])])
105
- if test x$ax_cv_cxx_compile_cxx11 = xyes; then
106
- ac_success=yes
107
- fi
108
-
109
- m4_if([$1], [noext], [], [dnl
110
- if test x$ac_success = xno; then
111
- for switch in -std=gnu++11 -std=gnu++0x; do
112
- cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx11_$switch])
113
- AC_CACHE_CHECK(whether $CXX supports C++11 features with $switch,
114
- $cachevar,
115
- [ac_save_CXXFLAGS="$CXXFLAGS"
116
- CXXFLAGS="$CXXFLAGS $switch"
117
- AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])],
118
- [eval $cachevar=yes],
119
- [eval $cachevar=no])
120
- CXXFLAGS="$ac_save_CXXFLAGS"])
121
- if eval test x\$$cachevar = xyes; then
122
- CXXFLAGS="$CXXFLAGS $switch"
123
- ac_success=yes
124
- break
125
- fi
126
- done
127
- fi])
128
-
129
- m4_if([$1], [ext], [], [dnl
130
- if test x$ac_success = xno; then
131
- dnl HP's aCC needs +std=c++11 according to:
132
- dnl http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/PDF_Release_Notes/769149-001.pdf
133
- for switch in -std=c++11 -std=c++0x +std=c++11; do
134
- cachevar=AS_TR_SH([ax_cv_cxx_compile_cxx11_$switch])
135
- AC_CACHE_CHECK(whether $CXX supports C++11 features with $switch,
136
- $cachevar,
137
- [ac_save_CXXFLAGS="$CXXFLAGS"
138
- CXXFLAGS="$CXXFLAGS $switch"
139
- AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])],
140
- [eval $cachevar=yes],
141
- [eval $cachevar=no])
142
- CXXFLAGS="$ac_save_CXXFLAGS"])
143
- if eval test x\$$cachevar = xyes; then
144
- CXXFLAGS="$CXXFLAGS $switch"
145
- ac_success=yes
146
- break
147
- fi
148
- done
149
- fi])
150
- AC_LANG_POP([C++])
151
- if test x$ax_cxx_compile_cxx11_required = xtrue; then
152
- if test x$ac_success = xno; then
153
- AC_MSG_ERROR([*** A compiler with support for C++11 language features is required.])
154
- fi
155
- else
156
- if test x$ac_success = xno; then
157
- HAVE_CXX11=0
158
- AC_MSG_NOTICE([No compiler with C++11 support was found])
159
- else
160
- HAVE_CXX11=1
161
- AC_DEFINE(HAVE_CXX11,1,
162
- [define if the compiler supports basic C++11 syntax])
163
- fi
164
-
165
- AC_SUBST(HAVE_CXX11)
166
- fi
167
- ])
@@ -1,35 +0,0 @@
1
- #include <windows.h>
2
-
3
- // DLL version information.
4
- VS_VERSION_INFO VERSIONINFO
5
- FILEVERSION 1,0,0,0
6
- PRODUCTVERSION 1,0,0,0
7
- FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
8
- #ifdef _DEBUG
9
- FILEFLAGS VS_FF_DEBUG | VS_FF_PRERELEASE
10
- #else
11
- FILEFLAGS 0
12
- #endif
13
- FILEOS VOS_NT_WINDOWS32
14
- FILETYPE VFT_DLL
15
- FILESUBTYPE VFT2_UNKNOWN
16
- BEGIN
17
- BLOCK "StringFileInfo"
18
- BEGIN
19
- BLOCK "080904b0"
20
- BEGIN
21
- VALUE "CompanyName", "Sass Open Source Foundation"
22
- VALUE "FileDescription", "A C/C++ implementation of a Sass compiler"
23
- VALUE "FileVersion", "1.0.0.0"
24
- VALUE "InternalName", "libsass"
25
- VALUE "LegalCopyright", "\251 2017 libsass.org"
26
- VALUE "OriginalFilename", "libsass.dll"
27
- VALUE "ProductName", "LibSass Library"
28
- VALUE "ProductVersion", "1.0.0.0"
29
- END
30
- END
31
- BLOCK "VarFileInfo"
32
- BEGIN
33
- VALUE "Translation", 0x809, 1200
34
- END
35
- END
@@ -1,50 +0,0 @@
1
- ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 -I script
2
-
3
- AM_COPT = -Wall -O2
4
- AM_COVLDFLAGS =
5
-
6
- if ENABLE_COVERAGE
7
- AM_COPT = -O0 --coverage
8
- AM_COVLDFLAGS += -lgcov
9
- endif
10
-
11
- AM_CPPFLAGS = -I$(top_srcdir)/include
12
- AM_CFLAGS = $(AM_COPT)
13
- AM_CXXFLAGS = $(AM_COPT)
14
- AM_LDFLAGS = $(AM_COPT) $(AM_COVLDFLAGS)
15
-
16
- AM_CXXFLAGS += -std=c++11
17
-
18
- EXTRA_DIST = \
19
- COPYING \
20
- INSTALL \
21
- LICENSE \
22
- Readme.md
23
-
24
- pkgconfigdir = $(libdir)/pkgconfig
25
- pkgconfig_DATA = support/libsass.pc
26
-
27
- lib_LTLIBRARIES = libsass.la
28
-
29
- include $(top_srcdir)/Makefile.conf
30
-
31
- libsass_la_SOURCES = ${CSOURCES} ${SOURCES}
32
-
33
- libsass_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined -version-info 1:0:0
34
-
35
- if ENABLE_TESTS
36
- if ENABLE_COVERAGE
37
- nodist_EXTRA_libsass_la_SOURCES = non-existent-file-to-force-CXX-linking.cxx
38
- endif
39
- endif
40
-
41
- include_HEADERS = $(top_srcdir)/include/sass.h \
42
- $(top_srcdir)/include/sass2scss.h
43
-
44
- sass_includedir = $(includedir)/sass
45
-
46
- sass_include_HEADERS = $(top_srcdir)/include/sass/base.h \
47
- $(top_srcdir)/include/sass/values.h \
48
- $(top_srcdir)/include/sass/version.h \
49
- $(top_srcdir)/include/sass/context.h \
50
- $(top_srcdir)/include/sass/functions.h