# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A parallel port pin programming library" HOMEPAGE="http://parapin.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="LGPL-2.1" IUSE="" KEYWORDS="~amd64" SLOT="0" DEPEND="virtual/os-headers" src_compile() { echo ${KV} | grep 2.6. > /dev/null if [ $? == 1 ]; then ./setup-2.6.sh || die "setup-2.6.sh failed" else ./setup-2.4.sh || die "setup-2.4.sh failed" fi emake || die "emake failed" } src_install() { dolib.a libparapin.a insopts -m0444; insinto /usr/include; doins parapin.h }