cim module needs json so skip installing it unless USE=json
authorMichael Sterrett <mr_bones_@gentoo.org>
Fri, 28 Aug 2015 22:21:15 +0000 (18:21 -0400)
committerMichael Sterrett <mr_bones_@gentoo.org>
Fri, 28 Aug 2015 22:57:13 +0000 (18:57 -0400)
Package-Manager: portage-2.2.20.1

app-admin/syslog-ng/syslog-ng-3.7.1.ebuild

index 4e713ebfe2d23dfaaa2b2e8aac108000d2815721..03f6fdfb209e34483ec79459d63b4eb2a11261bc 100644 (file)
@@ -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