dev-db/pguri - 9999 (tgbugs-overlay)

Search

Install

Install this version:

emerge -a =dev-db/pguri-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-db/pguri-9999

Or alternatively:

emerge --autounmask-write -a =dev-db/pguri-9999

Package Information

Description:
uri datatype for PostgreSQL
Homepage:
https://github.com/petere/pguri
License:
POSTGRESQL

Ebuild Details

Version EAPI Keywords Slot
9999 8 0
View Raw Ebuild
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=8

inherit git-r3

EGIT_REPO_URI="https://github.com/petere/pguri.git"

DESCRIPTION="uri datatype for PostgreSQL"
HOMEPAGE="https://github.com/petere/pguri"
SRC_URI=""

LICENSE="POSTGRESQL"
SLOT="0"
KEYWORDS=""
IUSE=""

DEPEND="
	dev-libs/uriparser
	dev-db/postgresql:=
"
RDEPEND="${DEPEND}"

src_prepare() {
	default
	export pg_versions=$(eselect postgresql list | tail -n +2 | awk '{ print $1 }')
	local version
	for version in ${pg_versions}; do
		mkdir ${WORKDIR}/${version}
		cp -a ${S}/* ${WORKDIR}/${version}/
	done
}

src_compile() {
	local version
	for version in ${pg_versions}; do
		cd ${WORKDIR}/${version}
		emake PG_CONFIG=/usr/bin/pg_config${version} PG_CPPFLAGS=-Wno-int-conversion
	done
}

src_install() {
	local version
	for version in ${pg_versions}; do
		cd ${WORKDIR}/${version}
		emake PG_CONFIG=/usr/bin/pg_config${version} DESTDIR=${D} install
	done
}

Inherited Eclasses

Dependencies

DEPEND

	dev-libs/uriparser
	dev-db/postgresql:=

RDEPEND

	dev-libs/uriparser
	dev-db/postgresql:=