app-admin/apache-tools: fix pcre-config wrapper script

Thanks to Robert Förster for noticing the error.

Bug: https://bugs.gentoo.org/597868

Package-Manager: portage-2.3.2_p5
This commit is contained in:
Mike Gilbert
2016-11-13 15:36:46 -05:00
parent fddec6d4f4
commit f63eff117b
2 changed files with 20 additions and 6 deletions

View File

@@ -39,9 +39,16 @@ src_prepare() {
# This package really should upgrade to using pcre's .pc file.
cat <<-\EOF >"${T}"/pcre-config
#!/bin/sh
[ "${flag}" = "--version" ] && set -- --modversion
exec ${PKG_CONFIG} libpcre "$@"
#!/bin/bash
flags=()
for flag; do
if [[ ${flag} == "--version" ]]; then
flags+=( --modversion )
else
flags+=( "${flag}" )
fi
done
exec ${PKG_CONFIG} libpcre "${flags[@]}"
EOF
chmod a+x "${T}"/pcre-config
}

View File

@@ -39,9 +39,16 @@ src_prepare() {
# This package really should upgrade to using pcre's .pc file.
cat <<-\EOF >"${T}"/pcre-config
#!/bin/sh
[ "${flag}" = "--version" ] && set -- --modversion
exec ${PKG_CONFIG} libpcre "$@"
#!/bin/bash
flags=()
for flag; do
if [[ ${flag} == "--version" ]]; then
flags+=( --modversion )
else
flags+=( "${flag}" )
fi
done
exec ${PKG_CONFIG} libpcre "${flags[@]}"
EOF
chmod a+x "${T}"/pcre-config
}