public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrick Lauer" <patrick@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/pgrouting/
Date: Sun, 24 Sep 2017 17:18:20 +0000 (UTC)	[thread overview]
Message-ID: <1506273495.9572f7dcee8b5a2465889a1ef222c6b935c614cb.patrick@gentoo> (raw)

commit:     9572f7dcee8b5a2465889a1ef222c6b935c614cb
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 24 17:18:02 2017 +0000
Commit:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
CommitDate: Sun Sep 24 17:18:15 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9572f7dc

dev-db/pgrouting: Bump

Package-Manager: Portage-2.3.10, Repoman-2.3.3

 dev-db/pgrouting/Manifest               |  1 +
 dev-db/pgrouting/pgrouting-2.5.0.ebuild | 95 +++++++++++++++++++++++++++++++++
 2 files changed, 96 insertions(+)

diff --git a/dev-db/pgrouting/Manifest b/dev-db/pgrouting/Manifest
index 602175e5e41..165c8aaa10c 100644
--- a/dev-db/pgrouting/Manifest
+++ b/dev-db/pgrouting/Manifest
@@ -1 +1,2 @@
 DIST pgrouting-2.0.0.tar.gz 3765933 SHA256 606309e8ece04abec062522374b48179c16bddb30dd4c5080b89a4298e8d163b SHA512 4a74cc1ce1bbbb8d95ae2aabc712e30c97e0418b1e4f28a255ecd9e57577bd7081a52e6e64a63cb06c9ca659271273b37bdbefb94d49e69b9c2ce45e96911884 WHIRLPOOL ce7492fe1512f7829bd887a7acaadc6c276719fc7e00ceb68a702a2476a9464c83bf929ef78381c8d36a6575dee21587c204f798511e1430731064c2c48a0815
+DIST pgrouting-2.5.0.tar.gz 7157856 SHA256 2c97df865484bf4e4e6f059b535b63bbe64534076b9d0c4bdd494f916fa24e9d SHA512 663dd5f5133d0bf1bbf7c35480c644ba848e65259023a0ef7f31b813b8ed99a4e2cfb813d870de7550e98ca1f8b0255aa28b2c948d13e8975af9f0d19f820784 WHIRLPOOL 0b9236414efd3b07e12dce1d4239151593212c2baae398b2b75e31e2ad09aa1f1fdb0d59471da716ae13ceef7b65fb9594b3090ecff0c1d2cab0a4c73177aae4

diff --git a/dev-db/pgrouting/pgrouting-2.5.0.ebuild b/dev-db/pgrouting/pgrouting-2.5.0.ebuild
new file mode 100644
index 00000000000..79e1b0aa8f7
--- /dev/null
+++ b/dev-db/pgrouting/pgrouting-2.5.0.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+POSTGRES_COMPAT=( 9.{4,5,6} 10 )
+
+inherit eutils cmake-utils
+
+DESCRIPTION="pgRouting extends PostGIS and PostgreSQL with geospatial routing functionality."
+HOMEPAGE="http://pgrouting.org/index.html"
+LICENSE="GPL-2 MIT Boost-1.0"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+SRC_URI="https://github.com/pgRouting/pgrouting/archive/v${PV}.tar.gz -> ${PN}-${PV}.tar.gz"
+IUSE="+drivingdistance doc pdf html"
+
+REQUIRED_USE="html? ( doc ) pdf? ( doc )"
+
+RDEPEND="
+	|| (
+		dev-db/postgresql:10[server]
+		dev-db/postgresql:9.6[server]
+		dev-db/postgresql:9.5[server]
+		dev-db/postgresql:9.4[server]
+	)
+	>=dev-db/postgis-2.0
+	dev-libs/boost
+	drivingdistance? ( sci-mathematics/cgal )
+"
+
+DEPEND="
+	doc? ( >=dev-python/sphinx-1.1 )
+	pdf? ( >=dev-python/sphinx-1.1[latex] )
+"
+
+# Needs a running psql instance, doesn't work out of the box
+RESTRICT="test"
+
+postgres_check_slot() {
+	if ! declare -p POSTGRES_COMPAT &>/dev/null; then
+		die 'POSTGRES_COMPAT not declared.'
+	fi
+
+# Don't die because we can't run postgresql-config during pretend.
+[[ "$EBUILD_PHASE" = "pretend" \
+	&& -z "$(which postgresql-config 2> /dev/null)" ]] && return 0
+
+	local res=$(echo ${POSTGRES_COMPAT[@]} \
+		| grep -c $(postgresql-config show 2> /dev/null) 2> /dev/null)
+
+	if [[ "$res" -eq "0" ]] ; then
+			eerror "PostgreSQL slot must be set to one of: "
+			eerror "    ${POSTGRES_COMPAT[@]}"
+			return 1
+	fi
+
+	return 0
+}
+
+pkg_pretend() {
+	postgres_check_slot || die
+}
+
+pkg_setup() {
+	postgres_check_slot || die
+}
+
+src_configure() {
+	local mycmakeargs=(
+		$(cmake-utils_use_with drivingdistance DD)
+		$(cmake-utils_use_with doc DOC)
+		$(cmake-utils_use_build doc MAN)
+		$(cmake-utils_use_build html HTML)
+		$(cmake-utils_use_build pdf LATEX)
+	)
+
+	cmake-utils_src_configure
+}
+
+src_compile() {
+	local make_opts
+	use doc && make_opts="all doc"
+	cmake-utils_src_make ${make_opts}
+}
+
+src_install() {
+	use doc && doman "${BUILD_DIR}"/doc/man/en/pgrouting.7
+	use html && dohtml -r "${BUILD_DIR}"/doc/html/*
+	use pdf && dodoc "${BUILD_DIR}"/doc/latex/en/*.pdf
+
+	dodoc README* VERSION
+
+	cmake-utils_src_install
+}


             reply	other threads:[~2017-09-24 17:18 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-24 17:18 Patrick Lauer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-28  6:46 [gentoo-commits] repo/gentoo:master commit in: dev-db/pgrouting/ Patrick Lauer
2024-12-15 18:27 Patrick Lauer
2024-08-06 22:10 Andreas Sturmlechner
2024-06-13  8:28 Patrick Lauer
2024-03-16 17:34 Arthur Zamarin
2023-12-22 15:07 罗百科
2023-11-17  9:25 罗百科
2023-06-10 19:25 Andreas Sturmlechner
2023-02-07 16:54 Sam James
2023-02-07 16:54 Sam James
2021-09-30 19:02 罗百科
2021-08-22 21:53 David Seifert
2021-02-11 13:15 Aaron W. Swenson
2021-02-10 22:32 Aaron W. Swenson
2021-01-24 12:10 Agostino Sarubbo
2021-01-21  7:40 Agostino Sarubbo
2020-12-21 10:37 Aaron W. Swenson
2020-11-26  2:40 Aaron W. Swenson
2020-11-26  2:40 Aaron W. Swenson
2020-08-14  0:49 Aaron W. Swenson
2019-10-02 23:51 Aaron W. Swenson
2019-10-02 18:53 Agostino Sarubbo
2019-10-01 10:00 Agostino Sarubbo
2019-08-17 11:17 Aaron W. Swenson
2019-06-21 10:08 Aaron W. Swenson
2018-06-07 19:22 Aaron Bauman
2018-02-28 13:11 Aaron Swenson
2016-12-23 10:11 Johannes Huber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1506273495.9572f7dcee8b5a2465889a1ef222c6b935c614cb.patrick@gentoo \
    --to=patrick@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox