Skip to content

Commit

Permalink
dev-db/sqlite: Fix building with USE="-tcl -test tools".
Browse files Browse the repository at this point in the history
  • Loading branch information
Arfrever Frehtes Taifersar Arahesis authored and floppym committed Oct 23, 2015
1 parent 02bf687 commit ab6604a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions dev-db/sqlite/sqlite-3.9.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,9 @@ multilib_src_configure() {
# static-libs USE flag.
options+=($(use_enable static-libs static))

# tcl, test USE flags.
# tcl, test, tools USE flags.
if full_tarball; then
if use tcl || use test; then
options+=(--enable-tcl)
else
options+=(--disable-tcl)
fi
options+=(--enable-tcl)
fi

if [[ "${CHOST}" == *-mint* ]]; then
Expand All @@ -189,7 +185,7 @@ multilib_src_configure() {
}
multilib_src_compile() {
emake TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
emake HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
if use tools && multilib_is_native_abi; then
emake showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer
Expand All @@ -202,7 +198,7 @@ multilib_src_test() {
return
fi
emake $(use debug && echo fulltest || echo test)
emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test)
}
multilib_src_install() {
Expand Down

0 comments on commit ab6604a

Please sign in to comment.