init
This commit is contained in:
parent
6de0a3f4d4
commit
215cde7918
BIN
3.5.0.tar.gz
Normal file
BIN
3.5.0.tar.gz
Normal file
Binary file not shown.
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
||||
# sassc
|
||||
|
||||
#### Description
|
||||
private
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Contribution
|
||||
|
||||
1. Fork the repository
|
||||
2. Create Feat_xxx branch
|
||||
3. Commit your code
|
||||
4. Create Pull Request
|
||||
|
||||
|
||||
#### Gitee Feature
|
||||
|
||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
37
README.md
37
README.md
@ -1,37 +0,0 @@
|
||||
# sassc
|
||||
|
||||
#### 介绍
|
||||
private
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
1. Fork 本仓库
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
|
||||
|
||||
#### 码云特技
|
||||
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
297
sassc-3.5.0-build.patch
Normal file
297
sassc-3.5.0-build.patch
Normal file
@ -0,0 +1,297 @@
|
||||
diff -Nur sassc-3.5.0.orig/Makefile sassc-3.5.0/Makefile
|
||||
--- sassc-3.5.0.orig/Makefile 2018-01-11 12:32:04.000000000 -0800
|
||||
+++ sassc-3.5.0/Makefile 2018-07-19 11:30:03.281523655 -0700
|
||||
@@ -210,9 +210,8 @@
|
||||
build-static: $(RESOURCES) $(OBJECTS) $(LIB_STATIC)
|
||||
$(CC) $(LDFLAGS) -o $(SASSC_EXE) $^ $(LDLIBS)
|
||||
|
||||
-build-shared: $(RESOURCES) $(OBJECTS) $(LIB_SHARED)
|
||||
- $(CC) $(LDFLAGS) -o $(SASSC_EXE) $(RESOURCES) $(OBJECTS) \
|
||||
- $(LDLIBS) -L$(SASS_LIBSASS_PATH)/lib -lsass
|
||||
+build-shared: $(RESOURCES) $(OBJECTS)
|
||||
+ $(CC) $(LDFLAGS) -o $(SASSC_EXE) $^ $(LDLIBS) -lsass
|
||||
|
||||
build-shared-dev: $(RESOURCES) $(OBJECTS) $(LIB_SHARED)
|
||||
$(CC) $(LDFLAGS) -o $(SASSC_EXE) $^ $(LDLIBS)
|
||||
diff -Nur sassc-3.5.0.orig/Makefile.build sassc-3.5.0/Makefile.build
|
||||
--- sassc-3.5.0.orig/Makefile.build 1969-12-31 16:00:00.000000000 -0800
|
||||
+++ sassc-3.5.0/Makefile.build 2018-01-11 12:32:04.000000000 -0800
|
||||
@@ -0,0 +1,278 @@
|
||||
+CC ?= gcc
|
||||
+CXX ?= g++
|
||||
+RM ?= rm -f
|
||||
+CP ?= cp -a
|
||||
+CHDIR ?= chdir
|
||||
+MKDIR ?= mkdir
|
||||
+WINDRES ?= windres
|
||||
+INSTALL ?= install
|
||||
+CFLAGS ?= -Wall
|
||||
+CXXFLAGS ?= -Wall
|
||||
+LDFLAGS ?= -Wall
|
||||
+ifneq "$(COVERAGE)" "yes"
|
||||
+ CFLAGS += -O2
|
||||
+ CXXFLAGS += -O2
|
||||
+ LDFLAGS += -O2
|
||||
+endif
|
||||
+LDFLAGS += -Wl,-undefined,error
|
||||
+CAT ?= $(if $(filter $(OS),Windows_NT),type,cat)
|
||||
+
|
||||
+# If you run this under windows cmd.com interpreter:
|
||||
+# You must provide UnxUtils rm.exe and cp.exe in path
|
||||
+# Otherwise certain targets may not work as intended!
|
||||
+# Note: It seems impossible to replace `mkdir` command
|
||||
+
|
||||
+ifneq (,$(findstring /cygdrive/,$(PATH)))
|
||||
+ UNAME := Cygwin
|
||||
+ TARGET := Windows
|
||||
+else
|
||||
+ ifneq (,$(findstring Windows,$(PATH)))
|
||||
+ UNAME := Windows
|
||||
+ TARGET := Windows
|
||||
+ else
|
||||
+ ifneq (,$(findstring mingw32,$(MAKE)))
|
||||
+ UNAME := MinGW
|
||||
+ TARGET := Windows
|
||||
+ else
|
||||
+ ifneq (,$(findstring MINGW32,$(shell uname -s)))
|
||||
+ UNAME = MinGW
|
||||
+ TARGET := Windows
|
||||
+ else
|
||||
+ UNAME := $(shell uname -s)
|
||||
+ TARGET := $(shell uname -s)
|
||||
+ endif
|
||||
+ endif
|
||||
+ endif
|
||||
+endif
|
||||
+
|
||||
+ifeq ($(SASS_SASSC_PATH),)
|
||||
+ SASS_SASSC_PATH = $(abspath $(CURDIR))
|
||||
+endif
|
||||
+ifeq ($(SASS_LIBSASS_PATH),)
|
||||
+ SASS_LIBSASS_PATH = $(abspath $(CURDIR)/..)
|
||||
+endif
|
||||
+
|
||||
+ifeq ($(SASSC_VERSION),)
|
||||
+ ifneq ($(wildcard ./.git/ ),)
|
||||
+ SASSC_VERSION ?= $(shell git describe --abbrev=4 --dirty --always --tags)
|
||||
+ endif
|
||||
+endif
|
||||
+
|
||||
+ifeq ($(SASSC_VERSION),)
|
||||
+ ifneq ($(wildcard VERSION),)
|
||||
+ SASSC_VERSION ?= $(shell $(CAT) VERSION)
|
||||
+ endif
|
||||
+endif
|
||||
+
|
||||
+ifneq ($(SASSC_VERSION),)
|
||||
+ CFLAGS += -DSASSC_VERSION="\"$(SASSC_VERSION)\""
|
||||
+ CXXFLAGS += -DSASSC_VERSION="\"$(SASSC_VERSION)\""
|
||||
+endif
|
||||
+
|
||||
+# enable mandatory flag
|
||||
+ifeq (Windows,$(TARGET))
|
||||
+ ifneq ($(BUILD),shared)
|
||||
+ STATIC_ALL ?= 1
|
||||
+ endif
|
||||
+ STATIC_LIBGCC ?= 1
|
||||
+ STATIC_LIBSTDCPP ?= 1
|
||||
+ CXXFLAGS += -std=gnu++0x
|
||||
+ LDFLAGS += -std=gnu++0x
|
||||
+else
|
||||
+ STATIC_ALL ?= 0
|
||||
+ STATIC_LIBGCC ?= 0
|
||||
+ STATIC_LIBSTDCPP ?= 0
|
||||
+ CXXFLAGS += -std=c++0x
|
||||
+ LDFLAGS += -std=c++0x
|
||||
+endif
|
||||
+
|
||||
+ifneq ($(SASS_LIBSASS_PATH),)
|
||||
+ CFLAGS += -I $(SASS_LIBSASS_PATH)/include
|
||||
+ CXXFLAGS += -I $(SASS_LIBSASS_PATH)/include
|
||||
+ # only needed to support old source tree
|
||||
+ # we have moved the files to src folder
|
||||
+ CFLAGS += -I $(SASS_LIBSASS_PATH)
|
||||
+ CXXFLAGS += -I $(SASS_LIBSASS_PATH)
|
||||
+else
|
||||
+ # this is needed for mingw
|
||||
+ CFLAGS += -I include
|
||||
+ CXXFLAGS += -I include
|
||||
+endif
|
||||
+
|
||||
+ifneq ($(EXTRA_CFLAGS),)
|
||||
+ CFLAGS += $(EXTRA_CFLAGS)
|
||||
+endif
|
||||
+ifneq ($(EXTRA_CXXFLAGS),)
|
||||
+ CXXFLAGS += $(EXTRA_CXXFLAGS)
|
||||
+endif
|
||||
+ifneq ($(EXTRA_LDFLAGS),)
|
||||
+ LDFLAGS += $(EXTRA_LDFLAGS)
|
||||
+endif
|
||||
+
|
||||
+LDLIBS = -lm
|
||||
+
|
||||
+ifneq ($(BUILD),shared)
|
||||
+ LDLIBS += -lstdc++
|
||||
+endif
|
||||
+
|
||||
+# link statically into lib
|
||||
+# makes it a lot more portable
|
||||
+# increases size by about 50KB
|
||||
+ifeq ($(STATIC_ALL),1)
|
||||
+ LDFLAGS += -static
|
||||
+endif
|
||||
+ifeq ($(STATIC_LIBGCC),1)
|
||||
+ LDFLAGS += -static-libgcc
|
||||
+endif
|
||||
+ifeq ($(STATIC_LIBSTDCPP),1)
|
||||
+ LDFLAGS += -static-libstdc++
|
||||
+endif
|
||||
+
|
||||
+ifeq ($(UNAME),Darwin)
|
||||
+ CFLAGS += -stdlib=libc++
|
||||
+ CXXFLAGS += -stdlib=libc++
|
||||
+ LDFLAGS += -stdlib=libc++
|
||||
+endif
|
||||
+
|
||||
+ifneq (Windows,$(TARGET))
|
||||
+ ifneq (FreeBSD,$(UNAME))
|
||||
+ ifneq (OpenBSD,$(UNAME))
|
||||
+ LDFLAGS += -ldl
|
||||
+ LDLIBS += -ldl
|
||||
+ endif
|
||||
+ endif
|
||||
+endif
|
||||
+
|
||||
+ifneq ($(BUILD),shared)
|
||||
+ BUILD = static
|
||||
+endif
|
||||
+
|
||||
+ifeq (,$(PREFIX))
|
||||
+ ifeq (,$(TRAVIS_BUILD_DIR))
|
||||
+ PREFIX = /usr/local
|
||||
+ else
|
||||
+ PREFIX = $(TRAVIS_BUILD_DIR)
|
||||
+ endif
|
||||
+endif
|
||||
+
|
||||
+SOURCES = sassc.c
|
||||
+
|
||||
+LIB_STATIC = $(SASS_LIBSASS_PATH)/lib/libsass.a
|
||||
+LIB_SHARED = $(SASS_LIBSASS_PATH)/lib/libsass.so
|
||||
+
|
||||
+RESOURCES =
|
||||
+SASSC_EXE = bin/sassc
|
||||
+ifeq (Windows,$(TARGET))
|
||||
+ RESOURCES = libsass.res
|
||||
+ SASSC_EXE = bin/sassc.exe
|
||||
+ ifeq (shared,$(BUILD))
|
||||
+ CFLAGS += -D ADD_EXPORTS
|
||||
+ CXXFLAGS += -D ADD_EXPORTS
|
||||
+ LIB_SHARED = $(SASS_LIBSASS_PATH)/lib/libsass.dll
|
||||
+ endif
|
||||
+else
|
||||
+ CFLAGS += -fPIC
|
||||
+ CXXFLAGS += -fPIC
|
||||
+ LDFLAGS += -fPIC
|
||||
+endif
|
||||
+
|
||||
+OBJECTS = $(SOURCES:.c=.o)
|
||||
+SPEC_PATH = $(SASS_SPEC_PATH)
|
||||
+all: sassc
|
||||
+
|
||||
+%.o: %.c
|
||||
+ $(CC) $(CFLAGS) -c -o $@ $<
|
||||
+
|
||||
+%.o: %.rc
|
||||
+ $(WINDRES) -i $< -o $@
|
||||
+
|
||||
+%.o: %.cpp
|
||||
+ $(CXX) $(CXXFLAGS) -c -o $@ $<
|
||||
+
|
||||
+sassc: $(SASSC_EXE)
|
||||
+build: build-$(BUILD)
|
||||
+libsass: libsass-$(BUILD)
|
||||
+
|
||||
+$(SASSC_EXE): libsass build
|
||||
+
|
||||
+$(DESTDIR)$(PREFIX)/:
|
||||
+ $(MKDIR) $(DESTDIR)$(PREFIX)
|
||||
+
|
||||
+$(DESTDIR)$(PREFIX)/bin/:
|
||||
+ $(MKDIR) $(DESTDIR)$(PREFIX)/bin
|
||||
+
|
||||
+$(DESTDIR)$(PREFIX)/bin/%: bin/%
|
||||
+ $(INSTALL) -D -v -m0755 "$<" "$@"
|
||||
+
|
||||
+install: libsass-install-$(BUILD) \
|
||||
+ $(DESTDIR)$(PREFIX)/$(SASSC_EXE)
|
||||
+
|
||||
+build-static: $(RESOURCES) $(OBJECTS) $(LIB_STATIC)
|
||||
+ $(CC) $(LDFLAGS) -o $(SASSC_EXE) $^ $(LDLIBS)
|
||||
+
|
||||
+build-shared: $(RESOURCES) $(OBJECTS) $(LIB_SHARED)
|
||||
+ $(CC) $(LDFLAGS) -o $(SASSC_EXE) $(RESOURCES) $(OBJECTS) \
|
||||
+ $(LDLIBS) -L$(SASS_LIBSASS_PATH)/lib -lsass
|
||||
+
|
||||
+build-shared-dev: $(RESOURCES) $(OBJECTS) $(LIB_SHARED)
|
||||
+ $(CC) $(LDFLAGS) -o $(SASSC_EXE) $^ $(LDLIBS)
|
||||
+
|
||||
+build-static-dev: build-static
|
||||
+
|
||||
+$(LIB_STATIC): libsass-static
|
||||
+$(LIB_SHARED): libsass-shared
|
||||
+
|
||||
+libsass-static:
|
||||
+ifdef SASS_LIBSASS_PATH
|
||||
+ $(MAKE) BUILD="static" -C $(SASS_LIBSASS_PATH)
|
||||
+else
|
||||
+ $(error SASS_LIBSASS_PATH must be defined)
|
||||
+endif
|
||||
+
|
||||
+libsass-shared:
|
||||
+ifdef SASS_LIBSASS_PATH
|
||||
+ $(MAKE) BUILD="shared" -C $(SASS_LIBSASS_PATH)
|
||||
+else
|
||||
+ $(error SASS_LIBSASS_PATH must be defined)
|
||||
+endif
|
||||
+
|
||||
+# nothing to do for static
|
||||
+libsass-install-static: libsass-static
|
||||
+ifdef SASS_LIBSASS_PATH
|
||||
+ $(MAKE) BUILD="static" -C $(SASS_LIBSASS_PATH) install
|
||||
+else
|
||||
+ $(error SASS_LIBSASS_PATH must be defined)
|
||||
+endif
|
||||
+
|
||||
+# install shared library
|
||||
+libsass-install-shared: libsass-shared
|
||||
+ifdef SASS_LIBSASS_PATH
|
||||
+ $(MAKE) BUILD="shared" -C $(SASS_LIBSASS_PATH) install
|
||||
+else
|
||||
+ $(error SASS_LIBSASS_PATH must be defined)
|
||||
+endif
|
||||
+
|
||||
+test: all
|
||||
+ $(MAKE) -C $(SASS_LIBSASS_PATH) version
|
||||
+
|
||||
+libsass.res:
|
||||
+ $(WINDRES) res/libsass.rc -O coff libsass.res
|
||||
+
|
||||
+specs: all
|
||||
+ifdef SASS_LIBSASS_PATH
|
||||
+ $(MAKE) -C $(SASS_LIBSASS_PATH) test_build
|
||||
+else
|
||||
+ $(error SASS_LIBSASS_PATH must be defined)
|
||||
+endif
|
||||
+
|
||||
+clean:
|
||||
+ rm -f $(OBJECTS) $(SASSC_EXE) \
|
||||
+ bin/*.so bin/*.dll libsass.res
|
||||
+ifdef SASS_LIBSASS_PATH
|
||||
+ $(MAKE) -C $(SASS_LIBSASS_PATH) clean
|
||||
+endif
|
||||
+
|
||||
+.PHONY: test specs clean sassc \
|
||||
+ all build-static build-shared \
|
||||
+ libsass libsass-static libsass-shared
|
||||
+.DELETE_ON_ERROR:
|
||||
47
sassc.spec
Normal file
47
sassc.spec
Normal file
@ -0,0 +1,47 @@
|
||||
%define debug_package %{nil}
|
||||
|
||||
Name: sassc
|
||||
Version: 3.5.0
|
||||
Release: 2
|
||||
Summary: Libsass command line driver
|
||||
License: MIT
|
||||
URL: https://github.com/sass/sassc
|
||||
Source0: https://github.com/sass/sassc/archive/3.5.0.tar.gz
|
||||
|
||||
BuildRequires: libsass-devel libsass
|
||||
Requires: libsass
|
||||
|
||||
%description
|
||||
SassC is a wrapper around libsass (http://github.com/sass/libsass) used to generate a useful
|
||||
command-line application that can be installed and packaged for several operating systems.
|
||||
|
||||
SassC currently statically links the libsass library, but might one day using dynamic linking
|
||||
if libsass supports that in the future.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
sed -i.bak '
|
||||
/^$(SASSC_EXE):/s/libsass//
|
||||
/^build-shared:/s/$(LIB_SHARED)//
|
||||
s|-L$(SASS_LIBSASS_PATH)/lib||g' Makefile
|
||||
|
||||
%make_build BUILD="shared"
|
||||
|
||||
%install
|
||||
install -Dpm 0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
|
||||
rm -rf docs/**/*windows*
|
||||
|
||||
%check
|
||||
./bin/%{name} -h
|
||||
./bin/%{name} -v
|
||||
|
||||
%files
|
||||
%doc docs/* Readme.md
|
||||
%license LICENSE
|
||||
%{_bindir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Thu Jan 03 2020 catastrowings <jianghuhao1994@163.com> - 3.5.0-2
|
||||
- openEuler init
|
||||
BIN
zopfli-1.0.1.tar.gz
Normal file
BIN
zopfli-1.0.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user