Initial commit
[yaffs-website] / node_modules / node-sass / src / libsass / docs / build-on-gentoo.md
1 Here 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
5 EAPI=4
6
7 inherit eutils git-2 autotools
8
9 DESCRIPTION="A C/C++ implementation of a Sass compiler."
10 HOMEPAGE="http://libsass.org/"
11 EGIT_PROJECT='libsass'
12 EGIT_REPO_URI="https://github.com/sass/libsass.git"
13 LICENSE="MIT"
14 SLOT="0"
15 KEYWORDS=""
16 IUSE=""
17 DEPEND=""
18 RDEPEND="${DEPEND}"
19 DEPEND="${DEPEND}"
20
21 pkg_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
29 src_prepare() {
30    eautoreconf
31 }
32 ```
33
34 ## www-misc/sassc/sassc-9999.ebuild
35 ```ebuild
36 EAPI=4
37
38 inherit eutils git-2 autotools
39
40 DESCRIPTION="Command Line Tool for LibSass."
41 HOMEPAGE="http://libsass.org/"
42 EGIT_PROJECT='sassc'
43 EGIT_REPO_URI="https://github.com/sass/sassc.git"
44 LICENSE="MIT"
45 SLOT="0"
46 KEYWORDS=""
47 IUSE=""
48 DEPEND="www-misc/libsass"
49 RDEPEND="${DEPEND}"
50 DEPEND="${DEPEND}"
51
52 src_prepare() {
53    eautoreconf
54 }
55 ```