x11-misc/portfolio: tweaks; add myself to maintainers

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
Maciej Barć 2021-01-07 20:28:05 +01:00
parent 043c0d6603
commit 8794e5bc35
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A
3 changed files with 17 additions and 8 deletions

View File

@ -1,4 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata> <pkgmetadata>
<maintainer type="person">
<email>xgqt@protonmail.com</email>
<name>Maciej Barć</name>
</maintainer>
<upstream>
<remote-id type="github">tchx84/Portfolio</remote-id>
</upstream>
</pkgmetadata> </pkgmetadata>

View File

@ -16,7 +16,7 @@ if [[ "${PV}" == *9999* ]]; then
else else
SRC_URI="https://github.com/tchx84/${PN^}/archive/v${PV}.tar.gz -> ${P}.tar.gz" SRC_URI="https://github.com/tchx84/${PN^}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64" KEYWORDS="~amd64"
S="${WORKDIR}/${PN^}-${PV}" S="${WORKDIR}/${P^}"
fi fi
RESTRICT=" RESTRICT="
@ -36,15 +36,15 @@ RDEPEND="
dev-python/pycairo[${PYTHON_MULTI_USEDEP}] dev-python/pycairo[${PYTHON_MULTI_USEDEP}]
dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}] dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}]
') ')
"
DEPEND="
${RDEPEND}
test? ( test? (
dev-python/black dev-python/black
dev-python/pyflakes dev-python/pyflakes
dev-python/pytest dev-python/pytest
) )
" "
DEPEND="
${RDEPEND}
"
pkg_setup() { pkg_setup() {
python-single-r1_pkg_setup python-single-r1_pkg_setup
@ -54,6 +54,7 @@ src_install() {
meson_src_install meson_src_install
python_optimize python_optimize
# TODO: find a better way to fix the python script
echo "#!/usr/bin/${EPYTHON} echo "#!/usr/bin/${EPYTHON}
$(cat ${D}/usr/bin/dev.tchx84.Portfolio)" > "${D}/usr/bin/dev.tchx84.Portfolio" || die $(cat ${D}/usr/bin/dev.tchx84.Portfolio)" > "${D}/usr/bin/dev.tchx84.Portfolio" || die
} }

View File

@ -16,7 +16,7 @@ if [[ "${PV}" == *9999* ]]; then
else else
SRC_URI="https://github.com/tchx84/${PN^}/archive/v${PV}.tar.gz -> ${P}.tar.gz" SRC_URI="https://github.com/tchx84/${PN^}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64" KEYWORDS="~amd64"
S="${WORKDIR}/${PN^}-${PV}" S="${WORKDIR}/${P^}"
fi fi
RESTRICT=" RESTRICT="
@ -36,15 +36,15 @@ RDEPEND="
dev-python/pycairo[${PYTHON_MULTI_USEDEP}] dev-python/pycairo[${PYTHON_MULTI_USEDEP}]
dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}] dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}]
') ')
"
DEPEND="
${RDEPEND}
test? ( test? (
dev-python/black dev-python/black
dev-python/pyflakes dev-python/pyflakes
dev-python/pytest dev-python/pytest
) )
" "
DEPEND="
${RDEPEND}
"
pkg_setup() { pkg_setup() {
python-single-r1_pkg_setup python-single-r1_pkg_setup
@ -54,6 +54,7 @@ src_install() {
meson_src_install meson_src_install
python_optimize python_optimize
# TODO: find a better way to fix the python script
echo "#!/usr/bin/${EPYTHON} echo "#!/usr/bin/${EPYTHON}
$(cat ${D}/usr/bin/dev.tchx84.Portfolio)" > "${D}/usr/bin/dev.tchx84.Portfolio" || die $(cat ${D}/usr/bin/dev.tchx84.Portfolio)" > "${D}/usr/bin/dev.tchx84.Portfolio" || die
} }