--- sqlite-3.7.12.1.ebuild 2012-05-27 21:51:51.779136373 -0400 +++ sqlite-3.7.12.1.ebuild.new 2012-05-27 21:50:54.840134947 -0400 @@ -22,7 +22,7 @@ LICENSE="as-is" SLOT="3" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="debug doc +extensions +fts3 icu +readline secure-delete soundex tcl test +threadsafe unlock-notify" +IUSE="debug doc +extensions +fts3 icu +readline secure-delete soundex static-libs tcl test +threadsafe unlock-notify" RDEPEND="icu? ( dev-libs/icu ) readline? ( sys-libs/readline ) @@ -94,6 +94,14 @@ append-cppflags -DSQLITE_SOUNDEX fi + # Optionally build with static libs + local static_option + if use static-libs; then + static_option="--enable-static" + else + static_option="--disable-static" + fi + # Enable unlock notification if use unlock-notify; then append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY @@ -123,7 +131,7 @@ # `configure` from amalgamation tarball doesn't support # --with-readline-inc and --(enable|disable)-tcl options. econf \ - --disable-static \ + $static_option \ $(use_enable extensions ${extensions_option}) \ $(use_enable readline) \ $(use_enable threadsafe) \