diff options
author | Tupone Alfredo <tupone@gentoo.org> | 2017-04-05 11:27:26 +0200 |
---|---|---|
committer | Tupone Alfredo <tupone@gentoo.org> | 2017-04-05 11:27:26 +0200 |
commit | 04bd2b8c8a865af6b206fecc17de73c890b8fac6 (patch) | |
tree | de6d6f5491a4a229a728b01e7268348611d0ab3d /dev-ada/gnatcoll/gnatcoll-2016.ebuild | |
parent | dev-lisp/sbcl: Bumps version to 1.3.16. Updates sbcl-1.0.23-sparc-solaris-bin... (diff) | |
download | gentoo-04bd2b8c8a865af6b206fecc17de73c890b8fac6.tar.gz gentoo-04bd2b8c8a865af6b206fecc17de73c890b8fac6.tar.bz2 gentoo-04bd2b8c8a865af6b206fecc17de73c890b8fac6.zip |
dev-ada/gnatcoll: Added 2016 version of GNAT Component Collection
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-ada/gnatcoll/gnatcoll-2016.ebuild')
-rw-r--r-- | dev-ada/gnatcoll/gnatcoll-2016.ebuild | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/dev-ada/gnatcoll/gnatcoll-2016.ebuild b/dev-ada/gnatcoll/gnatcoll-2016.ebuild new file mode 100644 index 000000000000..671fcafa583a --- /dev/null +++ b/dev-ada/gnatcoll/gnatcoll-2016.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit multilib multiprocessing + +MYP=${PN}-gpl-${PV} + +DESCRIPTION="GNAT Component Collection" +HOMEPAGE="http://libre.adacore.com" +SRC_URI="http://mirrors.cdn.adacore.com/art/5739942ac7a447658d00e1e7 -> ${MYP}-src.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="gmp iconv postgresql projects pygobject python readline +shared sqlite static syslog" + +RDEPEND="dev-lang/gnat-gpl + gmp? ( dev-libs/gmp:* ) + postgresql? ( dev-db/postgresql:* ) + pygobject? ( + || ( + dev-python/pygobject:2 + dev-python/pygobject:3 + ) + ) + python? ( dev-lang/python:2.7 ) + sqlite? ( dev-db/sqlite ) + projects? ( + dev-ada/gprbuild[static?] + dev-ada/gprbuild[shared?] + )" +DEPEND="${RDEPEND} + dev-ada/gprbuild" + +S="${WORKDIR}"/${MYP}-src + +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) + +src_configure() { + local myConf="" + if use sqlite; then + myConf="$myConf --with-sqlite=$(get_libdir)" + else + myConf="$myConf --without-sqlite" + fi + econf \ + $(use_with gmp) \ + $(use_with iconv) \ + $(use_with postgresql) \ + $(use_enable projects) \ + $(use_enable pygobject) \ + $(use_with python) \ + $(use_enable readline gpl) \ + $(use_enable readline) \ + $(use_enable syslog) \ + --with-python-exec=python2 \ + --enable-shared-python \ + --without-gtk \ + --disable-pygtk \ + $myConf +} + +src_compile() { + if use shared; then + emake PROCESSORS=$(makeopts_jobs) build_library_type/relocatable + fi + if use static; then + emake PROCESSORS=$(makeopts_jobs) build_library_type/static + fi +} + +src_install() { + if use shared; then + emake DESTDIR="${D}" install_library_type/relocatable + fi + if use static; then + emake DESTDIR="${D}" install_library_type/static + fi + emake DESTDIR="${D}" install_gps_plugin + einstalldocs +} |