sci-libs/shapelib - 1.6.0 (gentoo)

Search

Package Information

Description:
Library for manipulating ESRI Shapefiles
Homepage:
http://shapelib.maptools.org/
License:
GPL-2 LGPL-2

Ebuild Details

Version EAPI Keywords Slot
1.6.0 8 amd64 ~arm arm64 ~ppc ppc64 ~riscv x86 0/4
View Raw Ebuild
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools

DESCRIPTION="Library for manipulating ESRI Shapefiles"
HOMEPAGE="http://shapelib.maptools.org/"
SRC_URI="https://download.osgeo.org/${PN}/${P}.tar.gz"

LICENSE="GPL-2 LGPL-2"
SLOT="0/4"
KEYWORDS="amd64 ~arm arm64 ~ppc ppc64 ~riscv x86"
IUSE="doc static-libs"

src_prepare() {
	default
	rm -f m4/* || die
	eautoreconf
}

src_configure() {
	local myeconfargs=(
		--includedir="${EPREFIX}"/usr/include/libshp
		--prefix="${EPREFIX}"/usr
	)
	econf "${myeconfargs[@]}"
}

src_install() {
	use doc && HTML_DOCS=( web/. )
	default

	if ! use static-libs; then
		find "${ED}" \( -name '*.la' -o -name '*.a' \) -delete || die
	fi
}

USE Flags

doc

Manifest for 1.6.0

Type File Size Source URLs
DIST shapelib-1.6.0.tar.gz 528882 bytes https://download.osgeo.org/shapelib/shapelib-1.6.0.tar.gz