commit: 93ceeb886d25b210422a410523105255e2198c25 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Tue Feb 4 23:14:22 2020 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Wed Feb 5 21:27:41 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93ceeb88
dev-db/pgadmin4: Install desktop file Closes: https://bugs.gentoo.org/689706 Package-Manager: Portage-2.3.87, Repoman-2.3.20 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> dev-db/pgadmin4/files/pgadmin4.desktop | 11 +++++++++++ dev-db/pgadmin4/pgadmin4-4.17.ebuild | 10 +++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/dev-db/pgadmin4/files/pgadmin4.desktop b/dev-db/pgadmin4/files/pgadmin4.desktop new file mode 100644 index 00000000000..e1697a620d5 --- /dev/null +++ b/dev-db/pgadmin4/files/pgadmin4.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=pgAdmin 4 +Exec=/usr/bin/pgAdmin4 +Icon=pgadmin4 +Type=Application +Categories=Development;Database; +MimeType=text/html +DocPath=/usr/share/pgadmin4/docs/en_US/_build/html/index.html +Comment=PostgreSQL Tools +Keywords=database;db;sql;query;administration;development; diff --git a/dev-db/pgadmin4/pgadmin4-4.17.ebuild b/dev-db/pgadmin4/pgadmin4-4.17.ebuild index 626795b4964..5fbbd435ceb 100644 --- a/dev-db/pgadmin4/pgadmin4-4.17.ebuild +++ b/dev-db/pgadmin4/pgadmin4-4.17.ebuild @@ -5,7 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python3_{6,7,8} ) PYTHON_REQ_USE="sqlite" -inherit python-single-r1 qmake-utils +inherit desktop python-single-r1 qmake-utils xdg DESCRIPTION="GUI administration and development platform for PostgreSQL" HOMEPAGE="https://www.pgadmin.org/" @@ -30,6 +30,7 @@ COMMON_DEPEND="${PYTHON_DEPS} " DEPEND="${COMMON_DEPEND} doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + virtual/imagemagick-tools[png] " RDEPEND="${COMMON_DEPEND} >=app-text/htmlmin-0.1.12[${PYTHON_USEDEP}] @@ -103,4 +104,11 @@ src_install() { insinto /usr/share/${PN}/docs/en_US/_build doins -r docs/en_US/_build/html fi + + local s + for s in 16 32 48 64 72 96 128 192 256; do + convert runtime/pgAdmin4.png -resize ${s}x${s} ${PN}_${s}.png || die + newicon -s ${s} ${PN}_${s}.png ${PN}.png + done + domenu "${FILESDIR}"/${PN}.desktop }
