summaryrefslogtreecommitdiff
blob: ea650bc39a27aec7609eaadc0d4ebb810370a52e (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
41
42
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=3

inherit eutils

GITHUB_USER="ago"
PV_COMMIT="74c32c318f63bca5b5db"

DESCRIPTION="User-space tools for LinuxPPS"
HOMEPAGE="http://wiki.enneenne.com/index.php/LinuxPPS_installation"
SRC_URI="https://github.com/${GITHUB_USER}/${PN}/tarball/${PV_COMMIT} -> ${PN}-git-${PV}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}"

S="${WORKDIR}/${GITHUB_USER}-${PN}-${PV_COMMIT:0:7}"

src_prepare() {
	sed -i \
		-e '/^CFLAGS.*ggdb/d' \
		-e '/^CFLAGS.*O2/s,-O2,,g' \
		-e '/^\.PHONY:/s,all,,g' \
	Makefile
}

src_compile() {
	emake depend
	emake all
}

src_install() {
	dodir /usr/bin /usr/include
	emake install DESTDIR="${D}"
}