net-mail/dovecot: Fix building with USE=sieve or USE=managesieve
authorThomas Deutschmann <whissi@gentoo.org>
Wed, 28 Feb 2018 23:51:02 +0000 (00:51 +0100)
committerThomas Deutschmann <whissi@gentoo.org>
Wed, 28 Feb 2018 23:51:14 +0000 (00:51 +0100)
Package-Manager: Portage-2.3.24, Repoman-2.3.6

net-mail/dovecot/dovecot-2.3.0.1.ebuild

index 13a6798510310f3cac031e9fc06f38db49f4fcd5..8425b73eb3635f5495bec15b954d48ecb99a87e2 100644 (file)
@@ -7,7 +7,7 @@ SSL_DEPS_SKIP=1
 inherit ssl-cert systemd user versionator
 
 MY_P="${P/_/.}"
-MY_S="${PN}-ce-${PV}"
+#MY_S="${PN}-ce-${PV}"
 major_minor="$(get_version_component_range 1-2)"
 sieve_version="0.5.0.1"
 if [[ ${PV} == *_rc* ]] ; then
@@ -126,9 +126,9 @@ src_configure() {
                cd "../dovecot-${major_minor}-pigeonhole-${sieve_version}" || die "cd failed"
                econf \
                        $( use_enable static-libs static ) \
-                       --localstatedir="${EPREFIX}/var" \
+                       --localstatedir="${EPREFIX%/}/var" \
                        --enable-shared \
-                       --with-dovecot="../${MY_S}" \
+                       --with-dovecot="${S}" \
                        $( use_with managesieve )
        fi
 }