diff --git a/x11-misc/portfolio/Manifest b/x11-misc/portfolio/Manifest new file mode 100644 index 0000000..5ceafef --- /dev/null +++ b/x11-misc/portfolio/Manifest @@ -0,0 +1 @@ +DIST portfolio-0.9.2.tar.gz 252455 BLAKE2B 24079666b4b0afd63f809f315558494f956fb1ebe7bb9eb5581ee62d324ef0eb7625bc3d9e4dd2af22ce4bf46349d4ad830614413718debc0c113810b459268e SHA512 09aec47e8239c4d5bf8087516de208a8dca6b326ecc91024d05901458d00560a89a1769b2d0b0d038e01064247d7a51cd333f7410064760c99f4d24f0525006c diff --git a/x11-misc/portfolio/metadata.xml b/x11-misc/portfolio/metadata.xml new file mode 100644 index 0000000..097975e --- /dev/null +++ b/x11-misc/portfolio/metadata.xml @@ -0,0 +1,4 @@ + + + + diff --git a/x11-misc/portfolio/portfolio-0.9.2.ebuild b/x11-misc/portfolio/portfolio-0.9.2.ebuild new file mode 100644 index 0000000..d1f1972 --- /dev/null +++ b/x11-misc/portfolio/portfolio-0.9.2.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8,9} ) + +inherit python-single-r1 gnome2-utils meson xdg + +DESCRIPTION="Minimalist file manager for those who want to use Linux mobile devices" +HOMEPAGE="https://github.com/tchx84/Portfolio" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/tchx84/${PN^}.git" +else + SRC_URI="https://github.com/tchx84/${PN^}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/${PN^}-${PV}" +fi + +RESTRICT=" + mirror + !test? ( test ) +" +LICENSE="GPL-3" +SLOT="0" +IUSE="test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND=" + ${PYTHON_DEPS} + dev-libs/appstream-glib[introspection] + x11-libs/gtk+:3[introspection] + $(python_gen_cond_dep ' + dev-python/pycairo[${PYTHON_MULTI_USEDEP}] + dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}] + ') +" +RDEPEND=" + ${DEPEND} +" + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_install() { + meson_src_install + python_optimize + + echo "#!/usr/bin/${EPYTHON} + $(cat ${D}/usr/bin/dev.tchx84.Portfolio)" > "${D}/usr/bin/dev.tchx84.Portfolio" || die +} + +pkg_preinst() { + gnome2_schemas_savelist + xdg_pkg_preinst +} + +pkg_postinst() { + gnome2_gconf_install + gnome2_schemas_update + xdg_pkg_postinst +} + +pkg_postrm() { + gnome2_gconf_uninstall + gnome2_schemas_update + xdg_pkg_postrm +} diff --git a/x11-misc/portfolio/portfolio-9999.ebuild b/x11-misc/portfolio/portfolio-9999.ebuild new file mode 100644 index 0000000..d1f1972 --- /dev/null +++ b/x11-misc/portfolio/portfolio-9999.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8,9} ) + +inherit python-single-r1 gnome2-utils meson xdg + +DESCRIPTION="Minimalist file manager for those who want to use Linux mobile devices" +HOMEPAGE="https://github.com/tchx84/Portfolio" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/tchx84/${PN^}.git" +else + SRC_URI="https://github.com/tchx84/${PN^}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + S="${WORKDIR}/${PN^}-${PV}" +fi + +RESTRICT=" + mirror + !test? ( test ) +" +LICENSE="GPL-3" +SLOT="0" +IUSE="test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND=" + ${PYTHON_DEPS} + dev-libs/appstream-glib[introspection] + x11-libs/gtk+:3[introspection] + $(python_gen_cond_dep ' + dev-python/pycairo[${PYTHON_MULTI_USEDEP}] + dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}] + ') +" +RDEPEND=" + ${DEPEND} +" + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_install() { + meson_src_install + python_optimize + + echo "#!/usr/bin/${EPYTHON} + $(cat ${D}/usr/bin/dev.tchx84.Portfolio)" > "${D}/usr/bin/dev.tchx84.Portfolio" || die +} + +pkg_preinst() { + gnome2_schemas_savelist + xdg_pkg_preinst +} + +pkg_postinst() { + gnome2_gconf_install + gnome2_schemas_update + xdg_pkg_postinst +} + +pkg_postrm() { + gnome2_gconf_uninstall + gnome2_schemas_update + xdg_pkg_postrm +}