Skip to content

Commit

Permalink
net-im/ejabberd: Use gawk instead of eawk for in-place edit
Browse files Browse the repository at this point in the history
gawk-4.1 comes with in-place extension.

Package-Manager: portage-2.2.28
  • Loading branch information
aidecoe committed May 21, 2016
1 parent b48135f commit 472bdd0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions net-im/ejabberd/ejabberd-16.04.ebuild
Expand Up @@ -28,7 +28,7 @@ RESTRICT="test"
# TODO: >=dev-erlang/meck-0.8.4
# TODO: >=dev-erlang/moka-1.0.5b
# TODO: )
DEPEND="
CDEPEND="
>=dev-erlang/cache_tab-1.0.2
>=dev-erlang/esip-1.0.4
>=dev-erlang/fast_tls-1.0.3
Expand Down Expand Up @@ -57,7 +57,9 @@ DEPEND="
)
sqlite? ( >=dev-erlang/sqlite3-1.1.5 )
zlib? ( >=dev-erlang/ezlib-1.0.1 )"
RDEPEND="${DEPEND}
DEPEND="${CDEPEND}
>=sys-apps/gawk-4.1"
RDEPEND="${CDEPEND}
captcha? ( media-gfx/imagemagick[truetype,png] )"

PATCHES=( "${FILESDIR}/${P}-ejabberdctl.patch" )
Expand Down Expand Up @@ -125,16 +127,16 @@ set_jabberbase_paths() {

# Skip installing docs because it's only COPYING that's installed by Makefile.
skip_docs() {
eawk "${S}/Makefile.in" \
'/# Documentation/, /^[[:space:]]*#?[[:space:]]*$/ {
gawk -i inplace '
/# Documentation/, /^[[:space:]]*#?[[:space:]]*$/ {
if ($0 ~ /^[[:space:]]*#?[[:space:]]*$/) {
print $0;
} else {
next;
}
}
1
' || die 'failed to remove docs section from Makefile.in'
' "${S}/Makefile.in" || die 'failed to remove docs section from Makefile.in'
}

src_prepare() {
Expand Down

0 comments on commit 472bdd0

Please sign in to comment.