# $Id$ PNAME="newt" PVER="0.52.20" PBUILD="r2" PCAT="dev-libs" DESCRIPTION="A library for text mode user interfaces." HOMEPAGE="https://fedorahosted.org/newt/" DEPEND=">= dev-libs/popt-1.16 >= sys-libs/slang-2.2" SDEPEND=">= dev-lang/python-2.7 >= dev-lang/tcl-8.6" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" msetfeature "!check" sminclude multilib SRC_URI=( https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/ | highesttarball gz" src_prepare() { munpack ${SRCFILE} || die # fix hardcoded tcl version and use DESTDIR all-abis sed -i -e "s:-ltcl8.4:-ltcl:g" -e "s:instroot:DESTDIR:g" Makefile.in || die all-abis echo '#define USE_INTERP_RESULT 1' >> config.h } src_compile() { if [[ $(mlibdir) != lib ]] then only-m32 mconfigure || die only-m64 mconfigure --with-tcl || die else mconfigure --with-tcl || die fi mmake || die }