Skip to content

Commit

Permalink
dev-util/argouml: Port to EAPI 6
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/652796
Package-Manager: Portage-2.3.29, Repoman-2.3.9
  • Loading branch information
SoapGentoo committed Apr 18, 2018
1 parent 7b0f089 commit 8271b1e
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions dev-util/argouml/argouml-0.34.ebuild
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright 1999-2016 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="3"
EAPI=6

inherit eutils fdo-mime java-pkg-2
inherit desktop xdg-utils java-pkg-2

DESCRIPTION="Modelling tool that helps you do your design using UML"
HOMEPAGE="http://argouml.tigris.org"
Expand Down Expand Up @@ -36,23 +36,27 @@ src_install() {

java-pkg_dolauncher ${PN} --main org.argouml.application.Main

dodoc ${P}/README.txt || die

if use doc ; then
dohtml -r release/{Readme.htm,www}
insinto /usr/share/doc/${P}
doins "${DISTDIR}/manual-${PV}.pdf"
doins "${DISTDIR}/quickguide-${PV}.pdf"
dodoc ${P}/README.txt

if use doc; then
find release/ \( -name Thumbs.db -o -name filelist.xml \) \
-delete || die
HTML_DOCS=( release/{Readme.htm,www} )
DOCS=(
"${DISTDIR}"/manual-${PV}.pdf
"${DISTDIR}"/quickguide-${PV}.pdf
)
einstalldocs
fi

newicon ${P}/icon/ArgoIcon128x128.png ${PN}.png || die
make_desktop_entry ${PN} "ArgoUML"
}

pkg_postinst() {
fdo-mime_desktop_database_update
xdg_desktop_database_update
}

pkg_postrm() {
fdo-mime_desktop_database_update
xdg_desktop_database_update
}

0 comments on commit 8271b1e

Please sign in to comment.