# High Level Assembler ebuild by cchee IUSE="" HLA_VERSION="v1.63" DESCRIPTION="High Level Assembler for Linux" HOMEPAGE="http://webster.cs.ucr.edu/AsmTools/HLA/dnld.html" SRC_URI="http://webster.cs.ucr.edu/AsmTools/HLA/HLA${HLA_VERSION}/hlalibsrc.zip" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="-* x86" DEPEND="sys-devel/binutils dev-lang/hla app-arch/unzip" RDEPEND="sys-devel/binutils dev-lang/hla" src_unpack() { unzip -q ${DISTDIR}/hlalibsrc.zip -d ./hlalibsrc # Should we use "hlalib" instead of "libhla" as the $PN so we can use the following? # Again, we struggle with the developers semantics ;-) # unzip -q ${DISTDIR}/${PN}src.zip -d ./hlalibsrc cd ${WORKDIR}/hlalibsrc # Apply a patch to fix a syntax error in the source code! epatch ${FILESDIR}/hlalibsrc-1.63-syntax_error.patch # Need to remove the "rm -f /usr/hla/hlalib/hlalib.a" since # we don't want it to be installed in that directory sed -e '/hlalib\.a/d' makefile.linux > makefile for mfile in `ls */makefile.linux` do tmpfile=`echo $mfile | sed -e 's?/?.?g'` sed -e 's?incs*=/usr/hla/include?inc=/usr/include/hla?g' \ -e "s?/usr/hla/hlalib/hlalib.a?${WORKDIR}/hlalibsrc/libhla.a?g" \ $mfile > ${T}/$tmpfile mv ${T}/$tmpfile $mfile done } src_compile() { cd ${WORKDIR}/hlalibsrc; emake || die "compile problem" } src_install() { insopts -m0644 insinto /usr/lib/hla doins ${WORKDIR}/hlalibsrc/libhla.a }