libplist-2.7.0-r1tatsh-overlay
download
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Support library to deal with Apple Property Lists (Binary & XML)"
HOMEPAGE="https://libimobiledevice.org/"
SRC_URI="https://github.com/libimobiledevice/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="GPL-2+ LGPL-2.1+"
SLOT="0/4"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
IUSE="static-libs"
BDEPEND="virtual/pkgconfig"
DOCS=( AUTHORS NEWS README.md )
src_prepare() {
default
RELEASE_VERSION=${PV} eautoreconf
}
src_configure() {
local myeconfargs=(
"$(use_enable static-libs static)"
--without-cython
)
econf "${myeconfargs[@]}"
}
src_install() {
emake DESTDIR="${D}" install
einstalldocs
find "${ED}" -name '*.la' -delete || die
# bugs #733082, #915375
dosym ./libplist-2.0.pc "/usr/$(get_libdir)/pkgconfig/libplist.pc"
dosym ./libplist++-2.0.pc "/usr/$(get_libdir)/pkgconfig/libplist++.pc"
#configure.ac:
# CURRENT : REVISION : AGE
# LIBPLIST_SO_VERSION=8:0:4
# 2.0.so.4 + AGE + REVISION
dosym ./libplist++-2.0.so.4.7.0 "/usr/$(get_libdir)/libplist++.so"
dosym ./libplist-2.0.so.4.7.0 "/usr/$(get_libdir)/libplist.so"
}