summaryrefslogtreecommitdiff
blob: 45df44bbae1417ad442fae506d2fcb4dd0dc00ab (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/mdsplib/mdsplib-0.11.ebuild,v 1.6 2009/08/06 10:34:42 ssuominen Exp $

EAPI=2
inherit eutils toolchain-funcs

DESCRIPTION="METAR Decoder Software Package Library"
HOMEPAGE="http://limulus.net/mdsplib/"
SRC_URI="http://limulus.net/${PN}/${P}.tar.gz"

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

src_prepare() {
	epatch "${FILESDIR}"/${P}-gentoo.patch
}

src_compile() {
	tc-export AR CC RANLIB
	emake all || die "emake all failed"
}

src_install() {
	insinto /usr/include
	insopts -m0644
	doins metar.h || die "doins failed"
	dolib.a libmetar.a || die "dolib.a failed"
	dodoc README README.MDSP
	dobin dmetar || die "dobin failed"
}