aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neumann <30894796+Neumann-A@users.noreply.github.com>2021-01-20 07:16:21 +0100
committerGitHub <noreply@github.com>2021-01-19 22:16:21 -0800
commitd7cd6f52be3423b7aed66e61dc297cef066f305d (patch)
treefa7f413621a205c0139450843c7bae735d521492
parentcff97f99e574bb81a7c4bc5da12133d57e9ae783 (diff)
downloadvcpkg-d7cd6f52be3423b7aed66e61dc297cef066f305d.tar.gz
vcpkg-d7cd6f52be3423b7aed66e61dc297cef066f305d.zip
[libsass/sassc] add new port/tool (#15752)
* add libsass and sassc * add version information
-rw-r--r--port_versions/baseline.json8
-rw-r--r--port_versions/l-/libsass.json9
-rw-r--r--port_versions/s-/sassc.json9
-rw-r--r--ports/libsass/CONTROL7
-rw-r--r--ports/libsass/portfile.cmake22
-rw-r--r--ports/libsass/remove_compiler_flags.patch24
-rw-r--r--ports/sassc/CONTROL6
-rw-r--r--ports/sassc/portfile.cmake34
-rw-r--r--ports/sassc/remove_compiler_flags.patch12
9 files changed, 131 insertions, 0 deletions
diff --git a/port_versions/baseline.json b/port_versions/baseline.json
index b6a3666b3..c44dd4772 100644
--- a/port_versions/baseline.json
+++ b/port_versions/baseline.json
@@ -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
diff --git a/port_versions/l-/libsass.json b/port_versions/l-/libsass.json
new file mode 100644
index 000000000..8927f4d2c
--- /dev/null
+++ b/port_versions/l-/libsass.json
@@ -0,0 +1,9 @@
+{
+ "versions": [
+ {
+ "git-tree": "87bcd6907b761946cefe3ff059952f6649ce335c",
+ "version-string": "3.6.4",
+ "port-version": 0
+ }
+ ]
+}
diff --git a/port_versions/s-/sassc.json b/port_versions/s-/sassc.json
new file mode 100644
index 000000000..8e36e7def
--- /dev/null
+++ b/port_versions/s-/sassc.json
@@ -0,0 +1,9 @@
+{
+ "versions": [
+ {
+ "git-tree": "3c48d56954b3fc0cdefc34c3a2797840a95a976b",
+ "version-string": "3.6.1",
+ "port-version": 0
+ }
+ ]
+}
diff --git a/ports/libsass/CONTROL b/ports/libsass/CONTROL
new file mode 100644
index 000000000..e29f5b927
--- /dev/null
+++ b/ports/libsass/CONTROL
@@ -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
+
diff --git a/ports/libsass/portfile.cmake b/ports/libsass/portfile.cmake
new file mode 100644
index 000000000..09b228237
--- /dev/null
+++ b/ports/libsass/portfile.cmake
@@ -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)
diff --git a/ports/libsass/remove_compiler_flags.patch b/ports/libsass/remove_compiler_flags.patch
new file mode 100644
index 000000000..8a697ee4b
--- /dev/null
+++ b/ports/libsass/remove_compiler_flags.patch
@@ -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
diff --git a/ports/sassc/CONTROL b/ports/sassc/CONTROL
new file mode 100644
index 000000000..b2fc8e63f
--- /dev/null
+++ b/ports/sassc/CONTROL
@@ -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
diff --git a/ports/sassc/portfile.cmake b/ports/sassc/portfile.cmake
new file mode 100644
index 000000000..764873d04
--- /dev/null
+++ b/ports/sassc/portfile.cmake
@@ -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) \ No newline at end of file
diff --git a/ports/sassc/remove_compiler_flags.patch b/ports/sassc/remove_compiler_flags.patch
new file mode 100644
index 000000000..c5f644276
--- /dev/null
+++ b/ports/sassc/remove_compiler_flags.patch
@@ -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