summaryrefslogtreecommitdiff
path: root/dev-util/laminar/laminar-0.8-r4.ebuild
blob: a8bf8b5b1e9e4ba5b89897d98bba4bc9aeea1335 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
EAPI=6

inherit cmake-utils

HASH="6c61fb311169146eb40c835e1285ac97e43b2082"
DESCRIPTION="Lightweight and modular Continuous Integration service for Linux"
HOMEPAGE="http://laminar.ohwg.net/"
SRC_URI="https://github.com/ohwgiles/${PN}/archive/${HASH}.tar.gz -> ${PN}-${HASH}.tar.gz
	https://cdnjs.cloudflare.com/ajax/libs/vue/2.3.4/vue.min.js -> ${PN}-2.3.4-vue.min.js
	https://cdnjs.cloudflare.com/ajax/libs/vue-router/2.7.0/vue-router.min.js -> ${PN}-2.7.0-vue-router.min.js
	https://raw.githubusercontent.com/drudru/ansi_up/v1.3.0/ansi_up.js -> ${PN}-1.3.0-ansi_up.js
	https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js -> ${PN}-2.7.2-Chart.min.js
	https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css -> ${PN}-3.3.5-bootstrap.min.css"

LICENSE=""
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

S="${WORKDIR}/laminar-${HASH}"

DEPEND="
	dev-libs/capnproto
	dev-libs/rapidjson
	dev-db/sqlite
	dev-libs/boost
"
RDEPEND="${DEPEND}
	acct-user/build
"

src_unpack() {
	# Note that ${A} contains also other files so no general unpack
	unpack "${PN}-${HASH}.tar.gz"
}

# Note: lamianr build system in default downloads external files but that is not
# possible for some reason in sandbox. This downloads those files outside of
# scripts and copies them to correct place before configure which prevents from
# download happening/failing.
src_configure() {
	local BUILD_DIR="${WORKDIR}/${P}_build"
	mkdir -p ${BUILD_DIR}/js
	for file in vue.min.js vue-router.min.js ansi_up.js Chart.min.js; do
		cat "${DISTDIR}/${PN}-*-${file}" > "${BUILD_DIR}/js/${file}"
	done
	mkdir -p ${BUILD_DIR}/css
	for file in bootstrap.min.css; do
		cat "${DISTDIR}/${PN}-*-${file}" > "${BUILD_DIR}/css/${file}"
	done

	local mycmakeargs=(
		"-DCMAKE_INSTALL_PREFIX=/"
	)
	cmake-utils_src_configure
}

src_install() {
	cmake-utils_src_install
	newinitd "${FILESDIR}/laminar.init" laminar
}