diff options
author | 2019-09-29 19:01:35 -0400 | |
---|---|---|
committer | 2019-09-30 18:22:40 -0400 | |
commit | 82cb2af4f428c0c24273cf9d9c73a708ff9eb164 (patch) | |
tree | b01792d7d2d1e4a4399fc09e757d037d1019d8db | |
parent | gui-libs/libhandy: bump 0.0.11, transfer from net-libs (diff) | |
download | matrix-82cb2af4f428c0c24273cf9d9c73a708ff9eb164.tar.gz matrix-82cb2af4f428c0c24273cf9d9c73a708ff9eb164.tar.bz2 matrix-82cb2af4f428c0c24273cf9d9c73a708ff9eb164.zip |
www-apps/riot-web: new ebuild
-rw-r--r-- | www-apps/riot-web/Manifest | 2 | ||||
-rw-r--r-- | www-apps/riot-web/riot-web-1.4.0.ebuild | 55 |
2 files changed, 57 insertions, 0 deletions
diff --git a/www-apps/riot-web/Manifest b/www-apps/riot-web/Manifest new file mode 100644 index 0000000..d07980e --- /dev/null +++ b/www-apps/riot-web/Manifest @@ -0,0 +1,2 @@ +DIST riot-web-1.4.0.tar.gz 1500845 BLAKE2B 4d92f4fc524dc7e1d84b6fcedb7fc2bd7b610c6b27fdcf93878189344bd82d609760bc38b075179ac211805e736c25786682fecf8842d9cf8250661a6516a350 SHA512 2c4621777ecea9fb380f7c691eaf2c0e5708eb82ff086f5b28d31630aca238618149861b0c5716e7d1a8b74f9f364f5805f95ada1342dcd48ccba933c27a49d4 +EBUILD riot-web-1.4.0.ebuild 1106 BLAKE2B 1ee6327c2c60787288e90a48aa0b09d61519bad487bd09fbe3d67474665060a7e6dfeffbccd1f2240ce9fa4204f70df3e6df15a27c722f9788e28a7a2aa0cc8b SHA512 add0148aa4c0051d4015c5406a7ba736a2d5fb6bcb0e5c917fcf52d9be5c666cdad8dd4a8e766a3f6fea688f7c724c1ba88a596e261387d6c8f7b20b1b301103 diff --git a/www-apps/riot-web/riot-web-1.4.0.ebuild b/www-apps/riot-web/riot-web-1.4.0.ebuild new file mode 100644 index 0000000..1ac6bee --- /dev/null +++ b/www-apps/riot-web/riot-web-1.4.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="A glossy Matrix collaboration client for the web" +HOMEPAGE="https://riot.im" + +inherit eutils webapp + +if [[ ${PV} == "9999" ]]; then + inherit git-r3 + + SRC_URI="" + EGIT_REPO_URI="https://github.com/vector-im/riot-web.git" + EGIT_BRANCH="develop" +else + SRC_URI="https://github.com/vector-im/riot-web/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="Apache-2.0" +IUSE="" +REQUIRED_USE="" + +DEPEND="sys-devel/binutils:* + net-libs/nodejs + sys-apps/yarn" +RDEPEND="${DEPEND}" + +src_prepare() { + default + + if [[ ${PV} == "9999" ]]; then + "${S}"/scripts/fetch-develop.deps.sh + fi + + yarn install || die "Yarn module installation failed" +} + +src_compile() { + yarn run build || die "Build failed" + yarn dist || die "Dist build failed" +} + +src_install() { + tar xfz "${S}/dist/riot-unknown.tar.gz" -C "${S}/dist" + + webapp_src_preinst + insinto "${MY_HTDOCSDIR}" + cd "${S}/dist/riot-unknown" + doins -r . + webapp_configfile "${MY_HTDOCSDIR}"/config.sample.json + webapp_src_install +} |