blob: cbbefd39efa2ad2f1716e5ebc556e57c6f02ddee (
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
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
inherit eutils user
DESCRIPTION="4store is an efficient, scalable and stable RDF database"
HOMEPAGE="https://4store.github.io/"
MY_P="${PN}-v${PV}"
SRC_URI="https://4store.danielknoell.de/download/4store-v${PV}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
# < http://4store.org/trac/wiki/Dependencies
DEPEND="media-libs/raptor
>=dev-libs/rasqal-0.9.18
dev-libs/glib
dev-libs/libxml2
dev-libs/libpcre
sys-libs/readline
sys-libs/ncurses
dev-libs/expat
sys-libs/zlib"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
pkg_setup() {
enewgroup fourstore
enewuser fourstore -1 -1 /var/lib/4store fourstore
}
src_install() {
# patch the Makefiles to use /usr/ instead of /usr/local/
find . -name "Makefile" -execdir sed -e "s#/usr/local/#/usr/#" -i {} \;
MAKEOPTS="-j1" emake DESTDIR="${D}" install || die "emake install failed"
dodir /var/log/4store
fowners fourstore:fourstore \
/var/lib/4store \
/var/log/4store
# fix 1777
fperms 755 /var/lib/4store
# fix 755
fperms 644 \
/usr/share/man/man1/4s-query.1 \
/usr/share/man/man1/4s-backend-setup.1 \
/usr/share/man/man1/4s-import.1 \
/usr/share/man/man1/4s-cluster-info.1 \
/usr/share/man/man1/4s-cluster-start.1 \
/usr/share/man/man1/4s-cluster-create.1 \
/usr/share/man/man1/4s-cluster-stop.1 \
/usr/share/man/man1/4s-cluster-destroy.1
}
|