app-office/libreoffice: Simplify src_unpack()
authorAndreas Sturmlechner <asturm@gentoo.org>
Sat, 27 Jan 2018 22:19:21 +0000 (23:19 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sun, 28 Jan 2018 23:18:59 +0000 (00:18 +0100)
Package-Manager: Portage-2.3.20, Repoman-2.3.6

app-office/libreoffice/libreoffice-9999.ebuild

index 3b3a7ad4a07542e72f11904254aac244e09767b3..4869257cf96d2cf47876bafaab2d7faae4ce0424 100644 (file)
@@ -243,6 +243,8 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}
 "
 
 PATCHES=(
+       # "${WORKDIR}"/${PATCHSET/.tar.xz/}
+
        # not upstreamable stuff
        "${FILESDIR}/${PN}-5.4-system-pyuno.patch"
        "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
@@ -289,13 +291,9 @@ pkg_setup() {
 }
 
 src_unpack() {
-       [[ -n ${PATCHSET} ]] && unpack ${PATCHSET}
-       use branding && unpack "${BRANDING}"
+       default
 
-       if [[ ${PV} != *9999* ]]; then
-               unpack "${P}.tar.xz"
-               unpack "${PN}-help-${PV}.tar.xz"
-       else
+       if [[ ${PV} = *9999* ]]; then
                local base_uri branch mypv
                base_uri="https://anongit.freedesktop.org/git"
                branch="master"
@@ -310,7 +308,6 @@ src_unpack() {
 }
 
 src_prepare() {
-       [[ -n ${PATCHSET} ]] && eapply "${WORKDIR}/${PATCHSET/.tar.xz/}"
        default
 
        AT_M4DIR="m4" eautoreconf
@@ -425,8 +422,8 @@ src_configure() {
                $(use_enable bluetooth sdremote-bluetooth)
                $(use_enable coinmp)
                $(use_enable cups)
-               $(use_enable debug)
                $(use_enable dbus)
+               $(use_enable debug)
                $(use_enable eds evolution2)
                $(use_enable firebird firebird-sdbc)
                $(use_enable gstreamer gstreamer-1-0)