WANT_LIBTOOL="none"
PLOCALES="de ru"
-inherit autotools git-r3 bash-completion-r1 l10n systemd
+inherit autotools git-r3 bash-completion-r1 l10n systemd flag-o-matic
DESCRIPTION="Search and query ebuilds"
HOMEPAGE="https://github.com/vaeth/eix/"
BOTHDEPEND="nls? ( virtual/libintl )
sqlite? ( >=dev-db/sqlite-3:= )"
RDEPEND="${BOTHDEPEND}
- >=app-shells/push-2.0
- >=app-shells/quoter-3.0"
+ >=app-shells/push-2.0-r1
+ >=app-shells/quoter-3.0_p2-r1"
DEPEND="${BOTHDEPEND}
doc? ( dev-python/docutils )
>=sys-devel/gettext-0.18.3"
src_prepare() {
default
sed -i -e "s:/:${EPREFIX}/:" tmpfiles.d/eix.conf || die
+
+ sed -e "/eixf_source=/s:push.sh:cat \"${EROOT}usr/share/push/push.sh\":" \
+ -e "/eixf_source=/s:quoter_pipe.sh:cat \"${EROOT}usr/share/quoter/quoter_pipe.sh\":" \
+ -i src/eix-functions.sh.in || die
+ sed -e "s:'\$(bindir)/eix-functions.sh':cat \\\\\"${EROOT}usr/share/eix/eix-functions.sh\\\\\":" \
+ -i src/Makefile.am || die
eautoreconf
}
# used purely to control/disrespect *FLAGS
--disable-debugging
- --enable-new_dialect
+ --disable-new_dialect
--disable-optimization
--disable-strong-optimization
--disable-security
--disable-strong-security
)
+ # https://github.com/vaeth/eix/issues/35
+ append-cxxflags -std=c++11
+
econf "${myconf[@]}"
}
default
dobashcomp bash/eix
systemd_dotmpfilesd tmpfiles.d/eix.conf
+
+ insinto /usr/share/${PN}
+ doins "${ED}"/usr/bin/eix-functions.sh
+ rm -r "${ED}"/usr/bin/eix-functions.sh || die
+
+ keepdir /var/cache/eix
}
pkg_postinst() {