--- /usr/portage/app-text/htmldoc/htmldoc-1.8.23.ebuild 2003-09-15 21:40:47.000000000 +0000 +++ /usr/portage/app-text/htmldoc/htmldoc-1.8.23.ebuild 2003-09-25 13:25:05.000000000 +0000 @@ -6,13 +6,15 @@ SRC_URI="ftp://ftp.easysw.com/pub/${PN}/${PV}/${P}-source.tar.bz2" HOMEPAGE="http://www.easysw.com/htmldoc/" +IUSE="X ssl fltk" + SLOT="0" LICENSE="GPL-2" -KEYWORDS="x86 ~sparc ~ppc ~alpha" +KEYWORDS="~x86 ~sparc ~ppc ~alpha" -DEPEND="virtual/x11" -RDEPEND=">=dev-libs/openssl-0.9.6e - >=x11-libs/fltk-1.0.11" +DEPEND="X? ( virtual/x11 )" +RDEPEND="ssl? ( >=dev-libs/openssl-0.9.6e ) + fltk? >=x11-libs/fltk-1.0.11" src_unpack() { unpack ${A} @@ -22,14 +24,16 @@ } src_compile() { - econf \ - --with-x \ - --with-gui \ - --with-openssl-libs=/usr/lib \ - --with-openssl-includes=/usr/include/openssl + local myconf + use X && myconf="--with-x" + use fltk && myconf="${myconf} --with-gui" + use ssl && myconf="${myconf} --with-openssl-libs=/usr/lib \ + --with-openssl-includes=/usr/include/openssl" + + econf ${myconf} # Add missing -lfltk_images to LIBS - sed -i 's/-lfltk /-lfltk -lfltk_images /g' \ + use fltk && sed -i 's/-lfltk /-lfltk -lfltk_images /g' \ Makedefs || die "failed to detect -lfltk" make || die