# $Id$ PNAME="libotr3" PVER="3.2.1" PBUILD="r2" PCAT="net-libs" DESCRIPTION="Off-the-Record (OTR) Messaging allows you to have private conversations over instant messaging." HOMEPAGE="http://www.cypherpunks.ca/otr/" DEPEND=">= app-crypt/libgcrypt-1.6 >= app-crypt/libgpg-error-1.12" SRCFILE="${PNAME/3/}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME/3/}-${PVER}" sminclude mtools SRC_URI=( http://www.cypherpunks.ca/otr/${SRCFILE} mirror://${PNAME/3/}/${SRCFILE} mirror://${PNAME/3/}/${PNAME}-${PVER}-soname-2.patch ) # only v4 is provided upstream, fake it UP2DATE="echo ${PVER}" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # use libotr3 soname to fix parallel install with libotr-4 mpatch ${PNAME}-${PVER}-soname-2.patch || die mautoreconf || die } src_compile() { cd ${SRCDIR} mconfigure --program-transform-name='s/otr/otr3/' || die mmake || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die local i for i in parse sesskeys mackey readforge modify remac do rm ${BINDIR}/usr/share/man/man1/otr_${i}.1 || die mlink otr3_toolkit.1 /usr/share/man/man1/otr3_${i}.1 || die done minstalldocs AUTHORS ChangeLog COPYING NEWS README || die }