[RFC,meta-gnome,01/16] sassc: add recipes for libsass-native and sassc-native.

Submitted by brendank310 on Oct. 29, 2018, 4:40 p.m. | Patch ID: 155946

Details

Message ID 249e8f90c9f911f125fbde534b24731e2a14bba6.1540830650.git.brendank310@gmail.com
State Changes Requested
Headers show

Commit Message

brendank310 Oct. 29, 2018, 4:40 p.m.
From: Brendan Kerrigan <kerriganb@ainfosec.com>

Signed-off-by: Brendan Kerrigan <kerriganb@ainfosec.com>
---
 .../recipes-gnome/gnome3/libsass-native_3.5.4.bb | 16 ++++++++++++++++
 .../recipes-gnome/gnome3/sassc-native_3.5.0.bb   | 15 +++++++++++++++
 2 files changed, 31 insertions(+)
 create mode 100644 meta-gnome/recipes-gnome/gnome3/libsass-native_3.5.4.bb
 create mode 100644 meta-gnome/recipes-gnome/gnome3/sassc-native_3.5.0.bb

Patch hide | download patch | download mbox

diff --git a/meta-gnome/recipes-gnome/gnome3/libsass-native_3.5.4.bb b/meta-gnome/recipes-gnome/gnome3/libsass-native_3.5.4.bb
new file mode 100644
index 000000000..37a25f085
--- /dev/null
+++ b/meta-gnome/recipes-gnome/gnome3/libsass-native_3.5.4.bb
@@ -0,0 +1,16 @@ 
+DESCRIPTION = "A C/C++ implementation of a Sass compiler"
+LICENSE = "MIT"
+DEPENDS = " atk glib-2.0 gettext-native "
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2f8a76980411a3f1f1480b141ce06744"
+
+SRC_URI = "https://github.com/sass/${BPN}/archive/${PV}.tar.gz \
+           "
+
+SRC_URI[md5sum] = "4af3f4ffd3e8cac1cb1c90ebc2dd41b2"
+SRC_URI[sha256sum] = "5f61cbcddaf8e6ef7a725fcfa5d05297becd7843960f245197ebb655ff868770"
+
+S = "${WORKDIR}/${BPN}-${PV}"
+
+inherit autotools pkgconfig native
+
diff --git a/meta-gnome/recipes-gnome/gnome3/sassc-native_3.5.0.bb b/meta-gnome/recipes-gnome/gnome3/sassc-native_3.5.0.bb
new file mode 100644
index 000000000..5ba15e194
--- /dev/null
+++ b/meta-gnome/recipes-gnome/gnome3/sassc-native_3.5.0.bb
@@ -0,0 +1,15 @@ 
+DESCRIPTION = "libsass command line driver."
+LICENSE = "MIT"
+DEPENDS = " libsass-native "
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2f8a76980411a3f1f1480b141ce06744"
+
+SRC_URI = "https://github.com/sass/${BPN}/archive/${PV}.tar.gz \
+           "
+SRC_URI[md5sum] = "f5c6aeb4e98c96d093f20295fc490f2c"
+SRC_URI[sha256sum] = "26f54e31924b83dd706bc77df5f8f5553a84d51365f0e3c566df8de027918042"
+
+S = "${WORKDIR}/${BPN}-${PV}"
+
+inherit autotools pkgconfig distro_features_check native
+

Comments

Ross Burton Oct. 30, 2018, 12:10 p.m.
On Mon, 29 Oct 2018 at 16:42, brendank310 <brendank310@gmail.com> wrote:
> +SRC_URI = "https://github.com/sass/${BPN}/archive/${PV}.tar.gz \
> +           "
> +SRC_URI[md5sum] = "4af3f4ffd3e8cac1cb1c90ebc2dd41b2"
> +SRC_URI[sha256sum] = "5f61cbcddaf8e6ef7a725fcfa5d05297becd7843960f245197ebb655ff868770"

These tarballs are dynamically generated using git-archive so can
change over time.  As the maintainers are not uploading their own
static tarballs, you'll have to use git to fetch these.

> +S = "${WORKDIR}/${BPN}-${PV}"

This is the default.

> +inherit autotools pkgconfig native

Instead of having sassc-native and inheriting native, it's better to
have a sassc.bb and BBCLASSEXTEND=native to get native and target
recipes.  Bonus points for test-building the nativesdk variant too.

Ross