summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs/libaxc/libaxc-0.3.6.ebuild')
-rw-r--r--net-libs/libaxc/libaxc-0.3.6.ebuild18
1 files changed, 10 insertions, 8 deletions
diff --git a/net-libs/libaxc/libaxc-0.3.6.ebuild b/net-libs/libaxc/libaxc-0.3.6.ebuild
index 6fe97dd4c072..013ce8f510cb 100644
--- a/net-libs/libaxc/libaxc-0.3.6.ebuild
+++ b/net-libs/libaxc/libaxc-0.3.6.ebuild
@@ -23,9 +23,9 @@ RDEPEND="
"
DEPEND="
${RDEPEND}
- virtual/pkgconfig
test? ( dev-util/cmocka )
"
+BDEPEND="virtual/pkgconfig"
S="${WORKDIR}"/${MY_P}
RESTRICT="!test? ( test )"
@@ -48,24 +48,26 @@ src_compile() {
emake "${make_args[@]}"
}
+src_test() {
+ # TODO: Test failures seem to be ignored in the upstream Makefile?
+ # e.g. https://github.com/gkdr/axc/blob/master/Makefile#L154
+ emake CC="$(tc-getCC)" test
+}
+
src_install() {
emake DESTDIR="${D}" PREFIX=/usr install
# Respect libdir other than /usr/lib, e.g. /usr/lib64
local libdir="$(get_libdir)"
if [[ ${libdir} != lib ]]; then
- mv "${D}"/usr/{lib,${libdir}} || die
+ mv "${ED}"/usr/{lib,${libdir}} || die
sed "s|^libdir=.*|libdir=\${prefix}/${libdir}|" \
- -i "${D}/usr/${libdir}/pkgconfig/libaxc.pc" || die
+ -i "${ED}/usr/${libdir}/pkgconfig/libaxc.pc" || die
fi
einstalldocs
if ! use static-libs ; then
- rm "${D}/usr/${libdir}/libaxc.a" || die
+ rm "${ED}/usr/${libdir}/libaxc.a" || die
fi
}
-
-src_test() {
- emake -j1 test
-}