www-apps/otrs-5.0.16: fix confutils, #610484, minor cleanup
authorStefan G. Weichinger <office@oops.co.at>
Thu, 2 Mar 2017 17:42:09 +0000 (18:42 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 12 Mar 2017 09:05:04 +0000 (10:05 +0100)
Closes: https://github.com/gentoo/gentoo/pull/4096

www-apps/otrs/otrs-5.0.16.ebuild

index 4ad6fe3662f080ef9e75ca4ab0392649127c73dd..664e89770cd6121fe70dbc1069f82abe36782e73 100644 (file)
@@ -14,6 +14,8 @@ KEYWORDS="~amd64 ~x86"
 IUSE="apache2 fastcgi +gd ldap mod_perl +mysql pdf postgres soap"
 SLOT="0"
 
+REQUIRED_USE="|| ( mysql postgres )"
+
 DEPEND="media-libs/libpng:0"
 
 RDEPEND="dev-perl/Apache-Reload
@@ -69,11 +71,10 @@ pkg_setup() {
        enewgroup apache 81
        enewuser apache 81 -1 /var/www apache
        enewuser otrs -1 -1 ${OTRS_HOME} apache
-       confutils_require_any mysql postgres
 }
 
 src_prepare() {
-       rm -r "${S}/scripts"/{auto_*,redhat*,suse*,*.spec} || die
+       rm -r "${S}/scripts"/auto_* || die
 
        pushd Kernel >/dev/null || die
        for i in *.dist; do