--- /usr/portage/games-puzzle/ngstar/ngstar-2.1.8.ebuild 2006-04-12 03:37:11.000000000 +0300 +++ ngstar-2.1.8.ebuild 2006-04-19 21:33:21.000000000 +0300 @@ -11,19 +11,31 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" -IUSE="" +IUSE="static" DEPEND="sys-libs/ncurses" +src_unpack() { + unpack "${A}" + cd "${S}" + + sed -i \ + -e "s:share/:share/games/:" \ + -e "s:)/bin:)/games/bin:" \ + -e "s:CCO:#CCO:" \ + -e "/^CPPFLAGS/s:+=:+= ${CXXFLAGS}:" \ + configure || die "sed configure failed" +} + src_compile() { - ./configure \ - --prefix "${GAMES_PREFIX}" \ - --without-fltk2 || die "configure failed" + local myconf="--prefix /usr --without-fltk2" + use static && myconf="${myconf} --enable-static" + ./configure ${myconf} || die "configure failed" emake || die "emake failed" } src_install() { - egamesinstall + make DESTDIR="${D}" install || die "make install failed" dodoc AUTHORS Changelog README TODO prepgamesdirs -} +} \ No newline at end of file