From: Michael Sterrett Date: Fri, 28 Aug 2015 22:21:15 +0000 (-0400) Subject: cim module needs json so skip installing it unless USE=json X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0036731d9c79c42c6631cd774c5a30d6a9af1928;p=gentoo.git cim module needs json so skip installing it unless USE=json Package-Manager: portage-2.2.20.1 --- diff --git a/app-admin/syslog-ng/syslog-ng-3.7.1.ebuild b/app-admin/syslog-ng/syslog-ng-3.7.1.ebuild index 4e713ebfe2d2..03f6fdfb209e 100644 --- a/app-admin/syslog-ng/syslog-ng-3.7.1.ebuild +++ b/app-admin/syslog-ng/syslog-ng-3.7.1.ebuild @@ -4,7 +4,7 @@ EAPI=5 PYTHON_COMPAT=( python2_7 ) -inherit python-any-r1 eutils multilib systemd versionator +inherit autotools python-any-r1 eutils multilib systemd versionator MY_PV=${PV/_/} MY_PV_MM=$(get_version_component_range 1-2) @@ -46,6 +46,14 @@ pkg_setup() { src_prepare() { epatch_user use python && python_fix_shebang . + + if use !json ; then + sed -i \ + -e '1 s/cim //' \ + scl/Makefile.am || die + eautoreconf + fi + cp "${FILESDIR}"/*logrotate*.in "${TMPDIR}" || die cd "${TMPDIR}" || die