summaryrefslogtreecommitdiffstats
path: root/app-mobilephone/gsmlib/gsmlib-1.11_pre041028.ebuild
blob: d6ad153d71b8b5366ccb37bf72eff46e453898bb (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
38
39
40
# Copyright 1999-2020 Gentoo Authors
# Copyright 2020 The Trinity Desktop Project
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

inherit flag-o-matic

DESCRIPTION="Library and applications to access GSM mobile phones"
HOMEPAGE="http://www.pxh.de/fs/gsmlib/"
SRC_URI="http://www.pxh.de/fs/gsmlib/snapshots/${PN}-pre${PV%_pre*}-${PV#*_pre}.tar.gz"

LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="amd64 ~ia64 ppc ppc64 sparc x86"

# Don't use Gentoo mirrors
RESTRICT+=" mirror test"

S="${WORKDIR}/${PN}-${PV%_pre*}"

PATCHES=(
	"${FILESDIR}/${P%_pre*}-include-gcc34-fix.patch"
	"${FILESDIR}/${P%_pre*}-gcc41.patch"
	"${FILESDIR}/${P%_pre*}-gcc43.patch"
)

src_configure() {
	append-cxxflags "-std=c++11"
	econf
}

src_unpack() {
	unpack ${A}
}

src_install () {
	emake DESTDIR="${D}" install || die "make install failed"
	dodoc README
}