Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#55414 closed submission (worksforme)

new port: sassc and libsass, 3.4.7

Reported by: mjl- Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: sassc libsass

Description

This port contains sassc and its dependency libsass.

Libsass is a C/C++ library implementation with a C API of a sass "compiler", generating CSS from SCSS/SASS files. Sassc is a command-line tool that uses libsass.

This provides similar functionality to the ruby sass implementation. But sassc is faster and has no big ruby dependency.

This is my first port. I didn't attach my name as maintainer but I'm OK with being marked as maintainer if it helps to have a maintainer and no one else wants to.

Libsass is pretty straightforward. Makes a static library and installs it along with header files.

Sassc needs a patch. Because it assumes it is also in charge of compiling libsass. The patch disables that assumption. With the patch, the Makefile will assume the library/headers are in place, which they are, because libsass is marked as dependency in the sassc Portfile.

You could create a sassc port without having a separate libsass port. Two reasons I didn't: 1. libsass could be useful on its own. 2. I don't know how to fetch two different distfiles and extract them in the right location etc, this was easier. (:

Attached are the portfiles and patch.

Attachments (4)

libsass-sassc-portfiles.tgz (1.4 KB) - added by mjl- 7 years ago.
contains textproc/sassc and textproc/libsass
Portfile-sassc (1.2 KB) - added by mf2k (Frank Schima) 7 years ago.
Portfile-libsass (905 bytes) - added by mf2k (Frank Schima) 7 years ago.
patch-Makefile.diff (748 bytes) - added by mf2k (Frank Schima) 7 years ago.

Download all attachments as: .zip

Change History (11)

Changed 7 years ago by mjl-

Attachment: libsass-sassc-portfiles.tgz added

contains textproc/sassc and textproc/libsass

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Keywords: haspatch removed
Version: 2.4.2

comment:2 Changed 7 years ago by mf2k (Frank Schima)

If you want more people to look at your submissions, just upload the individual Portfiles directly and not as a single compressed file. I will do that now.

Changed 7 years ago by mf2k (Frank Schima)

Attachment: Portfile-sassc added

Changed 7 years ago by mf2k (Frank Schima)

Attachment: Portfile-libsass added

comment:3 Changed 7 years ago by mf2k (Frank Schima)

Port: sassc added; sass removed

Initial comment. You are naming the primary port sassc and the library libsass. I would think the names should be synchronized. So either sassc/libsassc or sass/libsass.

Changed 7 years ago by mf2k (Frank Schima)

Attachment: patch-Makefile.diff added

comment:4 Changed 7 years ago by mf2k (Frank Schima)

Since they both download from GitHub, you should use the GitHub portgroup.

comment:5 in reply to:  3 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to mf2k:

You are naming the primary port sassc and the library libsass. I would think the names should be synchronized. So either sassc/libsassc or sass/libsass.

Those are the upstream names of the projects so it is appropriate for the port names to match them.

Use use_configure no instead of configure {}.

Don't xinstall -d ${destroot}${prefix}/bin; it already exists.

Don't put PREFIX=${prefix} in destroot.destdir; put it in destroot.args.

comment:6 Changed 7 years ago by raimue (Rainer Müller)

Resolution: worksforme
Status: newclosed

comment:7 Changed 7 years ago by neverpanic (Clemens Lang)

Oh sorry, didn't even see this before.

Note: See TracTickets for help on using tickets.