net-im/mirage: add mirage
Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
parent
e66ee90114
commit
735d6f6470
6
net-im/mirage/Manifest
Normal file
6
net-im/mirage/Manifest
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
DIST RadialBarDemo-ec3af1a087a0c4c0c31709ed94b7e939d3e51400.tar.gz 6287 BLAKE2B 307e873cd294cb16e8ee1b8d3e54b71b2e81f930df317f377454587997e0d927040c13d5daeca58e5ffe07be8dcdcd3bbe89021371d2262b3d6e4748e7f8cea8 SHA512 d4f2fcc91e3542299ffde8c6981131d3dd8c168954c6b43929b675f153c3424a29ef2a2e5f1445b8500aca97f3674eed40f7cabf242fd210ea67f5028567552d
|
||||||
|
DIST SortFilterProxyModel-36befddf5d57faad990e72c88c5844794f274145.tar.gz 52369 BLAKE2B 02e2a85c5df7a173b1ec27f126474db0d1ddf2c5858d41b904d463277d134f6f301e25597fd71d61d4a512207eb739e094b44a6af7d9bb7deb65823ab6836691 SHA512 bfb7af36abd5ded014549042e760c1ec6779f46dd6c30e672ada21decc7a1b1a631ada1cc2c57d62d0daca4cccff9640077345b3661ef73021d5e2ee8058ae9b
|
||||||
|
DIST gel-0e796aacc16388a164bab0bb0ce9dabc885ed7fa.tar.gz 9878 BLAKE2B 319ec5f76ace441e78f563e596b3e46baada15716e7642d71e9dce56241b7f37f58c79863e944e6710fcbe634da6538d77fa8e6c897d35e695a81ca1cd37c8ec SHA512 540549882494007219d7e5be6d4502869bf02db16046547a623a20c17be729645ccd7611fa8ecd16e8f2fe545569be29240dabbefc8cb8f9c2b333355caab480
|
||||||
|
DIST hsluv-c-9e9be32d6010cad484a7b12b1a3d19c6cf4c1353.tar.gz 1073542 BLAKE2B d798c71be3d3f7ad4248650f08bbb477b43b27edafa8519ddb9ac2873a1da99767f6f6668280fc9fa8abce7ab8347a9fe040a9b80c189f4e13465b5747e07adc SHA512 ecd8c9afa9e22c6a0093435ce89b5d5b1882207359d02a65f6e62952fa4b57fc5b3e1aaa07527553a7e86c350173409b21d41b3da5235a7fb5f96b61944be839
|
||||||
|
DIST mirage-v0.6.4.tar.gz 3130527 BLAKE2B eec48e6afc0e0cc609b0ebad2799c2e9defea564a271251e98c41ca2176e1c98bd3c228f4bcfb5719e993b5c71ed964e61939eaf0f4f104315fda79cc80d3db3 SHA512 1780e5e9da7a31b2310d3e07d6b52a7be8cfe97262fef34ef470fd3d92621e554596858168d1d555d7dcf6f506853e0260b744a7725e70c9a34cf399be2394e0
|
||||||
|
DIST qsyncable-f5ca07b71cecda685d0dd4b3c74d2fb2ca71f711.tar.gz 116316 BLAKE2B f0492e8a76485f24c0b6fe5c0c0fe7ec4e308722f2bc1d868bd27a53f8bb0354b4ead10a4ceb08d35b1441a0b9dae538c14826fe31a57b80294e3b6f5396b69e SHA512 b7187b3a87b21b6ff3dde00aee55c5cc1721ee8d228eab91cc78a7b5de68457999015ef601542a69c9bed424ffcd375e7314bd451d6d7eaee5a827962c83a3a7
|
12
net-im/mirage/metadata.xml
Normal file
12
net-im/mirage/metadata.xml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email> parona@protonmail.com </email>
|
||||||
|
<name> Alfred Wingate </name>
|
||||||
|
</maintainer>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>hedmoo@yahoo.com</email>
|
||||||
|
<name>Andreas Westman Dorcsak</name>
|
||||||
|
</maintainer>
|
||||||
|
</pkgmetadata>
|
117
net-im/mirage/mirage-0.6.4.ebuild
Normal file
117
net-im/mirage/mirage-0.6.4.ebuild
Normal file
@ -0,0 +1,117 @@
|
|||||||
|
# Copyright 2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{6..8} )
|
||||||
|
inherit qmake-utils python-single-r1 xdg
|
||||||
|
|
||||||
|
DESCRIPTION="A fancy, customizable, keyboard-operable Qt/QML+Python Matrix chat client."
|
||||||
|
HOMEPAGE="https://github.com/mirukana/mirage"
|
||||||
|
|
||||||
|
SUBMODULE_COMMITS=(
|
||||||
|
"ec3af1a087a0c4c0c31709ed94b7e939d3e51400"
|
||||||
|
"36befddf5d57faad990e72c88c5844794f274145"
|
||||||
|
"0e796aacc16388a164bab0bb0ce9dabc885ed7fa"
|
||||||
|
"9e9be32d6010cad484a7b12b1a3d19c6cf4c1353"
|
||||||
|
"f5ca07b71cecda685d0dd4b3c74d2fb2ca71f711"
|
||||||
|
)
|
||||||
|
|
||||||
|
#[0] mirukana/RadialBarDemo
|
||||||
|
#[1] oKcerG/SortFilterProxyModel
|
||||||
|
#[2] Cutehacks/gel
|
||||||
|
#[3] hsluv/hsluv-c
|
||||||
|
#[4] benlau/qsyncable
|
||||||
|
|
||||||
|
if [[ "${PV}" == "9999" ]]
|
||||||
|
then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/mirukana/mirage.git"
|
||||||
|
EGIT_SUBMODULES=( '*' )
|
||||||
|
else
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/mirukana/"${PN}"/archive/v"${PV}".tar.gz -> "${PN}"-v"${PV}".tar.gz
|
||||||
|
https://github.com/mirukana/RadialBarDemo/archive/"${SUBMODULE_COMMITS[0]}".tar.gz -> RadialBarDemo-"${SUBMODULE_COMMITS[0]}".tar.gz
|
||||||
|
https://github.com/oKcerG/SortFilterProxyModel/archive/"${SUBMODULE_COMMITS[1]}".tar.gz -> SortFilterProxyModel-"${SUBMODULE_COMMITS[1]}".tar.gz
|
||||||
|
https://github.com/Cutehacks/gel/archive/"${SUBMODULE_COMMITS[2]}".tar.gz -> gel-"${SUBMODULE_COMMITS[2]}".tar.gz
|
||||||
|
https://github.com/hsluv/hsluv-c/archive/"${SUBMODULE_COMMITS[3]}".tar.gz -> hsluv-c-"${SUBMODULE_COMMITS[3]}".tar.gz
|
||||||
|
https://github.com/benlau/qsyncable/archive/"${SUBMODULE_COMMITS[4]}".tar.gz -> qsyncable-"${SUBMODULE_COMMITS[4]}".tar.gz
|
||||||
|
"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="X"
|
||||||
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
>=dev-qt/qtcore-5.12
|
||||||
|
>=dev-qt/qtdeclarative-5.12
|
||||||
|
>=dev-qt/qtquickcontrols2-5.12[widgets]
|
||||||
|
>=dev-qt/qtgraphicaleffects-5.12
|
||||||
|
X? (
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libXScrnSaver
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
${DEPEND}
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
>=dev-qt/qtimageformats-5.12
|
||||||
|
>=dev-qt/qtsvg-5.12
|
||||||
|
dev-libs/olm
|
||||||
|
dev-python/pyotherside[${PYTHON_SINGLE_USEDEP}]
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/matrix-nio[e2e,${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/aiofiles-0.4.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/appdirs-1.4.4[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/blist-1.3.6[${PYTHON_USEDEP}]
|
||||||
|
>=media-gfx/cairosvg-2.4.2[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/filetype-1.0.7[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/html_sanitizer-1.9.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/lxml-4.5.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/mistune-0.8.4[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pillow-7.0.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pymediainfo-4.2.1[${PYTHON_USEDEP}]
|
||||||
|
python_single_target_python3_6? ( >=dev-python/async_generator-1.10[python_targets_python3_6] )
|
||||||
|
python_single_target_python3_6? ( >=dev-python/dataclasses-0.6[python_targets_python3_6] )
|
||||||
|
python_single_target_python3_6? ( >=dev-python/pyfastcopy-1.0.3[python_targets_python3_6] )
|
||||||
|
python_single_target_python3_7? ( >=dev-python/pyfastcopy-1.0.3[python_targets_python3_7] )
|
||||||
|
|
||||||
|
')
|
||||||
|
media-libs/libjpeg-turbo
|
||||||
|
media-libs/libmediainfo
|
||||||
|
media-libs/libwebp
|
||||||
|
media-libs/tiff
|
||||||
|
media-libs/openjpeg:2
|
||||||
|
sys-libs/zlib
|
||||||
|
"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
move_lib() {
|
||||||
|
local IN_DIR="${1}"
|
||||||
|
local OUT_DIR
|
||||||
|
[ -z "${2}" ] && OUT_DIR="${IN_DIR}" || OUT_DIR=""${2%/}"/"${IN_DIR}""
|
||||||
|
mv ""${WORKDIR}"/"${IN_DIR}""*/* ""${S}"/"${OUT_DIR}"" || die
|
||||||
|
}
|
||||||
|
if [ "${PV}" != "9999" ]; then
|
||||||
|
local submodules_libs="RadialBarDemo SortFilterProxyModel gel hsluv-c qsyncable"
|
||||||
|
for submodules_lib in ${submodules_libs} ; do
|
||||||
|
move_lib "${submodules_lib}" submodules
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
eapply_user
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
if use !X; then
|
||||||
|
myconf="CONFIG+=no-x11"
|
||||||
|
fi
|
||||||
|
eqmake5 mirage.pro PREFIX="${D}"/usr ${myconf}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake install
|
||||||
|
}
|
117
net-im/mirage/mirage-9999.ebuild
Normal file
117
net-im/mirage/mirage-9999.ebuild
Normal file
@ -0,0 +1,117 @@
|
|||||||
|
# Copyright 2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{6..8} )
|
||||||
|
inherit qmake-utils python-single-r1 xdg
|
||||||
|
|
||||||
|
DESCRIPTION="A fancy, customizable, keyboard-operable Qt/QML+Python Matrix chat client."
|
||||||
|
HOMEPAGE="https://github.com/mirukana/mirage"
|
||||||
|
|
||||||
|
SUBMODULE_COMMITS=(
|
||||||
|
"ec3af1a087a0c4c0c31709ed94b7e939d3e51400"
|
||||||
|
"36befddf5d57faad990e72c88c5844794f274145"
|
||||||
|
"0e796aacc16388a164bab0bb0ce9dabc885ed7fa"
|
||||||
|
"9e9be32d6010cad484a7b12b1a3d19c6cf4c1353"
|
||||||
|
"f5ca07b71cecda685d0dd4b3c74d2fb2ca71f711"
|
||||||
|
)
|
||||||
|
|
||||||
|
#[0] mirukana/RadialBarDemo
|
||||||
|
#[1] oKcerG/SortFilterProxyModel
|
||||||
|
#[2] Cutehacks/gel
|
||||||
|
#[3] hsluv/hsluv-c
|
||||||
|
#[4] benlau/qsyncable
|
||||||
|
|
||||||
|
if [[ "${PV}" == "9999" ]]
|
||||||
|
then
|
||||||
|
inherit git-r3
|
||||||
|
EGIT_REPO_URI="https://github.com/mirukana/mirage.git"
|
||||||
|
EGIT_SUBMODULES=( '*' )
|
||||||
|
else
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/mirukana/"${PN}"/archive/v"${PV}".tar.gz -> "${PN}"-v"${PV}".tar.gz
|
||||||
|
https://github.com/mirukana/RadialBarDemo/archive/"${SUBMODULE_COMMITS[0]}".tar.gz -> RadialBarDemo-"${SUBMODULE_COMMITS[0]}".tar.gz
|
||||||
|
https://github.com/oKcerG/SortFilterProxyModel/archive/"${SUBMODULE_COMMITS[1]}".tar.gz -> SortFilterProxyModel-"${SUBMODULE_COMMITS[1]}".tar.gz
|
||||||
|
https://github.com/Cutehacks/gel/archive/"${SUBMODULE_COMMITS[2]}".tar.gz -> gel-"${SUBMODULE_COMMITS[2]}".tar.gz
|
||||||
|
https://github.com/hsluv/hsluv-c/archive/"${SUBMODULE_COMMITS[3]}".tar.gz -> hsluv-c-"${SUBMODULE_COMMITS[3]}".tar.gz
|
||||||
|
https://github.com/benlau/qsyncable/archive/"${SUBMODULE_COMMITS[4]}".tar.gz -> qsyncable-"${SUBMODULE_COMMITS[4]}".tar.gz
|
||||||
|
"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="X"
|
||||||
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
>=dev-qt/qtcore-5.12
|
||||||
|
>=dev-qt/qtdeclarative-5.12
|
||||||
|
>=dev-qt/qtquickcontrols2-5.12[widgets]
|
||||||
|
>=dev-qt/qtgraphicaleffects-5.12
|
||||||
|
X? (
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libXScrnSaver
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
${DEPEND}
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
>=dev-qt/qtimageformats-5.12
|
||||||
|
>=dev-qt/qtsvg-5.12
|
||||||
|
dev-libs/olm
|
||||||
|
dev-python/pyotherside[${PYTHON_SINGLE_USEDEP}]
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/matrix-nio[e2e,${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/aiofiles-0.4.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/appdirs-1.4.4[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/blist-1.3.6[${PYTHON_USEDEP}]
|
||||||
|
>=media-gfx/cairosvg-2.4.2[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/filetype-1.0.7[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/html_sanitizer-1.9.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/lxml-4.5.1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/mistune-0.8.4[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pillow-7.0.0[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/pymediainfo-4.2.1[${PYTHON_USEDEP}]
|
||||||
|
python_single_target_python3_6? ( >=dev-python/async_generator-1.10[python_targets_python3_6] )
|
||||||
|
python_single_target_python3_6? ( >=dev-python/dataclasses-0.6[python_targets_python3_6] )
|
||||||
|
python_single_target_python3_6? ( >=dev-python/pyfastcopy-1.0.3[python_targets_python3_6] )
|
||||||
|
python_single_target_python3_7? ( >=dev-python/pyfastcopy-1.0.3[python_targets_python3_7] )
|
||||||
|
|
||||||
|
')
|
||||||
|
media-libs/libjpeg-turbo
|
||||||
|
media-libs/libmediainfo
|
||||||
|
media-libs/libwebp
|
||||||
|
media-libs/tiff
|
||||||
|
media-libs/openjpeg:2
|
||||||
|
sys-libs/zlib
|
||||||
|
"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
move_lib() {
|
||||||
|
local IN_DIR="${1}"
|
||||||
|
local OUT_DIR
|
||||||
|
[ -z "${2}" ] && OUT_DIR="${IN_DIR}" || OUT_DIR=""${2%/}"/"${IN_DIR}""
|
||||||
|
mv ""${WORKDIR}"/"${IN_DIR}""*/* ""${S}"/"${OUT_DIR}"" || die
|
||||||
|
}
|
||||||
|
if [ "${PV}" != "9999" ]; then
|
||||||
|
local submodules_libs="RadialBarDemo SortFilterProxyModel gel hsluv-c qsyncable"
|
||||||
|
for submodules_lib in ${submodules_libs} ; do
|
||||||
|
move_lib "${submodules_lib}" submodules
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
eapply_user
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
if use !X; then
|
||||||
|
myconf="CONFIG+=no-x11"
|
||||||
|
fi
|
||||||
|
eqmake5 mirage.pro PREFIX="${D}"/usr ${myconf}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake install
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user