diff options
author | Sam James <sam@gentoo.org> | 2021-07-06 06:01:30 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-07-06 08:11:18 +0100 |
commit | 42323cdbd887795f7e04280529cbe9a0dff0dcc4 (patch) | |
tree | b96da62d1c17fca38e36a17bb74efb23d328be62 /sci-libs/proj/proj-8.1.0-r1.ebuild | |
parent | profiles: restore dev-perl/Mail-Sender package.deprecated entry (diff) | |
download | gentoo-42323cdbd887795f7e04280529cbe9a0dff0dcc4.tar.gz gentoo-42323cdbd887795f7e04280529cbe9a0dff0dcc4.tar.bz2 gentoo-42323cdbd887795f7e04280529cbe9a0dff0dcc4.zip |
sci-libs/proj: increment subslot for 8.1.0
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-libs/proj/proj-8.1.0-r1.ebuild')
-rw-r--r-- | sci-libs/proj/proj-8.1.0-r1.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/sci-libs/proj/proj-8.1.0-r1.ebuild b/sci-libs/proj/proj-8.1.0-r1.ebuild new file mode 100644 index 000000000000..501de56a4e62 --- /dev/null +++ b/sci-libs/proj/proj-8.1.0-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DATUMGRID="${PN}-datumgrid-1.8.tar.gz" +EUROPE_DATUMGRID="${PN}-datumgrid-europe-1.6.tar.gz" + +DESCRIPTION="PROJ coordinate transformation software" +HOMEPAGE="https://proj.org/" +SRC_URI=" + https://download.osgeo.org/proj/${P}.tar.gz + https://download.osgeo.org/proj/${DATUMGRID} + europe? ( https://download.osgeo.org/proj/${EUROPE_DATUMGRID} ) +" + +LICENSE="MIT" +SLOT="0/23" +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="curl europe test +tiff" +REQUIRED_USE="test? ( !europe )" + +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-db/sqlite:3 + curl? ( net-misc/curl ) + tiff? ( media-libs/tiff ) +" +DEPEND=" + ${RDEPEND} + test? ( dev-cpp/gtest ) +" + +PATCHES=( + "${FILESDIR}"/${P}-test_factory-include.patch +) + +src_unpack() { + unpack ${P}.tar.gz + + cd "${S}"/data || die + mv README README.DATA || die + + unpack ${DATUMGRID} + use europe && unpack ${EUROPE_DATUMGRID} +} + +src_configure() { + local mycmakeargs=( + -DDOCDIR="${EPREFIX}"/usr/share/${PF} + -DBUILD_TESTING=$(usex test) + -DENABLE_CURL=$(usex curl) + -DBUILD_PROJSYNC=$(usex curl) + -DENABLE_TIFF=$(usex tiff) + ) + + use test && mycmakeargs+=( -DUSE_EXTERNAL_GTEST=ON ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + + cd data || die + dodoc README.{DATA,DATUMGRID} + use europe && dodoc README.EUROPE + find "${ED}" -name '*.la' -type f -delete || die +} |