commit:     6571bb8f3153ff84246ea39b85e56bc8e3af0f4b
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  6 17:12:34 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Jan  6 17:16:42 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6571bb8f

app-office/unoconv: Add python3_{7,8}, drop python2_7, unused eutils

Overhaul the ebuild a bit.

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 app-office/unoconv/unoconv-0.9.ebuild | 24 +++++++++---------------
 1 file changed, 9 insertions(+), 15 deletions(-)

diff --git a/app-office/unoconv/unoconv-0.9.ebuild 
b/app-office/unoconv/unoconv-0.9.ebuild
index 3f411bf6cd0..53aed7fea67 100644
--- a/app-office/unoconv/unoconv-0.9.ebuild
+++ b/app-office/unoconv/unoconv-0.9.ebuild
@@ -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
 }

Reply via email to