Gentoo Archives: gentoo-commits

From: "Aaron W. Swenson" <titanofold@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/pgrouting/
Date: Sat, 17 Aug 2019 11:17:56
Message-Id: 1566040633.486e884611f9d08e3036474e4c032c9b4b830a41.titanofold@gentoo
1 commit: 486e884611f9d08e3036474e4c032c9b4b830a41
2 Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 17 11:16:49 2019 +0000
4 Commit: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 17 11:17:13 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=486e8846
7
8 dev-db/pgrouting: Fix manpage generation
9
10 Bug: https://bugs.gentoo.org/625778
11 Package-Manager: Portage-2.3.69, Repoman-2.3.16
12 Signed-off-by: Aaron W. Swenson <titanofold <AT> gentoo.org>
13
14 dev-db/pgrouting/pgrouting-2.6.2-r1.ebuild | 61 ++++++++++++++++++++++++++++++
15 1 file changed, 61 insertions(+)
16
17 diff --git a/dev-db/pgrouting/pgrouting-2.6.2-r1.ebuild b/dev-db/pgrouting/pgrouting-2.6.2-r1.ebuild
18 new file mode 100644
19 index 00000000000..db35bce832a
20 --- /dev/null
21 +++ b/dev-db/pgrouting/pgrouting-2.6.2-r1.ebuild
22 @@ -0,0 +1,61 @@
23 +# Copyright 1999-2019 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=6
27 +
28 +POSTGRES_COMPAT=( 9.{4..6} 10 11 )
29 +POSTGRES_USEDEP="server"
30 +
31 +inherit postgres cmake-utils
32 +
33 +DESCRIPTION="pgRouting extends PostGIS and PostgreSQL with geospatial routing functionality."
34 +HOMEPAGE="http://pgrouting.org/"
35 +LICENSE="GPL-2 MIT Boost-1.0"
36 +
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~x86"
39 +SRC_URI="https://github.com/pgRouting/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
40 +IUSE="pdf html"
41 +
42 +RDEPEND="${POSTGRES_DEP}
43 + >=dev-db/postgis-2.0
44 + dev-libs/boost
45 + sci-mathematics/cgal
46 +"
47 +
48 +# Sphinx is needed to build the man pages
49 +DEPEND="${RDEPEND}
50 + >=dev-python/sphinx-1.2
51 + pdf? ( >=dev-python/sphinx-1.2[latex] )
52 +"
53 +
54 +# Needs a running psql instance, doesn't work out of the box
55 +RESTRICT="test"
56 +
57 +pkg_setup() {
58 + postgres_pkg_setup
59 +}
60 +
61 +src_configure() {
62 + local mycmakeargs=(
63 + -DBUILD_HTML=$(usex html)
64 + -DBUILD_LATEX=$(usex pdf)
65 + -DBUILD_MAN=ON
66 + -DWITH_DOC=ON
67 + )
68 +
69 + cmake-utils_src_configure
70 +}
71 +
72 +src_compile() {
73 + cmake-utils_src_make all doc
74 +}
75 +
76 +src_install() {
77 + cmake-utils_src_install
78 +
79 + doman "${BUILD_DIR}"/doc/man/en/pgrouting.7
80 +
81 + use html && dodoc -r "${BUILD_DIR}"/doc/html
82 + use pdf && dodoc "${BUILD_DIR}"/doc/latex/en/*.pdf
83 +}