summaryrefslogtreecommitdiff
path: root/dev-util/laminar/laminar-0.8.1-r1.ebuild
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2020-05-28 14:58:38 +0200
committerKarel Kočí <cynerd@email.cz>2020-05-28 14:58:38 +0200
commita9111ed324cbd219713ab4acf8dcdcba1cc7a049 (patch)
tree27da116f78899f9d63f01caa48bf55cb5192805c /dev-util/laminar/laminar-0.8.1-r1.ebuild
parenta8947f7987ddf4dd0e4776280cd60eb16414fd5b (diff)
downloadgentoo-personal-overlay-a9111ed324cbd219713ab4acf8dcdcba1cc7a049.tar.gz
gentoo-personal-overlay-a9111ed324cbd219713ab4acf8dcdcba1cc7a049.tar.bz2
gentoo-personal-overlay-a9111ed324cbd219713ab4acf8dcdcba1cc7a049.zip
dev-util/laminar: try to fix laminar compilation by using latest
Diffstat (limited to 'dev-util/laminar/laminar-0.8.1-r1.ebuild')
-rw-r--r--dev-util/laminar/laminar-0.8.1-r1.ebuild59
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-util/laminar/laminar-0.8.1-r1.ebuild b/dev-util/laminar/laminar-0.8.1-r1.ebuild
new file mode 100644
index 0000000..7f36b1c
--- /dev/null
+++ b/dev-util/laminar/laminar-0.8.1-r1.ebuild
@@ -0,0 +1,59 @@
+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 -> ${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"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+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 "${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=/"
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ newinitd "${FILESDIR}/laminar.init" laminar
+}