summaryrefslogtreecommitdiff
blob: eb1ca039789c5916805974792965350b5a20fe0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="A parallel port pin programming library"
HOMEPAGE="http://parapin.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"

LICENSE="LGPL-2.1"
IUSE="doc"
KEYWORDS="~amd64 ~x86"
SLOT="0"

PATCHES=(
	"${FILESDIR}"/${P}-tc-directly.patch
)

src_compile() {
	tc-export AR CC
	# Note 2.4 and 2.6 makefiles are identical for the targets used
	emake -f Makefile-2.4
}

src_install() {
	einstalldocs
	dolib.a libparapin.a
	insopts -m0444;	insinto /usr/include; doins parapin.h

	if use doc; then
		cd examples || die
		docinto examples
		dodoc *.c
	fi
}