summaryrefslogtreecommitdiff
blob: 382e4551e658cf0c4d373d502ace42e8c434e2a7 (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
43
44
45
46
47
48
49
50
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit toolchain-funcs

DESCRIPTION="generate random, yet real-looking, personal data"
HOMEPAGE="https://sourceforge.net/projects/rig/ "
SRC_URI="https://sourceforge.net/projects/rig/files/rig/1.11/rig-1.11.tar.gz"

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

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

PATCHES=(
	"${FILESDIR}/${P}-useDestDirAndImportMemcpy.patch"
)

DOCS=( "README" "Changlelog" "rig.6" )

src_configure() {
	if use devrandom ; then
		append-cxxflags "-DDEVRANDOM"
	fi
}

src_compile() {
	sed -i -e "s:g++ :$(tc-getCXX) ${CXXFLAGS} ${LDFLAGS} :" Makefile \
		|| die "sed fix failed. Uh-oh..."
	emake
	echo 'hello'
}

src_install() {
	echo 'hi'
	dodir /usr/bin
	dodir /usr/man
	dodir /usr/share/rig

	if [[ -f Makefile ]] || [[ -f GNUmakefile ]] || [[ -f makefile ]] ; then
		emake DESTDIR="${D}" install
	fi
	einstalldocs
}