diff options
author | Karel Kočí <cynerd@email.cz> | 2019-03-09 00:01:35 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2019-03-09 00:01:35 +0100 |
commit | ee8b8e7a9ac52328013b191be49446f662589e07 (patch) | |
tree | 983939595e8d39f637aeeea2a1e68f4f949c828d /dev-util/laminar/laminar-0.6.0.6.ebuild | |
parent | efd50ac19a60285cb07c674b9f46c7e85b4a9642 (diff) | |
download | gentoo-personal-overlay-ee8b8e7a9ac52328013b191be49446f662589e07.tar.gz gentoo-personal-overlay-ee8b8e7a9ac52328013b191be49446f662589e07.tar.bz2 gentoo-personal-overlay-ee8b8e7a9ac52328013b191be49446f662589e07.zip |
dev-util/laminar: nasty fix of downloaded files
Diffstat (limited to 'dev-util/laminar/laminar-0.6.0.6.ebuild')
-rw-r--r-- | dev-util/laminar/laminar-0.6.0.6.ebuild | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/dev-util/laminar/laminar-0.6.0.6.ebuild b/dev-util/laminar/laminar-0.6.0.6.ebuild index d5b3967..d47f03b 100644 --- a/dev-util/laminar/laminar-0.6.0.6.ebuild +++ b/dev-util/laminar/laminar-0.6.0.6.ebuild @@ -5,7 +5,12 @@ inherit cmake-utils HASHV="bb81931ce9324d6d954e3b5ae42c127753a03868" DESCRIPTION="Lightweight and modular Continuous Integration service for Linux" HOMEPAGE="http://laminar.ohwg.net/" -SRC_URI="https://github.com/ohwgiles/${PN}/archive/${HASHV}.tar.gz -> ${P}.tar.gz" +SRC_URI="https://github.com/ohwgiles/${PN}/archive/${HASHV}.tar.gz -> ${P}.tar.gz + https://cdnjs.cloudflare.com/ajax/libs/vue/2.3.4/vue.min.js -> ${P}-vue.min.js + https://cdnjs.cloudflare.com/ajax/libs/vue-router/2.7.0/vue-router.min.js -> ${P}-vue-router.min.js + https://raw.githubusercontent.com/drudru/ansi_up/v1.3.0/ansi_up.js -> ${P}-ansi_up.js + https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js -> ${P}-Chart.min.js + https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css -> ${P}-bootstrap.min.css" LICENSE="" SLOT="0" @@ -21,14 +26,29 @@ RDEPEND="${DEPEND}" S="${WORKDIR}/laminar-${HASHV}" +src_unpack() { + # Note that ${A} contains also other files so no general unpack + unpack "${P}.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}/${P}-${file}" > "${BUILD_DIR}/js/${file}" + done + mkdir -p ${BUILD_DIR}/css + for file in bootstrap.min.css; do + cat "${DISTDIR}/${P}-${file}" > "${BUILD_DIR}/css/${file}" + done + local mycmakeargs=( "-DCMAKE_INSTALL_PREFIX=/" ) - cat /etc/resolv.conf - ip a - nslookup nic.cz - curl https://cynerd.cz cmake-utils_src_configure } |