commit:     056e71b2a4d598195715eb5930a8ab92bd3f48aa
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon Nov  6 12:38:32 2017 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Nov  6 12:38:43 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=056e71b2

x11-misc/xosview: Revbump to install some more files.

Package-Manager: Portage-2.3.13, Repoman-2.3.4

 .../{xosview-1.20.ebuild => xosview-1.20-r1.ebuild}        | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/x11-misc/xosview/xosview-1.20.ebuild 
b/x11-misc/xosview/xosview-1.20-r1.ebuild
similarity index 84%
rename from x11-misc/xosview/xosview-1.20.ebuild
rename to x11-misc/xosview/xosview-1.20-r1.ebuild
index 76ba156e04d..f342c4311c8 100644
--- a/x11-misc/xosview/xosview-1.20.ebuild
+++ b/x11-misc/xosview/xosview-1.20-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-inherit eutils toolchain-funcs
+inherit eutils toolchain-funcs xdg-utils
 
 DESCRIPTION="X11 operating system viewer"
 HOMEPAGE="http://www.pogo.org.uk/~mark/xosview/";
@@ -22,6 +22,8 @@ RDEPEND="${COMMON_DEPS}
 DEPEND="${COMMON_DEPS}
        x11-proto/xproto"
 
+DOCS=( CHANGES README.linux TODO )
+
 src_prepare() {
        default
 
@@ -35,17 +37,21 @@ src_compile() {
 }
 
 src_install() {
-       dobin ${PN}
+       emake PREFIX="${D%/}/usr" install
        use suid && fperms 4755 /usr/bin/${PN}
        insinto /usr/share/X11/app-defaults
        newins Xdefaults XOsview
-       doman *.1
-       dodoc CHANGES README.linux TODO
 }
 
 pkg_postinst() {
+       xdg_desktop_database_update
+
        if ! use suid ; then
                ewarn "If you want to use serial meters ${PN} needs to be 
executed as root."
                ewarn "Please see ${EPREFIX}/usr/share/doc/${PF}/README.linux 
for details."
        fi
 }
+
+pkg_postrm() {
+       xdg_desktop_database_update
+}

Reply via email to