Skip to content

Commit

Permalink
dev-db/pgadmin4: Install desktop file
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/689706
Package-Manager: Portage-2.3.87, Repoman-2.3.20
Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Feb 5, 2020
1 parent 85bcfc5 commit 93ceeb8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
11 changes: 11 additions & 0 deletions dev-db/pgadmin4/files/pgadmin4.desktop
Original file line number Diff line number Diff line change
@@ -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;
10 changes: 9 additions & 1 deletion dev-db/pgadmin4/pgadmin4-4.17.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand All @@ -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}]
Expand Down Expand Up @@ -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
}

0 comments on commit 93ceeb8

Please sign in to comment.