aboutsummaryrefslogtreecommitdiff
path: root/ports/libsass
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 /ports/libsass
parentcff97f99e574bb81a7c4bc5da12133d57e9ae783 (diff)
downloadvcpkg-d7cd6f52be3423b7aed66e61dc297cef066f305d.tar.gz
vcpkg-d7cd6f52be3423b7aed66e61dc297cef066f305d.zip
[libsass/sassc] add new port/tool (#15752)
* add libsass and sassc * add version information
Diffstat (limited to 'ports/libsass')
-rw-r--r--ports/libsass/CONTROL7
-rw-r--r--ports/libsass/portfile.cmake22
-rw-r--r--ports/libsass/remove_compiler_flags.patch24
3 files changed, 53 insertions, 0 deletions
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