summaryrefslogtreecommitdiff
path: root/net-misc/gentoobrowse-api/gentoobrowse-api-0.12.4.1.ebuild
blob: 4177ec8e64e518d2c21ee3365cdb1c11bc14bf6c (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
EAPI="7"
inherit systemd bjam

DESCRIPTION="ICE API and client for Gentoo Browse"
HOMEPAGE="http://gentoobrowse.randomdan.homeip.net/"

SRC_URI="https://git.randomdan.homeip.net/repo/${PN}/snapshot/${P}.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="x86 amd64"
IUSE="client server"

DEPEND="=dev-libs/Ice-3.7*
	server? (
		dev-util/cproto
		>=dev-cpp/slicer-1.12:=[db]
		>=dev-libs/libdbpp-1.4:=
		>=dev-libs/libdbpp-postgresql-1.4
		>=dev-libs/icetray-0.5:=[tools]
		>=dev-libs/boost-1.60:=
		>=dev-libs/libgit2-0.24.0
	)
	>=dev-libs/libadhocutil-0.7.7:=
	dev-libs/boost:="
BDEPEND="${DEPEND}
	sys-devel/flex
	virtual/pkgconfig
	dev-build/b2"
RDEPEND="${DEPEND}
	server? (
		=sys-apps/icebox-service-1.11
	)
	www-client/lynx"

src_compile() {
	bjambuild \
		gentoobrowse-api/api//gentoobrowse-api \
		gentoobrowse-api/domain//gentoobrowse-domain \
		$(use client && echo gentoobrowse-api/client//gbcli) \
		$(use server && echo \
				gentoobrowse-api/service//gentoobrowse-service++11 \
				gentoobrowse-api/util)
}

src_install() {
	bjaminstall \
		gentoobrowse-api//install-libs \
		gentoobrowse-api//install-slice \
		$(use client && echo gentoobrowse-api//install-client) \
		$(use server && echo gentoobrowse-api//install-service)
	if use server ; then
		insinto /etc/gentoobrowseapi || die
		doins gentoobrowse-api/etc/icebox.config || die
		insinto $(systemd_get_systemunitdir)/icebox@gentoobrowseapi.service.d || die
		doins gentoobrowse-api/etc/service.conf || die
	fi
}