Gentoo Archives: gentoo-commits

From: Alexandre Rostovtsev <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libsass/
Date: Tue, 07 Nov 2017 08:37:47
Message-Id: 1510043661.fceed9619b8cc78518e2bc62d2d6f63bea581773.tetromino@gentoo
1 commit: fceed9619b8cc78518e2bc62d2d6f63bea581773
2 Author: Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 7 08:25:25 2017 +0000
4 Commit: Alexandre Rostovtsev <tetromino <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 7 08:34:21 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fceed961
7
8 dev-libs/libsass: new package
9
10 Package-Manager: Portage-2.3.13, Repoman-2.3.4
11
12 dev-libs/libsass/Manifest | 1 +
13 dev-libs/libsass/libsass-3.4.5.ebuild | 54 +++++++++++++++++++++++++++++++++++
14 dev-libs/libsass/libsass-9999.ebuild | 54 +++++++++++++++++++++++++++++++++++
15 dev-libs/libsass/metadata.xml | 17 +++++++++++
16 4 files changed, 126 insertions(+)
17
18 diff --git a/dev-libs/libsass/Manifest b/dev-libs/libsass/Manifest
19 new file mode 100644
20 index 00000000000..1642f26ea63
21 --- /dev/null
22 +++ b/dev-libs/libsass/Manifest
23 @@ -0,0 +1 @@
24 +DIST libsass-3.4.5.tar.gz 318689 SHA256 fd0cb47479b4eae03154f23e17ab846aa81ba168c9aa5fa493b8fa42d10842c8 SHA512 5e3f56d44d100067d68e338fa97209a78d80c3536d64fdf48d83ec5351f944dbbe50e1050ffc8189b3ae86fd86d7b121229a3866f6e0287abc55af3770ed2bb6 WHIRLPOOL 852c61f4b7f3999a1d9de9e0075a4358e2323054797acbd2dd396b3486fcb655350897c1c65b55a5ec02f24dd62c771648b756911cbbcf48e519775b6afbf736
25
26 diff --git a/dev-libs/libsass/libsass-3.4.5.ebuild b/dev-libs/libsass/libsass-3.4.5.ebuild
27 new file mode 100644
28 index 00000000000..a220ac3e1e1
29 --- /dev/null
30 +++ b/dev-libs/libsass/libsass-3.4.5.ebuild
31 @@ -0,0 +1,54 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +inherit autotools eutils ltprune multilib-minimal
38 +
39 +if [[ ${PV} = *9999 ]]; then
40 + EGIT_REPO_URI="https://github.com/sass/libsass.git"
41 + inherit git-r3
42 + KEYWORDS=
43 +else
44 + SRC_URI="https://github.com/sass/libsass/archive/${PV}.tar.gz -> ${P}.tar.gz"
45 + KEYWORDS="~amd64 ~x86 ~amd64-linux"
46 +fi
47 +
48 +DESCRIPTION="A C/C++ implementation of a Sass CSS compiler"
49 +HOMEPAGE="https://github.com/sass/libsass"
50 +LICENSE="MIT"
51 +SLOT="0/0" # libsass soname
52 +IUSE="static-libs"
53 +
54 +RDEPEND=""
55 +DEPEND="${RDEPEND}"
56 +
57 +DOCS=( Readme.md SECURITY.md )
58 +
59 +src_prepare() {
60 + default
61 +
62 + if [[ ${PV} != *9999 ]]; then
63 + [[ -f VERSION ]] || echo "${PV}" > VERSION
64 + fi
65 + eautoreconf
66 +
67 + # only sane way to deal with various version-related scripts, env variables etc.
68 + multilib_copy_sources
69 +}
70 +
71 +multilib_src_configure() {
72 + econf \
73 + $(use_enable static-libs static) \
74 + --enable-shared
75 +}
76 +
77 +multilib_src_install() {
78 + emake DESTDIR="${D}" install
79 + prune_libtool_files
80 +}
81 +
82 +multilib_src_install_all() {
83 + einstalldocs
84 + dodoc -r "${S}/docs"
85 +}
86
87 diff --git a/dev-libs/libsass/libsass-9999.ebuild b/dev-libs/libsass/libsass-9999.ebuild
88 new file mode 100644
89 index 00000000000..6c86860c5d0
90 --- /dev/null
91 +++ b/dev-libs/libsass/libsass-9999.ebuild
92 @@ -0,0 +1,54 @@
93 +# Copyright 1999-2017 Gentoo Foundation
94 +# Distributed under the terms of the GNU General Public License v2
95 +
96 +EAPI=6
97 +
98 +inherit autotools eutils ltprune multilib-minimal
99 +
100 +if [[ ${PV} = *9999 ]]; then
101 + EGIT_REPO_URI="https://github.com/sass/libsass.git"
102 + inherit git-r3
103 + KEYWORDS=
104 +else
105 + SRC_URI="https://github.com/sass/libsass/archive/${PV}.tar.gz -> ${P}.tar.gz"
106 + KEYWORDS="~amd64 ~x86 ~amd64-linux"
107 +fi
108 +
109 +DESCRIPTION="A C/C++ implementation of a Sass CSS compiler"
110 +HOMEPAGE="https://github.com/sass/libsass"
111 +LICENSE="MIT"
112 +SLOT="0/1" # libsass soname
113 +IUSE="static-libs"
114 +
115 +RDEPEND=""
116 +DEPEND="${RDEPEND}"
117 +
118 +DOCS=( Readme.md SECURITY.md )
119 +
120 +src_prepare() {
121 + default
122 +
123 + if [[ ${PV} != *9999 ]]; then
124 + [[ -f VERSION ]] || echo "${PV}" > VERSION
125 + fi
126 + eautoreconf
127 +
128 + # only sane way to deal with various version-related scripts, env variables etc.
129 + multilib_copy_sources
130 +}
131 +
132 +multilib_src_configure() {
133 + econf \
134 + $(use_enable static-libs static) \
135 + --enable-shared
136 +}
137 +
138 +multilib_src_install() {
139 + emake DESTDIR="${D}" install
140 + prune_libtool_files
141 +}
142 +
143 +multilib_src_install_all() {
144 + einstalldocs
145 + dodoc -r "${S}/docs"
146 +}
147
148 diff --git a/dev-libs/libsass/metadata.xml b/dev-libs/libsass/metadata.xml
149 new file mode 100644
150 index 00000000000..0208c3a7a59
151 --- /dev/null
152 +++ b/dev-libs/libsass/metadata.xml
153 @@ -0,0 +1,17 @@
154 +<?xml version="1.0" encoding="UTF-8"?>
155 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
156 +<pkgmetadata>
157 +<maintainer type="person">
158 + <email>tetromino@g.o</email>
159 + <name>Alexandre Rostovtsev</name>
160 +</maintainer>
161 +<longdescription lang="en">
162 + LibSass is a C++ port of the original Ruby Sass CSS compiler with a C
163 + API. It is coded LibSass with portability and efficiency in mind. You
164 + can expect LibSass to be a lot faster than Ruby Sass and on par or
165 + faster than the best alternative CSS compilers around.
166 +</longdescription>
167 +<upstream>
168 + <remote-id type="github">sass/libsass</remote-id>
169 +</upstream>
170 +</pkgmetadata>