app-office/unoconv: Add python3_{7,8}, drop python2_7, unused eutils
authorAndreas Sturmlechner <asturm@gentoo.org>
Mon, 6 Jan 2020 17:12:34 +0000 (18:12 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Mon, 6 Jan 2020 17:16:42 +0000 (18:16 +0100)
Overhaul the ebuild a bit.

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
app-office/unoconv/unoconv-0.9.ebuild

index 3f411bf6cd0383b550d34edde2a092ee5f128d84..53aed7fea67a76f4fab27caac99543466647403a 100644 (file)
@@ -3,33 +3,28 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python2_7 python3_6 )
+PYTHON_COMPAT=( python3_{6,7,8} )
+inherit python-single-r1
 
-inherit eutils python-single-r1
-
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-DESCRIPTION="Convert between document formats supported by Libreoffice"
+DESCRIPTION="Convert between document formats supported by LibreOffice"
 HOMEPAGE="http://dag.wiee.rs/home-made/unoconv/"
 SRC_URI="https://github.com/dagwieers/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-
 KEYWORDS="~amd64 ~x86"
 
-IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
-DEPEND=""
-RDEPEND="${DEPEND}
-       ${PYTHON_DEPS}
+RDEPEND="${PYTHON_DEPS}
        !app-text/odt2txt
        virtual/ooo
 "
 
+PATCHES=( "${FILESDIR}/timeout.patch" )
+
 src_prepare() {
-       eapply "${FILESDIR}/timeout.patch"
-       eapply_user
+       default
        python_fix_shebang .
 }
 
@@ -37,6 +32,5 @@ src_compile() { :; }
 
 src_install() {
        emake -j1 doc-install install install-links DESTDIR="${D}"
-
-       dodoc ChangeLog CHANGELOG.md README.adoc
+       dodoc AUTHORS ChangeLog CHANGELOG.md README.adoc
 }