diff options
author | Aaron W. Swenson <titanofold@gentoo.org> | 2019-08-17 07:16:49 -0400 |
---|---|---|
committer | Aaron W. Swenson <titanofold@gentoo.org> | 2019-08-17 07:17:13 -0400 |
commit | 486e884611f9d08e3036474e4c032c9b4b830a41 (patch) | |
tree | bc78156d536a4226a5f6c578471d27d4ff675982 /dev-db/pgrouting | |
parent | kde-misc/wacomtablet: Drop 3.1.1-r1 (diff) | |
download | gentoo-486e884611f9d08e3036474e4c032c9b4b830a41.tar.gz gentoo-486e884611f9d08e3036474e4c032c9b4b830a41.tar.bz2 gentoo-486e884611f9d08e3036474e4c032c9b4b830a41.zip |
dev-db/pgrouting: Fix manpage generation
Bug: https://bugs.gentoo.org/625778
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Aaron W. Swenson <titanofold@gentoo.org>
Diffstat (limited to 'dev-db/pgrouting')
-rw-r--r-- | dev-db/pgrouting/pgrouting-2.6.2-r1.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/dev-db/pgrouting/pgrouting-2.6.2-r1.ebuild b/dev-db/pgrouting/pgrouting-2.6.2-r1.ebuild new file mode 100644 index 000000000000..db35bce832a3 --- /dev/null +++ b/dev-db/pgrouting/pgrouting-2.6.2-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +POSTGRES_COMPAT=( 9.{4..6} 10 11 ) +POSTGRES_USEDEP="server" + +inherit postgres cmake-utils + +DESCRIPTION="pgRouting extends PostGIS and PostgreSQL with geospatial routing functionality." +HOMEPAGE="http://pgrouting.org/" +LICENSE="GPL-2 MIT Boost-1.0" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +SRC_URI="https://github.com/pgRouting/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +IUSE="pdf html" + +RDEPEND="${POSTGRES_DEP} + >=dev-db/postgis-2.0 + dev-libs/boost + sci-mathematics/cgal +" + +# Sphinx is needed to build the man pages +DEPEND="${RDEPEND} + >=dev-python/sphinx-1.2 + pdf? ( >=dev-python/sphinx-1.2[latex] ) +" + +# Needs a running psql instance, doesn't work out of the box +RESTRICT="test" + +pkg_setup() { + postgres_pkg_setup +} + +src_configure() { + local mycmakeargs=( + -DBUILD_HTML=$(usex html) + -DBUILD_LATEX=$(usex pdf) + -DBUILD_MAN=ON + -DWITH_DOC=ON + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_make all doc +} + +src_install() { + cmake-utils_src_install + + doman "${BUILD_DIR}"/doc/man/en/pgrouting.7 + + use html && dodoc -r "${BUILD_DIR}"/doc/html + use pdf && dodoc "${BUILD_DIR}"/doc/latex/en/*.pdf +} |