# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 # Author: Ilian Zarov # Maintainer: Ilian Zarov S=${WORKDIR}/${P} DESCRIPTION="Publib is a library of C functions for various purposes." SRC_URI="http://ftp.debian.org/debian/dists/potato/main/source/libs/publib_0.31.tar.gz" DEPEND="virtual/glibc" src_compile() { cd ${S} mkdir objs cd objs ../framework/configure \ --host=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ --with-modules=${S}/liw \ --with-library=publib \ --with-libshort=pub || die "./configure failed" emake || die } src_install () { cd ${S}/objs mkdir -p ${D}/usr/man/man3 mkdir -p ${D}/usr/man/man1 mkdir -p ${D}/usr/lib mkdir -p ${D}/usr/include/publib make prefix=${D}/usr mandir=${D}/usr/man install || die }