blob: d9681b8c1a290829e03488df8fd83e505d03b905 (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
DESCRIPTION="eXtra fast Directory changer"
HOMEPAGE="https://fbb-git.github.io/xd/"
# Note: Upstreamm is a Debian dev, latest tarball not released upstream
SRC_URI="https://github.com/fbb-git/xd/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
DEPEND="
dev-util/icmake
dev-libs/libbobcat
doc? ( app-doc/yodl )"
RDEPEND="${DEPEND}"
S="${WORKDIR}"/${P}/${PN}
src_prepare() {
sed 's|^#include "icmake/library"$|#define COPT "--std=c++0x -Wall '"${CXXFLAGS}"'"\n\0|' -i build \
|| die 'sed failed (file missing)'
}
src_compile() {
./build program || die './build program'
./build library || die './build library'
if use doc; then
./build man || die './build man'
fi
}
src_install() {
./build install "${D}"
}
|