summaryrefslogtreecommitdiff
blob: 987cb2ca67308f1d2f06f28245c0c1db711d39ba (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
# 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=""

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

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

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

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

src_install() {
	dodir /usr/bin
	dodir /usr/man
	dodir /usr/share/rig
	dodir /usr/man/man6

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