1Here are two ebuilds to compile LibSass and sassc on gentoo linux. If you do not know how to use these ebuilds, you should probably read the gentoo wiki page about [portage overlays](http://wiki.gentoo.org/wiki/Overlay).
2
3## www-misc/libsass/libsass-9999.ebuild
4```ebuild
5EAPI=4
6
7inherit eutils git-2 autotools
8
9DESCRIPTION="A C/C++ implementation of a Sass compiler."
10HOMEPAGE="http://libsass.org/"
11EGIT_PROJECT='libsass'
12EGIT_REPO_URI="https://github.com/sass/libsass.git"
13LICENSE="MIT"
14SLOT="0"
15KEYWORDS=""
16IUSE=""
17DEPEND=""
18RDEPEND="${DEPEND}"
19DEPEND="${DEPEND}"
20
21pkg_pretend() {
22    # older gcc is not supported
23    local major=$(gcc-major-version)
24    local minor=$(gcc-minor-version)
25    [[ "${MERGE_TYPE}" != "binary" && ( $major > 4 || ( $major == 4 && $minor < 5 ) ) ]] && \
26        die "Sorry, but gcc earlier than 4.5 will not work for LibSass."
27}
28
29src_prepare() {
30   eautoreconf
31}
32```
33
34## www-misc/sassc/sassc-9999.ebuild
35```ebuild
36EAPI=4
37
38inherit eutils git-2 autotools
39
40DESCRIPTION="Command Line Tool for LibSass."
41HOMEPAGE="http://libsass.org/"
42EGIT_PROJECT='sassc'
43EGIT_REPO_URI="https://github.com/sass/sassc.git"
44LICENSE="MIT"
45SLOT="0"
46KEYWORDS=""
47IUSE=""
48DEPEND="www-misc/libsass"
49RDEPEND="${DEPEND}"
50DEPEND="${DEPEND}"
51
52src_prepare() {
53   eautoreconf
54}
55```
56