summaryrefslogtreecommitdiff
blob: d4f00d548adc857d517d841350db049f56c08e7b (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
# $Header: /var/cvsroot/gentoo-x86/net-misc/pps-tools/pps-tools-0.0.20110710.ebuild,v 1.3 2012/05/05 13:50:22 hwoarang Exp $

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="http://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}"
}