[libsass/sassc] add new port/tool (#15752)

* add libsass and sassc

* add version information
This commit is contained in:
Alexander Neumann 2021-01-20 07:16:21 +01:00 коммит произвёл GitHub
Родитель cff97f99e5
Коммит d7cd6f52be
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
9 изменённых файлов: 131 добавлений и 0 удалений

Просмотреть файл

@ -3292,6 +3292,10 @@
"baseline": "0.1.9.0",
"port-version": 3
},
"libsass": {
"baseline": "3.6.4",
"port-version": 0
},
"libsbml": {
"baseline": "5.18.0",
"port-version": 0
@ -5144,6 +5148,10 @@
"baseline": "2018-09-21",
"port-version": 0
},
"sassc": {
"baseline": "3.6.1",
"port-version": 0
},
"scintilla": {
"baseline": "4.4.5",
"port-version": 0

Просмотреть файл

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "87bcd6907b761946cefe3ff059952f6649ce335c",
"version-string": "3.6.4",
"port-version": 0
}
]
}

Просмотреть файл

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "3c48d56954b3fc0cdefc34c3a2797840a95a976b",
"version-string": "3.6.1",
"port-version": 0
}
]
}

7
ports/libsass/CONTROL Normal file
Просмотреть файл

@ -0,0 +1,7 @@
Source: libsass
Version: 3.6.4
Port-Version: 0
Description: LibSass - Sass compiler written in C++
Homepage: https://github.com/sass/libsass
Supports: !uwp

Просмотреть файл

@ -0,0 +1,22 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO sass/libsass
REF 8d312a1c91bb7dd22883ebdfc829003f75a82396 # 3.6.4
SHA512 41e532c081804c889c3e7f9169bd90d7fc944d13817d5e3a4f8c19608ebb630db2b2b0e9c61a59a2446076f4093d5ec4cb4f767aa06fa0bf0f0687094e1a2913
HEAD_REF master
PATCHES remove_compiler_flags.patch
)
vcpkg_configure_make(
SOURCE_PATH ${SOURCE_PATH}
AUTOCONFIG
OPTIONS
)
vcpkg_install_make(MAKEFILE GNUmakefile)
vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs()
# Handle copyright
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

Просмотреть файл

@ -0,0 +1,24 @@
diff --git a/GNUmakefile.am b/GNUmakefile.am
index 06a1d0c1e..6e7a15485 100644
--- a/GNUmakefile.am
+++ b/GNUmakefile.am
@@ -1,6 +1,6 @@
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 -I script
-AM_COPT = -Wall -O2
+AM_COPT =
AM_COVLDFLAGS =
if ENABLE_COVERAGE
diff --git a/src/GNUmakefile.am b/src/GNUmakefile.am
index 9b0e6a99b..00404a017 100644
--- a/src/GNUmakefile.am
+++ b/src/GNUmakefile.am
@@ -1,6 +1,6 @@
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 -I script
-AM_COPT = -Wall -O2
+AM_COPT =
AM_COVLDFLAGS =
if ENABLE_COVERAGE

6
ports/sassc/CONTROL Normal file
Просмотреть файл

@ -0,0 +1,6 @@
Source: sassc
Version: 3.6.1
Port-Version: 0
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.
Homepage: https://github.com/sass/sassc
Build-Depends: libsass, getopt

Просмотреть файл

@ -0,0 +1,34 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO sass/sassc
REF 46748216ba0b60545e814c07846ca10c9fefc5b6 # 3.6.1
SHA512 98c5943ec485251fd5e3f41bcfe80dbbc6e2f334d4b6947895d3821b30009c40fb7cb944403304cede70360a5dd0ac103262644ef37a56e0fa76163657fbcc32
HEAD_REF master
PATCHES remove_compiler_flags.patch
)
find_library(LIBSASS_DEBUG sass PATHS "${CURRENT_INSTALLED_DIR}/debug/lib/" NO_DEFAULT_PATH)
find_library(LIBSASS_RELEASE sass PATHS "${CURRENT_INSTALLED_DIR}/lib/" NO_DEFAULT_PATH)
if(VCPKG_TARGET_IS_WINDOWS)
set(ENV{LIBS} "$ENV{LIBS} -lgetopt")
endif()
vcpkg_configure_make(
SOURCE_PATH ${SOURCE_PATH}
AUTOCONFIG
OPTIONS
--with-libsass-include='${CURRENT_INSTALLED_DIR}/include'
OPTIONS_DEBUG
--with-libsass-lib='${LIBSASS_DEBUG}'
OPTIONS_RELEASE
--with-libsass-lib='${LIBSASS_RELEASE}'
)
vcpkg_install_make(MAKEFILE GNUmakefile)
vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs()
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin")
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)

Просмотреть файл

@ -0,0 +1,12 @@
diff --git a/GNUmakefile.am b/GNUmakefile.am
index 58e8aecd1..da6a7db98 100644
--- a/GNUmakefile.am
+++ b/GNUmakefile.am
@@ -1,6 +1,6 @@
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4 -I script
-AM_COPT = -Wall -O2
+AM_COPT =
AM_COVLDFLAGS =
if ENABLE_COVERAGE